Larian Banner: Baldur's Gate Patch 9
Previous Thread
Next Thread
Print Thread
Joined: Sep 2017
Location: UK
apprentice
OP Offline
apprentice
Joined: Sep 2017
Location: UK
If you have a copy of WINRAR installed you can use this little script to backup your project and move it between PCs, or just archive it off to a safe place in case you mess up. It creates a rar file with the date and time.


Create a file called "backup.bat" and paste the script in.
You will need to modify

1: The location of your WINRAR install if it is different.
2: The Root Directory of Divinity 2
3: Your Document directory.
4: The name of your module (this is appended with *.* so just enter the first couple of characters. - if your module is called "Big Demon Slaying Adventure" just put in "Big"

Will try to make one with 7zip .. .but it does not seem to retain the full pathnames at the moment.


@ECHO OFF

set datetime=%date:~-4%_%date:~3,2%_%date:~0,2%_%time:~0,2%_%time:~3,2%_%time:~6,2%
set winrar=C:\Program Files\WinRAR\rar.exe
set rootdir=D:\Games\steam\steamapps\common\Divinity Original Sin 2
set docdir=E:\Documents
set modName=Hell

"%winrar%" a -r "%rootdir%\%datetime%_DS.rar" "%docdir%\Larian Studios\*.*" "%rootdir%\Data\Editor\Mods\%modName%*\*.*" "%rootdir%\Data\Editor\Mods\%modName%*\*.*" "%rootdir%\Data\Mods\%modName%*\*.*" "%rootdir%\Data\Projects\%modName%*\*.*" "%rootdir%\Data\Public\%modName%*\*"

PAUSE

Last edited by Scottworld; 04/10/17 11:20 AM.
Joined: Jun 2013
addict
Offline
addict
Joined: Jun 2013
This is GREAT, thanks a lot man.


Un chemin de 1000 lieues commence par un premier pas.

Project:
Steam workshop Frontiere
Joined: Sep 2017
Location: UK
apprentice
OP Offline
apprentice
Joined: Sep 2017
Location: UK
No problem...

I forgot to add....
To restore just open the "rar" file and extract and overwrite your folders.

You may want to delete the project first otherwise scripts like dialogue will still be there if you have deleted them.

Joined: Jun 2014
veteran
Offline
veteran
Joined: Jun 2014
Ouch. I guess 7-zip doesn't help in this regard


Link Copied to Clipboard
Powered by UBB.threads™ PHP Forum Software 7.7.5