mirror of
https://github.com/cheat/cheat.git
synced 2025-09-02 10:08:30 +02:00
- 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.
This commit is contained in:
6
cheatsheets/rsync
Normal file
6
cheatsheets/rsync
Normal file
@ -0,0 +1,6 @@
|
||||
# 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/
|
Reference in New Issue
Block a user