diff options
author | Andrew Tridgell <tridge@samba.org> | 2000-01-24 05:52:44 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2000-01-24 05:52:44 +0000 |
commit | e20c5e95217d6af8b6c737540087ae1fb53f5faa (patch) | |
tree | d486910cf1c5d1d4d4969c56bb4812355ab34b14 | |
parent | 66203a982b3d249bafda9b9272c4c103c19e4a9b (diff) | |
download | rsync-e20c5e95217d6af8b6c737540087ae1fb53f5faa.tar.gz |
-a now implies -o and -D whether you are root or not
-rw-r--r-- | options.c | 8 | ||||
-rw-r--r-- | rsync.yo | 5 |
2 files changed, 4 insertions, 9 deletions
@@ -108,7 +108,7 @@ void usage(int F) rprintf(F," -r, --recursive recurse into directories\n"); rprintf(F," -R, --relative use relative path names\n"); rprintf(F," -b, --backup make backups (default %s suffix)\n",BACKUP_SUFFIX); - rprintf(F," --backup-dir make backups into this directory"); + rprintf(F," --backup-dir make backups into this directory\n"); rprintf(F," --suffix=SUFFIX override backup suffix\n"); rprintf(F," -u, --update update only (don't overwrite newer files)\n"); rprintf(F," -l, --links preserve soft links\n"); @@ -460,10 +460,8 @@ int parse_arguments(int argc, char *argv[], int frommain) preserve_perms=1; preserve_times=1; preserve_gid=1; - if (am_root) { - preserve_devices=1; - preserve_uid=1; - } + preserve_uid=1; + preserve_devices=1; break; case OPT_SERVER: @@ -319,12 +319,9 @@ explicitly checked on the receiver and any files of the same name which already exist and have the same checksum and size on the receiver are skipped. This option can be quite slow. -dit(bf(-a, --archive)) This is equivalent to -rlptg. It is a quick way +dit(bf(-a, --archive)) This is equivalent to -rlptgoD. It is a quick way of saying you want recursion and want to preserve everything. -Note: if the user launching rsync is root then the -o (preserve -uid) and -D (preserve devices) options are also implied. - dit(bf(-r, --recursive)) This tells rsync to copy directories recursively. If you don't specify this then rsync won't copy directories at all. |