@cls @echo off rem Rsync Job Control File rem this will keep a 7 day rotating snapshot and a 3 week rotating snapshot on remote machine rem This section will rotate the folders for a 7 day snapshot c:\cygwin\bin\ssh -l USER HOST rm -Rf /home/USER/daily.7; mv /home/USER/daily.6 /home/USER/daily.7 ; mv /home/USER/daily.5 /home/USER/daily.6 ; mv /home/USER/daily.4 /home/USER/daily.5; mv /home/USER/daily.3 /home/USER/daily.4; mv /home/USER/daily.2 /home/USER/daily.3; mv /home/USER/daily.1 /home/USER/daily.2; mv /home/USER/daily.0 /home/USER/daily.1; cp -al /home/USER/daily.1 /home/USER/daily.0 rem this section actually transfers the files C:\cygwin\bin\rsync -avz --delete -e c:\cygwin\bin\ssh /cygdrive/c/folder1 USER@HOST:/home/USER/daily.0/ C:\cygwin\bin\rsync -avz --delete -e c:\cygwin\bin\ssh /cygdrive/c/folder2 USER@HOST:/home/USER/daily.0/ c:\cygwin\bin\ssh -l USER HOST chmod -Rf 700 /home/USER/daily.0
|What is the best software for displaying my computer activity in real-time for another user?||2||47|
|Why isn't object file created?||6||41|
|Linux Ubuntu - Volume "boot" has only 0 bytes disk space remainig||6||48|
Join the community of 500,000 technology professionals and ask your questions.
Connect with top rated Experts
20 Experts available now in Live!