Re: [SLE] rsync syntax help



On Wed, 2006-03-29 at 18:04 +0200, Hylton Conacher(ZR1HPC) wrote:
I am looking into using rsync to make a copy of my existing home
directory(1.6Gb) and storing an exact copy on another local drive.

I have had a look at the man pages for rsync and notice that there are
tons of options. I have noted the options I would like below and ask for
some assistance in compiling the correct syntax of the coammand. I will
be running the cmd as root from a root terminal(Alt-F2) and the user in
question will not be logged on at the same time.

The switches I have identified are:
-v - Verbose @ I'd like to know what is happening
-c - always checksum # This makes sure the file on SRC is the same as
DEST
-r - recurse into directories # All the files in the subdirectories
-l - copy symlinks as symlinks # Should there be any if I haven't
created any, to my knowledge
-A - preserve ACLs (implies -p) [local option] #preserve permissions
-o - preserve owner
-g - preserve group
-t - preserve times #preserve the time the file was last edited
--stats - give some file transfer stats #Stats on what happened
-a - archive mode, equivalent to -rlptgoD

The command so far:
#rsync -vcrlAogt -stats /home/hylton /media/backup/

I would use rsync -varpltz --stats /home/hylton/ /media/backup/home

Make sure you include a closing / on the source so that you get a
recursive copy. I also doubt your home directory has any special ACL's
that need backup. This could also be used by the owner of the files
which in this case would be hylton.

--
Ken Schneider
UNIX since 1989, linux since 1994, SuSE since 1998


--
Check the headers for your unsubscription address
For additional commands send e-mail to suse-linux-e-help@xxxxxxxx
Also check the archives at http://lists.suse.com
Please read the FAQs: suse-linux-e-faq@xxxxxxxx