efficiently backing up your data
•
15 Feb 2009, 21:00
•
Journals
Hi there. Since I have to backup like 10 to 15 computer at my job, i was searching for a way to automate this.
What do you need: A source directory and a NAS / EXTERNAL / LAN / OTHER PARTITION drive
here is the little batch script ive written for that purpos.
http://pastebin.com/f7584dd42
So what do you need to do:
make sure you adjust this with your own values:
then just modify the path that should be updated. In the example i backup the mozilla Firefox profiles (for the bookmarks etc)
Just replace the first ARG :"%HOMEDRIVE%\%HOMEPATH%\AppData\Roaming\Mozilla\Firefox\Profiles"
and the second ARG :"%destDir%\AppData\Roaming\Mozilla\Firefox\Profiles"
where the first arg is the source and the second path is the destination.
You may also want to change the Echo message and the logPath / logFile
This is rly easy fast and handy and a big plus of robocopy is the detailed logging and the MANY options.
Hope this helped some1.
Laters
Thx to jeje for the robocopy > xcopy hint!
What do you need: A source directory and a NAS / EXTERNAL / LAN / OTHER PARTITION drive
here is the little batch script ive written for that purpos.
http://pastebin.com/f7584dd42
So what do you need to do:
make sure you adjust this with your own values:
then just modify the path that should be updated. In the example i backup the mozilla Firefox profiles (for the bookmarks etc)
Just replace the first ARG :"%HOMEDRIVE%\%HOMEPATH%\AppData\Roaming\Mozilla\Firefox\Profiles"
and the second ARG :"%destDir%\AppData\Roaming\Mozilla\Firefox\Profiles"
where the first arg is the source and the second path is the destination.
You may also want to change the Echo message and the logPath / logFile
This is rly easy fast and handy and a big plus of robocopy is the detailed logging and the MANY options.
Hope this helped some1.
Laters
Thx to jeje for the robocopy > xcopy hint!
we had to write a backup script for unix systems at university and those whitespaces seem to be a real pain in the ass for shell scripts.
white spaces are no problem (only dont use them in the backup folder Name, or put backup folder name in "")