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%.
#!/bin/sh
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:
C:\Windows\System32\cmd.exe /c ""C:\cygwin64\bin\sh.exe" --login -i /cygdrive/c/Users/idefix/backup.sh"
Fill as path:
C:\cygwin64
If you now click the shortcut, it should open a window and directly start with the sync.
Related Posts
Feb 22 | Add Script to Taskbar | 1 min read |
Feb 22 | Run Script As Admin | 1 min read |
Nov 27 | Git on Windows | 2 min read |
Aug 06 | Kill remotely a task | 1 min read |
Aug 04 | Using Remote Desktop 8-bit Color Depth | 1 min read |