informatique:rsync
Ceci est une ancienne révision du document !
rsync
rsync -avz -e ssh rsync@remote.acme.com:/home/rsync/out/ /home/rsync/from_remote
An important thing here, is that the presence or absence of a trailing “/” in the source directory determines whether the directory itself is copied, or simply the contents of this source directory.
Quelques options pour la commande rsync:
-v, --verbose increase verbosity (-v -vv -vvv) -q, --quiet decrease verbosity --progress show progress during transfer -n, --dry-run show what would have been transferred -z, --compress compress file data -a, --archive archive mode. It is a quick way of saying you want recursion and want to preserve everything. -r, --recursive recurse into directories -R, --relative use relative path names -t, --times preserve times -c, --checksum always checksum -u, --update update only (don't overwrite newer files) -W, --whole-file copy whole files, no incremental checks -I, --ignore-times Normally rsync will skip any files that are already the same length and have the same time-stamp. This option turns off this behavior. --size-only only use file size when determining if a file should be transferred --existing only update files that already exist --delete delete files that don't exist on the sending side --delete-after delete after transferring, not before --force force deletion of directories even if not empty --exclude=PATTERN exclude files matching PATTERN --daemon run as a rsync daemon --password-file=FILE get password from FILE
informatique/rsync.1405758836.txt.gz · Dernière modification : 19/07/2014 10:33 de cyrille