Mailinglist Archive: opensuse (3100 mails)
| < Previous | Next > |
rsync syntax help
- From: "Hylton Conacher(ZR1HPC)" <hylton@xxxxxxxxxxxxxx>
- Date: Wed, 29 Mar 2006 18:04:07 +0200
- Message-id: <442AAFF7.8070302@xxxxxxxxxxxxxx>
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 like the entire contents of /home/hylton copied to a hylton directory on /media/backup. Would this cmd achieve this?
Should I swop some options out and rater use -a? Do I need D?
ie the command would be:
#rsync -vcA -stats /home/hylton /media/backup/
Does the first try at the command look right as I am wondering about the -stats option.
--
========================================================================
Hylton Conacher - Linux user # 229959 at http://counter.li.org
Currently using SuSE 9.2 Professional with KDE
========================================================================
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 like the entire contents of /home/hylton copied to a hylton directory on /media/backup. Would this cmd achieve this?
Should I swop some options out and rater use -a? Do I need D?
ie the command would be:
#rsync -vcA -stats /home/hylton /media/backup/
Does the first try at the command look right as I am wondering about the -stats option.
--
========================================================================
Hylton Conacher - Linux user # 229959 at http://counter.li.org
Currently using SuSE 9.2 Professional with KDE
========================================================================
| < Previous | Next > |