Jump to content
The Uniform Server Community

How do you backup your UniServer installation?


Recommended Posts

Hello everyone,


so how do you backup it? Do you have some fancy app to do it for you?


Because I couldn't find anything, I wrote a small batch file that will backup whole UniServer directory using 7zip archiver, which will run in lowest priority on CPU's second core, so it won't overload the server.


You can set password for the backup archive and extra output path, where the backup will be copied. Normally, it would only make one copy of the backup in directory "UniServer\backup", using this filename format: "uniserver_date(backup number).7z", so you can make more backups per day, without overriding the older backups.


It will also backup all your databases by explicitly calling "Run_db_backup.bat" batch file, so the output backup archive will also contain all database backups.


How to install:

-Extract the "backup_script.zip" file to "UniServer\uni_con\" directory

-Download 7za and extract the downloaded archive to the "UniServer\uni_con\backup" directory


You can add path to this script to cron's config file ("uni_con\cron\cron.ini"), so it can run periodically using cron by adding these lines:


start  = 2012-07-23 0:00:00
period = weekly
path   = C:\UniServer\uni_con\cron\backup\backup.bat
ref	= 


Enjoy! :)


P.S. 7za.exe can be downloaded here:



Link to comment
Share on other sites

  • 1 year later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...