Jump to content

Server-Save Backup


Strider

Recommended Posts

Hopefully this will be useful to others.

 

Prerequisites
 
 - A Google account (and thus a Google Drive account)
 - Google Drive desktop application
 - A full copy of WinRAR
 
What follows is a simple guide for backing up the server save files. For anyone hosting a dedicated server, I would hope you'd not need this. To everyone else you can use this (or not) as you please.
 
The batch file will collect and compress the files and then move them to a folder which Gdrive (Google Drive) will upload.
 
Actions
 
 - Create an empty batch file. Howto: http://lmgtfy.com/?q=how+to+create+a+batch+file
 - Change where it reads <username> to the Windows account username under which you have Project Zomboid installed.
 - Paste the contents below into the newly created batch file
 
cd C:\Progra~1\WinRAR 
rar a -r PZ-Backup.rar *.bin C:\Users\<username>\Zomboid\Sandbox\servertest
move /Y PZ-Backup.rar C:\Users\<username>\Google~1
pause > nul

Addendum
 
I should also point out that this batch file automates much of the required actions whilst Google Drive does much of the other duties. However if you wish this process to be fully automated then you would need to use Windows Task Scheduling to fully automate this backup
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...