Mercurial > hg > rlgallery-misc
view scripts/backup-push @ 86:5f1b4d3151bb
Add some neglected dgamelaunch initialization commands.
author | John "Elwin" Edwards |
---|---|
date | Sat, 24 Nov 2018 10:34:26 -0500 |
parents | ea014ed97581 |
children | 44cf8c7c2c7a |
line wrap: on
line source
#!/bin/sh # A backup script for high score lists, log files, saved games, and ttyrecs. # Run from cron. Set up SSH keys to BACKUPACCT first. SOURCE='/var/dgl/var/games/roguelike/' BACKUPACCT='rlgbackup@icemonster.rlgallery.org' NEWDIR=`date +%Y.%m.%d-%H.%M.%S` TTYRECSRC=/var/dgl/dgldir/ttyrec/ TTYRECDEST="$BACKUPACCT:ttyrecs" rsync -rqz "$SOURCE" "$BACKUPACCT:games/$NEWDIR" rsync -rqz -pt "$TTYRECSRC" "$TTYRECDEST" exit