Backup using rsync

The backup will copy files from windows to a NAS that has a share available via rsync.

Install Cygwin

Make sure you have cygwin installed with the package rsync.

For all further steps I expect that cygwin was installed in C:\cygwin64

Configure the NAS

Backup Script

I store my script in folder %userprofile%.

rsync -aP --delete /cygdrive/d/bilder rsync://idefix@nas/Bilder

Shortcut in Windows

To get the script easily executed we create a shortcut on our desktop.

Fill as target:<br> C:\Windows\System32\cmd.exe /c „„C:\cygwin64\bin\sh.exe“ –login -i /cygdrive/c/Users/idefix/“

Fill as path:<br> C:\cygwin64

If you now click the shortcut, it should open a window and directly start with the sync.

windows/rsync.txt · Zuletzt geändert: 2016/12/18 13:25 von