How to copy files and directories locally from 1 file system to another ?(in the same server)?

From: Tony Magtalas (ttk67@yahoo.com)
Date: Fri Jul 07 2006 - 15:01:42 EDT


I forgot to mention that this is a VXFS file system (Vxvm 4.0) in a VCS cluster
environment (VCS 4.1); 2 nodes cluster.
Thanks

- Original Question:

I have a project to copy a bunch of directories from a 2 Terabytes file system
into a few other smaller file systems on the same local Sun Solaris 2.9 server. There are hundred of subdirectories underneath as well as symbolic links pointing everywhere.

This is a fairly secured intranet environment (ssh) but I managed to get
rdist working.

I am thinking of implementing rdist (ie rdist -c source dir server:/destination)
because it can follow symbolic links, preserve date/time/ownership but I was
told it is slow and it can take a couple of days to copy a 2 TB file system.

My friend suggested to use:

1. ufsdump 0f - source |cd destination; ufsrestore -xf - )
2. cd source; tar -cf - . | cd destination; tar -xf - )
3. rsync ssh -arulzp source destination

I would also like to solicit the collective opinion from the net.
What do you think? what is the best way? (robustness, speed)
I don't really want to spend 2 full days to copy a 2 TB file system

Please advise. I will summarize if there is enough interest.

Thanks,
Tony
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:40:21 EDT