On Fri, 2005-04-15 at 14:13 -0400, synthetoonz@bellsouth.net wrote:
From: Henry Tang
I am moving files from one server to another and i need to keep the date and time created and ownership .. scp -p can keep time but scp will not keep ownership.. I found one way is tar and transfer.. is that the only way?
rsync preserves ownership, too.
rsync -e ssh -varpltz <source> <dest> I think ssh is the default now check your version. The source directory must be followed by a slash / in order for recursive copy to work. The dest is server:/dir. Example: rsync -e ssh -varpltz /home/ other-server:/ It is suggested that this be done as root unless the user owns ALL of the files being transfered. Also the destination primary dir must exist or you will get an error. The sub-dirs will be created automatically. man rsync or rsync --help will show the command line switches and their meaning. I use this to back up my home directories before doing a fresh install. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998 "The day Microsoft makes something that doesn't suck is probably the day they start making vacuum cleaners." -Ernst Jan Plugge