Script to backup saves

View previous topic View next topic Go down

Script to backup saves

Post by kiwimystic on Sat Apr 13, 2013 2:33 pm

I've been using a bat file and Dropbox to make backups of my d2 saves and figured others might find it useful. If you don't use dropbox you can change the file paths to whatever folder you want.

Code:

@echo off
::variables
set DropboxBackup="C:\Users\CHANGEME\Dropbox\Backups"
color 0A
set backupcmd=xcopy /s /c /d /e /h /i /r /y


echo =======================================
echo Backing up Median Ultimative Save Files
echo =======================================
set folder=%date:~10,4%_%date:~4,2%_%date:~7,2%
%backupcmd% "C:\Games\Diablo II\MODS\Median XL - Ultimative\save" "%DropboxBackup%\Median Ultimative\%folder%"
echo Backup ended! Press any key to close.
pause > nul

Place the above into a .bat file and run it whenever you want to backup. Make sure to check the file paths and adjust them as necessary.

kiwimystic
Kill Rat

Posts : 1
Country : United States

View user profile

Back to top Go down

Re: Script to backup saves

Post by JSAkane on Sun Apr 14, 2013 5:52 pm

That's very useful. Thank you.

JSAkane
Prowler

Posts : 11
Country : ???

View user profile

Back to top Go down

Re: Script to backup saves

Post by WolfieeifloW on Sun Apr 14, 2013 11:56 pm


WolfieeifloW
Death Stalker

Boss
Posts : 860
Country : Canada

View user profile

Back to top Go down

View previous topic View next topic Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum