Thread: Utility Linux Admining
View Single Post
  #37  
Old September 17th, 2009, 05:38 PM
Lihaässä's Avatar

Lihaässä Lihaässä is offline
Corporal
 
Join Date: Jan 2009
Location: Espoo, Finland
Posts: 147
Thanks: 23
Thanked 2 Times in 2 Posts
Lihaässä is on a distinguished road
Default Re: Linux Admining

Im trying to make a working, simple backup option for a hosting script. How do the commands --postexec and --preexec commands work? At the moment my script looks like this? It works ok without the --postexec command. At the moment the game refuses to start up.

Code:
           
#!/bin/bash
# Tällä käynnistellään dqotonen domi hostaukset
# jee


GAME="rivers"
MAP="Rivers.map"
ERA=3
MOD="CBcomplete_1.6.dm"
BUP=["rsync -a /home/dom/dominions3/savedgames/* /backup/"]
AID="57"
START=5

PORT="2222"
DOM="/home/dom/dominions3/dom3"

$DOM -S -T --port $PORT -g $GAME --era $ERA --mapfile $MAP -q --indepstr 9 --uploadmaxp $START --diffai $AID --enablemod $MOD --postexec $BUP
Reply With Quote