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

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


Post New Thread Reply   
 
Thread Tools Display Modes
dordnung
Veteran Member
Join Date: Apr 2010
Old 01-20-2013 , 11:01   Re: [ANY, LINUX] Automated Server Backup Plugin
Reply With Quote #21

What exactly do you mean?
__________________
dordnung is offline
eric0279
AlliedModders Donor
Join Date: May 2007
Old 01-20-2013 , 11:11   Re: [ANY, LINUX] Automated Server Backup Plugin
Reply With Quote #22

Same problem in local...

My GSP is not at fault ...

jsigames.net.


edit :

Quote:
"backup_mode" = "1"
- The compress mode you want to use. 0=tar.bz2, 1=tar.gz, 2=tar
Quote:
17:15:10 backup_server
17:15:10 [server_backup.smx] Start Server Backup with: tar jcf /home/XXXX-XX/2047/halflife_source/left4dead2/left4dead2/server_backup/20-01-2013--17-17-26.tar.bz2 --exclude=. --exclude=.. --exclude=server_backup "/home/be22-jsi/2047/halflife_source/left4dead2/left4dead2/"
Attached Files
File Type: zip server_backup.zip (521 Bytes, 126 views)

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

Config file works fine for me

Code:
backup_server
L 01/20/2013 - 16:16:12: [server_backup.smx] Start Server Backup with: tar zcPf /home/popo/css/cstrike/server_backup/20-01-2013--16-16-12.tar.gz --exclude=. --exclude=.. --exclude=server_backup --exclude=materials --exclude=models --exclude=scripts --exclude=downloads --exclude=*.vpk "/home/popo/css/cstrike/*.scr" "/home/popo/css/cstrike/*.rad" "/home/popo/css/cstrike/*.ekv"
L 01/20/2013 - 16:16:12: [server_backup.smx] Server Backup Finished: server_backup/20-01-2013--16-16-12.tar.gz - 45 bytes
Although i don't know what you want to achieve with backup_add "*.scr, *.rad, *.ekv", because that will not work^^

The problems seems to be with your server, he can't read the config file maybe?
__________________
dordnung is offline
eric0279
AlliedModders Donor
Join Date: May 2007
Old 01-20-2013 , 11:34   Re: [ANY, LINUX] Automated Server Backup Plugin
Reply With Quote #24

Even local does not work then happy for you that it works.

The cfg folder and files are chmod 755.

Code:
apt-cache policy tar
Quote:
tar:
Installé : 1.23-3
Candidat : 1.23-3
Table de version :
*** 1.23-3 0
500 http://ftp.fr.debian.org/debian/ squeeze/main amd64 Packages
500 http://ftp.de.debian.org/debian/ stable/main amd64 Packages
100 /var/lib/dpkg/status
Quote:
172:29 "backup_mode" = "1"
- The compress mode you want to use. 0=tar.bz2, 1=tar.gz, 2=tar
172:29 rcon from "192.168.1.2:1433": command "backup_mode"
Code:
backup_server
return :
Quote:
172:50 backup_server
172:50 [server_backup.smx] Start Server Backup with: tar jcf /home/serveur/srcds/left4dead2/left4dead2/server_backup/20-01-2013--17-32-49.tar.bz2 --exclude=. --exclude=.. --exclude=server_backup "/home/serveur/srcds/left4dead2/left4dead2/"
172:50 rcon from "192.168.1.2:1433": command "backup_server"
Quote:
[SM] Listing 19 plugins:
01 "Basic Info Triggers" (1.4.6) by AlliedModders LLC
02 "Fun Commands" (1.4.6) by AlliedModders LLC
03 "Sound Commands" (1.4.6) by AlliedModders LLC
04 "Basic Votes" (1.4.6) by AlliedModders LLC
05 "Player Commands" (1.4.6) by AlliedModders LLC
06 "Basic Commands" (1.4.6) by AlliedModders LLC
07 "Reserved Slots" (1.4.6) by AlliedModders LLC
08 "AutoExecConfig Testsuite" (0.0.1-dev) by Impact
09 "Client Preferences" (1.4.6) by AlliedModders LLC
10 "SourceBans" (1.4.10) by SourceBans Development Team
11 "Basic Comm Control" (1.4.6) by AlliedModders LLC
12 "Admin Menu" (1.4.6) by AlliedModders LLC
13 "Anti-Flood" (1.4.6) by AlliedModders LLC
14 "Admin Help" (1.4.6) by AlliedModders LLC
15 "Server Backup" (1.02) by Popoklopsi
16 "Admin File Reader" (1.4.6) by AlliedModders LLC
17 "Fun Votes" (1.4.6) by AlliedModders LLC
18 Disabled: "Nextmap" (1.4.6) by AlliedModders LLC
19 "Basic Chat" (1.4.6) by AlliedModders LLC

SourceMod 1.4.6.

Good luck, I would not answer more on this topic, needless to insist

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

Maybe try a Sourcemod Snapshot

http://www.sourcemod.net/snapshots.php

But i don't no where the problem is.
__________________

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

What I mean is, why use an extension and sourcemod to perform something through the game, that every OS can pretty much do on it's own - in Linux you can schedule backup with cron to do what you need, with windows you can just use the tasksched.

I suppose you could make the sourcemod report back how many players are there, to only run the backups when few people are on the server (or if it is empty), but this could be accomplished by simply writing out a text file, and then parsing it with a simple shell/batch script before running the backup at the scheduled time.
friagram is offline
dordnung
Veteran Member
Join Date: Apr 2010
Old 01-22-2013 , 10:42   Re: [ANY, LINUX] Automated Server Backup Plugin
Reply With Quote #27

Because you can not create cronjobs or execute any command, when you rent a gameserver?
__________________
dordnung is offline
friagram
Veteran Member
Join Date: Sep 2012
Location: Silicon Valley
Old 01-25-2013 , 09:53   Re: [ANY, LINUX] Automated Server Backup Plugin
Reply With Quote #28

Many will still give you SSH, you just have to create the directories and configure it to do what you want.

I would assume that if you are running this on a limited host, the account that runs SRCDS would be limited and would not have access to most system commands (atleast it should not have access). This could cause serious problems for some hosts if medium-low level commands could be accessed by the user running the SRCDS process with your utility. I'm sure there are a few hosts out there that just run each user in a VM or something as root because they are lazy.

Last edited by friagram; 01-25-2013 at 09:58.
friagram is offline
dordnung
Veteran Member
Join Date: Apr 2010
Old 01-25-2013 , 14:10   Re: [ANY, LINUX] Automated Server Backup Plugin
Reply With Quote #29

1. No one will give you easily SSH access, never saw...
2. For now the backup command worked on every server.
3. The Command is very stable!
4. For a lot of peoples it's easier than asking for SSH access, and configurating everything...

no one is forcing you to use it!
__________________

Last edited by dordnung; 01-25-2013 at 14:22.
dordnung is offline
eric0279
AlliedModders Donor
Join Date: May 2007
Old 02-10-2013 , 10:41   Re: [ANY, LINUX] Automated Server Backup Plugin
Reply With Quote #30

Hello,

I tested with another GSP and everything works perfectly so my old GSP is at fault ... finally I sincerely apologize!

Very nice plugin !
eric0279 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:19.


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