Raised This Month: $32 Target: $400
 8% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
Author
dordnung
Veteran Member
Join Date: Apr 2010
Plugin ID:
3476
Plugin Version:
1.1.0
Plugin Category:
Server Management
Plugin Game:
Any
Plugin Dependencies:
    Servers with this Plugin:
     
    Plugin Description:
    This Plugin makes every day at a specific time a backup of the whole gamedir directory
    Old 01-19-2013 , 07:44   [ANY] Automated Server Backup [UPDATED 2013/05/08]
    Reply With Quote #1


    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
    Attached Files
    File Type: zip Server-Backup.zip (16.6 KB, 675 views)
    __________________

    Last edited by dordnung; 07-16-2013 at 11:24.
    dordnung is offline
    Leonardo
    Veteran Member
    Join Date: Feb 2010
    Location: 90's
    Old 01-19-2013 , 07:50   Re: Automated Server Backup Plugin
    Reply With Quote #2

    1/ local machine time or global (UTF/GMT)?
    2/ no ways to change backup time?
    Leonardo is offline
    dordnung
    Veteran Member
    Join Date: Apr 2010
    Old 01-19-2013 , 07:52   Re: Automated Server Backup Plugin
    Reply With Quote #3

    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!
    __________________

    Last edited by dordnung; 01-19-2013 at 08:15.
    dordnung is offline
    OnkelBazi
    Member
    Join Date: Aug 2006
    Location: Bavaria
    Old 01-20-2013 , 03:43   Re: [ANY, LINUX] Automated Server Backup Plugin
    Reply With Quote #4

    Great Work! ;-)
    __________________
    OnkelBazi is offline
    eric0279
    AlliedModders Donor
    Join Date: May 2007
    Old 01-20-2013 , 05:04   Re: [ANY, LINUX] Automated Server Backup Plugin
    Reply With Quote #5

    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?

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

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

    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

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

    Not when the command is finish, when you start the command, there is also a message!
    __________________
    dordnung is offline
    eric0279
    AlliedModders Donor
    Join Date: May 2007
    Old 01-20-2013 , 07:03   Re: [ANY, LINUX] Automated Server Backup Plugin
    Reply With Quote #9

    I edited before you answer ;)
    eric0279 is offline
    dordnung
    Veteran Member
    Join Date: Apr 2010
    Old 01-20-2013 , 07:06   Re: [ANY, LINUX] Automated Server Backup Plugin
    Reply With Quote #10

    Are you sure you reload the plugin, or changed the map or restarted your server, after you edited the config?
    __________________
    dordnung 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 18:43.


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