BackupDrive

From RdiffBackupWiki

Jump to: navigation, search

This is a windows batch file for backing up 1 entire drive to a backup folder on another drive. I changed the cygwin default mounting prefix for drives using the following command.

mount --change-cygdrive-prefix /

Now drives are mounted as /c or /g instead of /cygdrive/c or /cygdrive/g

This batch file backs up all the contents of the G:\ drive to H:\backup.

@echo off
cd C:\cygwin\bin\
perl rdiff-backup --exclude /g/RECYCLER --exclude "/g/System Volume Information" --create-full-path /g/ /h/backup
perl rdiff-backup --remove-older-than 4W /h/backup
Personal tools