UPDATE: YAY! Everything should look normal now…
So, I wrote this nifty little script that automatically tars and bzips a file on a remote (shared locally) volume (that is mounted as a mapped network drive) and names the file with the current date. The backups are stored in the shared directory, but the script doesn’t include past backup files in the archive. (Why are my backups 500mb? Ohhhhh….). It then copies the remote backup to a backups folder on my machine for extra safety. I was very proud when this worked!
Just modify the file with the directories you want backed up and where and save it as a .bat file. Then double click it and voila!
So here it is, shared under GNU Open Source license or whatever:
set DATESTR=%DATE:~-10% bsdtar -c -j -f Z:\Backups\backup_%DATESTR:/=-%.bz2 --exclude backup_* Z:\ copy Z:\Backups\backup_%DATESTR:/=-%.bz2 C:\Backups\
The script makes an archive of everything in the Z:\ drive (which is a mapped remote volume) excluding files beginning with backup_. The archive is made in the Z:\Backups directory with the name backup_mo-da-yr.bz2 where mo-da-yr is the date in the indicated format. Then the archive is copied to the C:\Backups\ folder.
Any suggestions on how to improve it, or praises for my ingenuity would be welcomed with open ears.
Recent Comments