Larian Banner
Previous Thread
Next Thread
Print Thread
Using WINRAR to backup your projects. #626029
04/10/17 11:18 AM
04/10/17 11:18 AM
Joined: Sep 2017
Posts: 38
UK
Scottworld Offline OP
apprentice
Scottworld  Offline OP
apprentice

Joined: Sep 2017
Posts: 38
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.
Re: Using WINRAR to backup your projects. [Re: Scottworld] #627051
06/10/17 09:41 AM
06/10/17 09:41 AM
Joined: Jun 2013
Posts: 655
Cromcrom Offline
addict
Cromcrom  Offline
addict

Joined: Jun 2013
Posts: 655
This is GREAT, thanks a lot man.


Un chemin de 1000 lieues commence par un premier pas.

Project:
Steam workshop Frontiere
Re: Using WINRAR to backup your projects. [Re: Cromcrom] #627351
06/10/17 06:31 PM
06/10/17 06:31 PM
Joined: Sep 2017
Posts: 38
UK
Scottworld Offline OP
apprentice
Scottworld  Offline OP
apprentice

Joined: Sep 2017
Posts: 38
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.

Re: Using WINRAR to backup your projects. [Re: Scottworld] #633533
25/10/17 08:06 PM
25/10/17 08:06 PM
Joined: Jun 2014
Posts: 1,575
Dark_Ansem Online sleepy

veteran
Dark_Ansem  Online Sleepy

veteran

Joined: Jun 2014
Posts: 1,575
Ouch. I guess 7-zip doesn't help in this regard


Moderated by  Larian_Koala 

Powered by UBB.threads™ PHP Forum Software 7.6.2