I've read alot of articles and tried to come up my self but couldn't, so need help with Rsync command for offsite rolling backups please.
I have installed cwRsync(in VMs as a test run for now) on two Windows servers and would like to setup rolling backups of a folder(which contains many folders within) from server# 1 to #2 and vice versa.
I would like to push full backups twice a week(8:00PM Monday & Thursday) and like to delete first backup when third is completed, and so on. (attached schedule as a PNG)
So far I've transferred folder/files by running following in a .cmd file:
Code:
REM Set HOMEPATH values
SET HOMEDRIVE=%CD:~0,2%
SET HOMEPATH=%CD:~3%
SET CWRSYNCHOME=%CD%
SET CWOLDPATH=%PATH%
SET PATH=%CWRSYNCHOME%\BIN;%PATH%
SET HOME=%HOMEDRIVE%\%HOMEPATH%
rsync -avrz -ssh "/cygdrive/C/Test-Folder1" "RSBService@192.168.1.190:/cygdrive/c/Test-Folder2"
SET PATH=%CWOLDPATH%
Any help is greatly appreciated.
Bookmarks