Raised This Month: $51 Target: $400
 12% 

[ANY] Automated Server Backup [UPDATED 2013/05/08]


Post New Thread Reply   
 
Thread Tools Display Modes
eric0279
AlliedModders Donor
Join Date: May 2007
Old 01-20-2013 , 07:13   Re: [ANY, LINUX] Automated Server Backup Plugin
Reply With Quote #11

Yes, restart server after editing config
eric0279 is offline
dordnung
Veteran Member
Join Date: Apr 2010
Old 01-20-2013 , 07:18   Re: [ANY, LINUX] Automated Server Backup Plugin
Reply With Quote #12

Very strange, i will take a look at it
__________________
dordnung is offline
eric0279
AlliedModders Donor
Join Date: May 2007
Old 01-20-2013 , 07:25   Re: [ANY, LINUX] Automated Server Backup Plugin
Reply With Quote #13

I just redo the test:

added *.vpk and *.cache and *.rad the exclusion list,
restarting the server,
executing the command >> backup_server

HLSW:
Quote:
3:16:53 [server_backup.smx] Start Server Backup with: tar zcvf /home/be22-jsi/2047/halflife_source/left4dead2/left4dead2/server_backup/20-01-2013--13-19-06.tar.gz --exclude=. --exclude=.. --exclude=server_backup "/home/XXXX-XX/2047/halflife_source/left4dead2/left4dead2/"
13:16:53 rcon from "": command "backup_server"

20-01-2013--13-19-06.tar.gz in /games/serveur_2047/halflife_source/left4dead2/left4dead2/server_backup
server_backup.cfg :
Code:
// Here you can define the folders you want to exclude. Seperate with commas! Empty to backup hole gamedir
// -
// Default: "materials, models"
backup_exclude "materials, models, logs, sounds, gfx, scripts, downloads, expressions, maps, reslists, resource, scenes, *.vpk, *.cache, *.rad"

// Hour to start backup, 24 hour format (0-23)!
// -
// Default: "05"
backup_hour "05"

// Minute to start backup (0-59)
// -
// Default: "00"
backup_min "00"
http://**************/photo/my-images/72/pasdenomd.jpg/

http://**************/photo/my-images/690/pasdenom1.jpg/


To know that my GSP uses a lightweight package for these servers (symlink files) which may be the problem?

I'll test it on a virtual machine to see the result.

Last edited by eric0279; 01-20-2013 at 07:41.
eric0279 is offline
dordnung
Veteran Member
Join Date: Apr 2010
Old 01-20-2013 , 07:27   Re: [ANY, LINUX] Automated Server Backup Plugin
Reply With Quote #14

Why do you have server_backup.cfg in the first line of your config ?!
__________________
dordnung is offline
eric0279
AlliedModders Donor
Join Date: May 2007
Old 01-20-2013 , 07:41   Re: [ANY, LINUX] Automated Server Backup Plugin
Reply With Quote #15

The same problem locally so it is not my fault GSP.


Error copy / paste simply by writing in the config file, it is not there!
eric0279 is offline
dordnung
Veteran Member
Join Date: Apr 2010
Old 01-20-2013 , 08:34   Re: [ANY, LINUX] Automated Server Backup Plugin
Reply With Quote #16

Will add a new version soon, maybe it's working then for you. But for me it's working right now too^^
__________________
dordnung is offline
dordnung
Veteran Member
Join Date: Apr 2010
Old 01-20-2013 , 08:58   Re: [ANY, LINUX] Automated Server Backup Plugin
Reply With Quote #17

UPDATE
  • 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
__________________
dordnung is offline
eric0279
AlliedModders Donor
Join Date: May 2007
Old 01-20-2013 , 10:41   Re: [ANY, LINUX] Automated Server Backup Plugin
Reply With Quote #18

Thanks for update.

I completely deleted the plugin and the configuration file before testing your new version and restart the server.

server_backup.cfg :
Code:
// Here you can define the folders/files you only want to backup, if you set here something, only these folders/files will be backuped. Seperate with commas!
// -
// Default: ""
backup_add ""

// Here you can define the folders you want to exclude. Seperate with commas! Empty to backup hole gamedir
// -
// Default: "materials, models, scripts, downloads, *.vpk"
backup_exclude "materials, models, sounds, scripts, downloads, *.vpk, *.ekv, *.scr"

// The compress mode you want to use. 0=tar.bz2, 1=tar.gz, 2=tar
// -
// Default: "0"
backup_mode "0"

// Hour to start backup, 24 hour format (0-23)!
// -
// Default: "05"
backup_hour "05"

// Minute to start backup (0-59)
// -
// Default: "00"
backup_min "00"

restart server
executing the command >> backup_server

Quote:
167:07 rcon from "": command "backup_server"
167:07 [server_backup.smx] Start Server Backup with: tar jcf /home/XXXX-XX/2047/halflife_source/left4dead2/left4dead2/server_backup/20-01-2013--16-39-23.tar.bz2 --exclude=. --exclude=.. --exclude=server_backup "/home/XXXX-XX/2047/halflife_source/left4dead2/left4dead2/"
167:07 rcon from "": command "backup_server"
format : 20-01-2013--16-39-23.tar.bz2 >> good !

Extract archive and same problem...


Too bad, I liked the plugin.

I hope for others, it will work ^^
eric0279 is offline
dordnung
Veteran Member
Join Date: Apr 2010
Old 01-20-2013 , 10:51   Re: [ANY, LINUX] Automated Server Backup Plugin
Reply With Quote #19

Try to edit the mode, and see, whether the extension of the compress file is different, because i think it's a problem with your server. I tried it on more than one server and it worked fine.


If mode also doesn't work, tell me your server provider.

Edit:

Can you please upload your config here?
__________________

Last edited by dordnung; 01-20-2013 at 10:53.
dordnung is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 01-20-2013 , 10:57   Re: [ANY, LINUX] Automated Server Backup Plugin
Reply With Quote #20

What exactly is the advantage/purpose of this aside from just using a scheduled task to backup/compress the files, or kill the server's process and clean out old files and then perform said functions?
friagram is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:40.


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