====== rsync ======
===== Exemples =====
rsync -av /source/dir/ server:/dest/dir/\\
===== Options=====
Certaines options, -o par exemple, nécessitent un accès root (super-utilisateur).
==== Extrait ====
(voir la totalité dans le manuel : [[https://linux.die.net/man/1/rsync|man rsync]])
^short ^long ^description^
| -v, |--verbose |increase verbosity|
| |--info=FLAGS |fine-grained informational verbosity|
| |--debug=FLAGS |fine-grained debug verbosity|
| |--msgs2stderr |special output handling for debugging|
| -q, |--quiet |suppress non-error messages|
| |--no-motd |suppress daemon-mode MOTD (see caveat)|
| -c, |--checksum |skip based on checksum, not mod-time & size|
| @:-a, |--archive |archive mode; equals -rlptgoD (no -H,-A,-X)|
| |--no-OPTION |turn off an implied OPTION (e.g. --no-D)|
| @palegreen:-r, |--recursive |recurse into directories|
| -R, |--relative |use relative path names|
| |--no-implied-dirs |don't send implied dirs with --relative|
| -b, |--backup |make backups (see --suffix & --backup-dir)|
| |--backup-dir=DIR |make backups into hierarchy based in DIR|
| |--suffix=SUFFIX |backup suffix (default ~ w/o --backup-dir)|
| -u, |--update |skip files that are newer on the receiver|
| |--inplace |update destination files in-place|
| |--append |append data onto shorter files|
| |--append-verify |--append w/old data in file checksum|
| -d, |--dirs |transfer directories without recursing|
| @palegreen:-l, |--links |copy symlinks as symlinks|
| -L, |--copy-links |transform symlink into referent file/dir|
| |--copy-unsafe-links |only "unsafe" symlinks are transformed|
| |--safe-links |ignore symlinks that point outside the tree|
| |--munge-links |munge symlinks to make them safer|
| -k, |--copy-dirlinks |transform symlink to dir into referent dir|
| -K, |--keep-dirlinks |treat symlinked dir on receiver as dir|
| @:-H, |--hard-links |preserve hard links|
| @palegreen:-p, |--perms |preserve permissions|
| -E, |--executability |preserve executability|
| |--chmod=CHMOD |affect file and/or directory permissions|
|@:-A, |--acls |preserve ACLs (implies -p)|
| @:-X, |--xattrs |preserve extended attributes|
| @palegreen:-o, |--owner |preserve owner (super-user only)|
| @palegreen:-g, |--group |preserve group|
| |--devices |preserve device files (super-user only)|
| |--specials |preserve special files|
| @palegreen:-D | |same as --devices --specials|
| @palegreen:-t, |--times |preserve modification times|
| -O, |--omit-dir-times |omit directories from --times|
| -J, |--omit-link-times |omit symlinks from --times|
| |--super |receiver attempts super-user activities|
| |--fake-super |store/recover privileged attrs using xattrs|
| -S, |--sparse |handle sparse files efficiently|
| |--preallocate |allocate dest files before writing|
| @#6495ed:-n, |--dry-run |perform a trial run with no changes made|
| @: |options utilisées personnellement (-aHAXv)|
| @palegreen: |implicites (comprises dans -a)|
|@#6495ed: |dry run (-n)|
| |intéressantes (-c, -z, --delete-before, --exclude)|
{{tag>rsync backup}}