cheat-fork-echo/cheatsheets/rsync
Carl Unsworth 60eff9308c - Cheatsheets added for a couple of my favourite commands:
- rsync: file copy and backup multi-tool
   - indent: one liner to nicely format C/C++ source.
2014-03-07 14:29:10 -08:00

7 lines
349 B
Plaintext

# copy files from remote to local, maintaining file propertires and sym-links (-a), zipping for faster transfer (-z), verbose (-v).
rsync -avz host:file1 :file1 /dest/
rsync -avz /source host:/dest
# Copy files using checksum (-c), rather than time, to detect if the file has changed. (Useful for validating backups).
rsync -avc /source/ /dest/