From 7d5754f458904657257c78619a61e7e986183b95 Mon Sep 17 00:00:00 2001 From: bprieshof Date: Thu, 25 Oct 2018 14:22:25 +0200 Subject: [PATCH] Add 'Rsync-updatesync.sh' --- Rsync-updatesync.sh | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 Rsync-updatesync.sh diff --git a/Rsync-updatesync.sh b/Rsync-updatesync.sh new file mode 100644 index 0000000..b97f9e2 --- /dev/null +++ b/Rsync-updatesync.sh @@ -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@:/root/test/ + +#From Remoter To Local +rsync -rtulv -e "ssh -i $HOME/.ssh/LuuxBier_com" root@:/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 \ No newline at end of file