![]() |
Re: Linux Admining
Yeah, after that it asks for the game name and this happens.
Code:
-- Waiting for participants to connect -- , time left: 1 seconds |
Re: Linux Admining
I generally use pre.sh and post.sh
Also I think you want --preexec rather than --postexec Once the game hosts, saving a copy is not much use since it will match the game itself. Players will complain about the hosting results in which case you want to be able to return to the files prior to hosting. By the way, I find it more useful in many many ways to do nice zip -9 game.zip * -x *game.zip -x z* and then attach it to a email going to an address off-system. That provides: A) backup B) dated multiple backups allowing restore to multiple points C) security in case of system crashes or hard drive failures D) ease of forwarding the latest games files to someone else in case they volunteer to pick up running the game for some reason |
Re: Linux Admining
Thanks for the answers and help! I'm still struggling with the script, but will make it work somehow. Fortunately backing up files isn't mandatory. Happiness is :)
|
Re: Linux Admining
Done! Thanks to my awesome anonymous friend and you guys my script is ready for hosting. Feel free to copy if you need such a simple script. :D
Code:
#!/bin/bash Code:
#!/bin/bash |
Re: Linux Admining
Quote:
If you look approximately halfway up the thread, I've posted a backup script that has neither of those particular issues. |
Re: Linux Admining
You are correct, the script is simple but easily altered to backup only one game.. in this case /home/dom/dominions3/backup/Rivers/
I hope that the game won't crash and use this one. :) Your script was too much for me and I didn't understand it. Thanks for your input. I will look it again when I find the time. |
Re: Linux Admining
Most of my backup script is about finding the current turn number and handling edge cases like being somehow called to backup a non-existent game (not detecting conditions like that will at best result in the script crashing and at worst data loss as it goes blindly ahead to do something stupid).
Doing Code:
--preexec /home/dom/backup.sh "$GAME" Code:
#!/bin/bash |
Re: Linux Admining
Looks like edit period ran out... It should have been
Code:
--preexec "/home/dom/backup.sh \"$GAME\"" |
Re: Linux Admining
It works perfectly! :D
|
Re: Linux Admining
Hi there, I see that people are sharing their Linux server scripts here. In case it helps: somebody contacted me about the Linux server scripts that I use for administrating my Dom3 games around June, here's what I sent back. Configuration is done by editing the GAME and PORT variables inside the scripts, and by setting the player's email addresses for email notification in the post-exec script.
Main script "MyGame.sh", this is being started in a "screen" session PHP Code:
PHP Code:
PHP Code:
|
All times are GMT -4. The time now is 04:38 AM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.