Urgent need of copying database file systems from UFS to ZFS file systems using RSYNC

Posted on 2011-03-16
Last Modified: 2012-06-21
I need urgent help in copying database file system from UFS to ZFS file system from one server to another using RSYNC
on UNIX Solaris servers.

I need script written to accomplish this using Bash or Korn shell using rsync that I can put this job under crontab and it can complete its copying database file system,


Many thanks,

Question by:ikhan_1971
  • 4
LVL 16

Accepted Solution

Joseph Gan earned 500 total points
ID: 35152852
NFS share from one server to another, on the second server mount the share dir onto say /mnt. The script as follow:
umask 022
echo "Started copying database at"
/usr/local/bin/rsync -auvpogl /mnt/ /localdir
echo "Finshed copying at"

Author Comment

ID: 35153001

We do not use NFS in our environment.

Please eliminate option of NFS to provide short script to accomplish this using rsync as stated.

LVL 16

Assisted Solution

by:Joseph Gan
Joseph Gan earned 500 total points
ID: 35153031
LVL 16

Expert Comment

by:Joseph Gan
ID: 35176327
Two answers have been given in very short time frames. Client has changed mind, but points should allocate regard less.
LVL 16

Expert Comment

by:Joseph Gan
ID: 35176329
Two answers have been given in very short time frame. Client has changed mind, but point should allocate regard less.

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A metadevice consists of one or more devices (slices). It can be expanded by adding slices. Then, it can be grown to fill a larger space while the file system is in use. However, not all UNIX file systems (UFS) can be expanded this way. The conca…
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap ( Version 1.2 2.      Jpcap( Version 0.6 Prerequisite: 1.      GCC …
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now