[Tinymux] Auto-Backup Script?
Steven Holland
hollandsw at gmail.com
Sat May 21 16:33:36 EDT 2005
The @backup command from within MUX itself executes a script (whose name
escapes me at the moment) in the game directory. The default backup script
simply copies off the database to a flatfile, but you can edit it to do
other things, like the afforementioned mailing. Once that's done, @daily
me=@backup
This only works in *nix though, not Win32.
On 5/19/05, Tom Spindler <dogcow at babymeat.com> wrote:
>
> > Is there a simple way to rig up a cron or some other script to backup a
> MUX database and e-mail it to a specified address? This would be for a Red
> Hat 9 linux box running MUX 2.3.4.23 <http://2.3.4.23> #1. Thanks! (And
> sorry for posting another question so soon on the heels of my networking
> problems.)
>
> You can't do it from within the MUX itself; you need to do it from
> unix cron - e.g.
>
> crontab -e
> 25 9 */5 * * cd /home/vegas/vegasmux/game; z=`./Backup | awk '/success:/
> {print $2}'`; echo "Vegas backup: $z" | mutt -a $z -s "Vegas DB backup"
> someboddy at address.com
>
> (this assumes you have mutt installed.)
>
> _______________________________________________
> Tinymux mailing list
> Tinymux at tinymux.org
> http://www.tinymux.org/mailman/listinfo/tinymux
>
--
Surreal to make your day, my part doing am I.
-- Yoda, in one of his less lucid moments?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.tinymux.org/pipermail/tinymux/attachments/20050521/6d857a0d/attachment.html
More information about the Tinymux
mailing list