Add 'Rsync-updatesync.sh'
This commit is contained in:
18
Rsync-updatesync.sh
Normal file
18
Rsync-updatesync.sh
Normal file
@@ -0,0 +1,18 @@
|
||||
##Make sure to sed key to chmod 600
|
||||
|
||||
#From Local To Remote
|
||||
rsync -rtulv -e "ssh -i $HOME/.ssh/LuuxBier_com" /root/test/ root@<ip or FQDN>:/root/test/
|
||||
|
||||
#From Remoter To Local
|
||||
rsync -rtulv -e "ssh -i $HOME/.ssh/LuuxBier_com" root@<ip or FQDN>:/root/test/ /root/test/
|
||||
|
||||
##Rsync
|
||||
# -r recurse into directories
|
||||
# -t preserve modification times
|
||||
# -u skip files that are newer on the receiver
|
||||
# -l copy symlinks as symlinks
|
||||
# -v increase verbosity
|
||||
# -e specify the remote shell to use
|
||||
|
||||
##SSH
|
||||
# -i specify identity_file
|
||||
Reference in New Issue
Block a user