View Single Post
eric0279
AlliedModders Donor
Join Date: May 2007
Old 01-17-2014 , 06:44   Re: [ANY] Automated Server Backup [UPDATED 2013/05/08]
Reply With Quote #59

Hello,

alway same problem...

backup_version "1.1.0"

7z and 7z.exe (chmod 755)

SM 1.6.0 3975

.cfg :
PHP Code:
// Server Command to make a backup of the server
// -
// Default: "backup_server"
backup_command "backup_server"


// 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 ""

// Hour to start backup
// -
// Default: "05"
backup_hour "04"

// Minute to start backup
// -
// Default: "00"
backup_min "30"

// 1 = Auto update plugin with God Tony's autoupdater, 0 = Off
// -
// Default: "1"
backup_update_plugin "1"

// 1 = Use FTP upload, 0 = Off
// -
// Default: "0"
backup_ftp "1"

// 1 = Delete file on successfull upload, 0 = Off
// -
// Default: "1"
backup_ftp_delete "0"

// Host of your FTP server
// -
// Default: "192.168.0.1"
backup_ftp_host "hostname.com"

// Username to login
// -
// Default: "username"
backup_ftp_user "username"

// Password for username to login
// -
// Default: "password"
backup_ftp_pass "mypassword"

// Path to your folder to save backups to
// -
// Default: "path/on/ftp"
backup_ftp_path "/Backup_Dedie/LetsGo/"

// Port of your FTP server
// -
// Default: "21"
backup_ftp_port "21"

// Here you can define the folders/files you want to exclude. Seperate with commas!
// -
// Default: "bin, download, downloadlists, logs, scripts, downloads, *.vpk"
backup_exclude "left4dead2_dlc1, left4dead2_dlc2, left4dead2_dlc3, left4dead2_lv, platform, update, hl2, expressions, gfx, maps, materials, models, relists, resource, sound, bin, logs, scripts, downloads, *scr, *.ekv, *.vpk, *.vdf" 
in game :
Code:
rcon_password my_rcon
rcon backup_server
return:
Quote:
Unknown command "backup_server"
backup_hour and backup_min return correct value

Last edited by eric0279; 01-17-2014 at 06:45.
eric0279 is offline