Mercurial > hg > rlgallery-misc
view scripts/backup-push @ 96:1555628aedd3
Expand the history pages for Advanced Rogue 7 and XRogue.
author | John "Elwin" Edwards |
---|---|
date | Sun, 04 Apr 2021 21:19:07 -0400 |
parents | 44cf8c7c2c7a |
children |
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. BACKUPACCT='rlgbackup@icemonster.rlgallery.org' NEWDIR=$(date +%Y.%m.%d-%H.%M.%S) GAMESOURCE='/var/dgl/var/games/roguelike/' TTYRECSRC=/var/dgl/dgldir/ttyrec/ if [ -e /etc/rlg-testing ] then GAMEDEST="$BACKUPACCT:testing/games/$NEWDIR" TTYRECDEST="$BACKUPACCT:testing/ttyrecs" else GAMEDEST="$BACKUPACCT:production/games/$NEWDIR" TTYRECDEST="$BACKUPACCT:production/ttyrecs" fi rsync -rqz "$GAMESOURCE" "$GAMEDEST" rsync -rqz -pt "$TTYRECSRC" "$TTYRECDEST" exit