This script when run, incrementally backups or updates files from your source to your destination.
Robocopy
The below script is an example on how to mirror from source to destination. Any changes, updates or deletions that occur on the source, will be replicated as required on the destination.
@echo off cls echo Performing personal backup robocopy "P:\Source" "O:\Destination" /mir /e /tee /np
Compression
If you are doing a backup, it would be beneficial to also compress that backup
cls echo Compressing backup O: cd Destination compact /c /s *
Completion prompt
cls echo Backup complete pause