mirror of
https://github.com/cheat/cheat.git
synced 2024-11-23 22:41:35 +01:00
mod
This commit is contained in:
parent
7e62c79dac
commit
57e2b388fe
12
:
Normal file
12
:
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
# 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/
|
||||||
|
|
||||||
|
# Copy contents of /src/foo to destination:
|
||||||
|
# for below command, If doesn't specify the destination foo, then it will create foo in /dest
|
||||||
|
rsync -auv /src/foo /dest
|
||||||
|
# for below command, It will copy the contents of /src/foo/ to /dest/foo
|
||||||
|
rsync -auv /src/foo/ /dest/foo
|
@ -4,3 +4,9 @@ rsync -avz /source host:/dest
|
|||||||
|
|
||||||
# Copy files using checksum (-c), rather than time, to detect if the file has changed. (Useful for validating backups).
|
# Copy files using checksum (-c), rather than time, to detect if the file has changed. (Useful for validating backups).
|
||||||
rsync -avc /source/ /dest/
|
rsync -avc /source/ /dest/
|
||||||
|
|
||||||
|
# Copy contents of /src/foo to destination:
|
||||||
|
# for below command, If doesn't specify the destination foo, then it will create foo in /dest
|
||||||
|
rsync -auv /src/foo /dest
|
||||||
|
# for below command, It will copy the contents of /src/foo/ to /dest/foo
|
||||||
|
rsync -auv /src/foo/ /dest/foo
|
||||||
|
Loading…
Reference in New Issue
Block a user