Operating System - HP-UX
1753940 Members
9296 Online
108811 Solutions
New Discussion юеВ

Re: rdist, rsync or something else?

 
kgraff
Occasional Advisor

rdist, rsync or something else?

Hi

I need to copy everything, about 250Gb, from one LV to another LV on the same host. Most of the files are Oracle dbfiles.
I could use tar in a nifty way, but that would require Oracle to be shutdown for quit a long time, and that's not very appealing.
From the manual I gather, using rdist would be pretty much the same. But what about rsync? Or is there another way I don't know of? Windows-guys have Robocopy, and that would have been nice, but there's no such for Unix, right?

br
Kenneth
10 REPLIES 10
smatador
Honored Contributor

Re: rdist, rsync or something else?

Hi,

Rsync is very good to synchronise directory, backuping them to another location etc.
http://hpux.connect.org.uk/hppd/hpux/Networking/Admin/rsync-3.0.5/
Steven E. Protter
Exalted Contributor

Re: rdist, rsync or something else?

Shalom,

Choices:

dd if=/source of=/dest

scp -rp source destination

rsync can do it as well.

The oracle databases must be shut down to get clean copies.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
kgraff
Occasional Advisor

Re: rdist, rsync or something else?

Steven,

Would it have to be shutdown even if I run rsync as a daemon?

br,
Kenneth
likid0
Honored Contributor

Re: rdist, rsync or something else?

I allways recomend rsync, it's a great tool.

you can download it from:

http://hpux.connect.org.uk/hppd/hpux/Networking/Admin/rsync-3.0.5/

I have attached a file with a quick guide for several command tools for copying data.





Windows?, no thanks
smatador
Honored Contributor

Re: rdist, rsync or something else?

Hi,
Stop the database before doing rsync even in daemon mode.
T G Manikandan
Honored Contributor

Re: rdist, rsync or something else?

Using the raw device always improves performance with copy.

#dd if=/dev/vg00/rlvol11 of=/dev/vg00/rlvol13 bs=1024k

Once copy is complete, use fsck before you mount the vol.
Steven Schweda
Honored Contributor

Re: rdist, rsync or something else?

> I could use tar in a nifty way, but that
> would require Oracle to be shutdown for
> quit a long time, and that's not very
> appealing.

Is copying your data base files while they're
open and changing _more_ appealing?

cpio, "pax", rdist, rsync, "tar", whatever,
who cares? I don't see how you can expect to
copy any files which are in use, and then
expect the results to have much value, no
matter how you do the copying.
kgraff
Occasional Advisor

Re: rdist, rsync or something else?

>cpio, "pax", rdist, rsync, "tar", whatever,
>who cares? I don't see how you can expect to
>copy any files which are in use, and then
>expect the results to have much value, no
>matter how you do the copying.

Well, my question really was if there are such a way, like Robocopy, not wether you care which tool I use. But thank you very much for sharing your opinion.
kgraff
Occasional Advisor

Re: rdist, rsync or something else?

got enough answers