AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Automated Server Backup [UPDATED 2013/05/08] (https://forums.alliedmods.net/showthread.php?t=206161)

dordnung 01-19-2013 07:44

[ANY] Automated Server Backup [UPDATED 2013/05/08]
 
4 Attachment(s)

Automated Server Backup

With this plugin you can make a backup of your whole gamedir directory. With support for FTP upload






Features:
  • Choose the directorys/files to backup.
  • Execlude paths and files from backup.
  • Upload backup to your FTP Server.
  • Run Backup at a specific time.
  • Update Plugin


Installation:
  • You need the System2 Extension
    • Be sure to give sourcemod/data/system2/7z and sourcemod/data/system2/7z.exe execute rights
  • Open the file cfg/server_backup.cfg and configurate your settings.
  • Now upload everything to your server.
  • Restart your server, change the map or load server_backup via console.


Changelog:

Quote:

  • 1.1.0
    • Adding support for Windows
    • Added Auto Updater
    • Added FTP Upload
    • Using newest system2 extension
    • Fixed some bugs
  • 1.02
    • Using now AutoExecConfig
    • Added cvar backup_add, where you can define folders/files you only want to backup
    • Added cvar backup_mode, where you can define the compress mode
    • Changed default cvar of backup_exclude
  • 1.01
    • Added cvar for time configuration


Leonardo 01-19-2013 07:50

Re: Automated Server Backup Plugin
 
1/ local machine time or global (UTF/GMT)?
2/ no ways to change backup time?

dordnung 01-19-2013 07:52

Re: Automated Server Backup Plugin
 
1. The timezone of your server

If your time goes wrong, you can ajust it in the "cfg/sourcemod/sourcemod.cfg"

Code:

// Sets how many seconds SourceMod should adjust time values for incorrect
// server clocks.  This can be positive or negative and will affect every
// system time in SourceMod, including logging stamps.
// --
// Default: 0
sm_time_adjustment 0

2. Right, will add this

EDIT: DONE! You can now edit the time in the config!

OnkelBazi 01-20-2013 03:43

Re: [ANY, LINUX] Automated Server Backup Plugin
 
Great Work! ;-)

eric0279 01-20-2013 05:04

Re: [ANY, LINUX] Automated Server Backup Plugin
 
Hello,

Nice plugin !!

exclude doesn't works :
Code:

backup_exclude "materials, models, logs, sounds, gfx, scripts, downloads, expressions, maps, reslists, resource, scenes"
We find all these files in the archive (20-01-2013--11-02-42.tar.gz\20-01-2013--11-02-42.tar\home\XXXX-XX\2047\halflife_source\left4dead2\left4dead2 \)...

but why compress .tar.gz then .tar (two archives in the same tree...)

would it be possible to add files to exclude (Example:. vpk,. rad. cached)?

for L4D2 server, you do not need to save everything, just the addons and cfg ...

and include the ability to remove the records of more than 7 days?

dordnung 01-20-2013 06:46

Re: [ANY, LINUX] Automated Server Backup Plugin
 
When the backup starts, it logs the command it starts. Can you please Post the full command?

To compress files with .gz and .tar is a linux standard.

Try to use *.vpk in the exclude list!

eric0279 01-20-2013 06:51

Re: [ANY, LINUX] Automated Server Backup Plugin
 
Quote:

When the backup starts, it logs the command it starts. Can you please Post the full command?
I use
Code:

backup_server
form Hlsw.

Code:

11:00:29 [server_backup.smx] Start Server Backup with: tar zcvf /home/XXXX-XX/2047/halflife_source/left4dead2/left4dead2/server_backup/20-01-2013--11-02-42.tar.gz --exclude=. --exclude=.. --exclude=server_backup "/home/be22-jsi/2047/halflife_source/left4dead2/left4dead2/"
Result in log :
Quote:

L 01/20/2013 - 11:02:45: [server_backup.smx] Server Backup Finished: server_backup/20-01-2013--11-02-42.tar.gz - 23431456 bytes
Quote:

To compress files with .gz and .tar is a linux standard.
ok thanks

Quote:

Try to use *.vpk in the exclude list!
but certainly if it does not work with the folders, I doubt it will work with a file

dordnung 01-20-2013 06:52

Re: [ANY, LINUX] Automated Server Backup Plugin
 
Not when the command is finish, when you start the command, there is also a message!

eric0279 01-20-2013 07:03

Re: [ANY, LINUX] Automated Server Backup Plugin
 
I edited before you answer ;)

dordnung 01-20-2013 07:06

Re: [ANY, LINUX] Automated Server Backup Plugin
 
Are you sure you reload the plugin, or changed the map or restarted your server, after you edited the config?


All times are GMT -4. The time now is 05:03.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.