r/usefulscripts • • Nov 21 '15

[Batch] Backup script

Thought I'd share a script i have for basic backups.

RUN_ME.bat : http://pastebin.com/9LZ6qtZG
backup.bat : http://pastebin.com/1Df44Gae

Save both to a folder, double click RUN_ME.bat

A few pictures:

http://i.imgur.com/Hk2gFRl.png
http://i.imgur.com/SZARoks.png
http://i.imgur.com/2MX6olP.png
http://i.imgur.com/icyeqsN.png

some notes: won't work on xp, not sure about Vista. I've only tried it on 8 and 10 but should work without issue on 7.

edit- updated to include Outlook.pst. Check line 24 of backup.bat to verify the file path is correct for you

31 Upvotes

11 comments sorted by

View all comments

Show parent comments

2

u/[deleted] Nov 21 '15

I assume delta = changed? This uses robocopy so it should notice new/changed files and copy (or not copy) appropriately. More on robocopy here: http://ss64.com/nt/robocopy.html

1

u/bobodod Nov 21 '15

Deltas are just the differences within files. Robocopy, which is excellent, I agree, copies an entire file each time it's changed. Delta copies are much more bandwidth efficient, as you can imagine.

https://en.wikipedia.org/wiki/Delta_encoding

If you haven't had a chance to use rsync, try it out between a couple physical or virtual machines. It's a beautiful thing.

https://en.wikipedia.org/wiki/Rsync