annotate scripts/backup-push @ 80:716f8305d412
Update lighttpd configuration files.
Lighttpd now requires explicitly specifying both IPv4 and IPv6
addresses.
author |
John "Elwin" Edwards |
date |
Wed, 27 Dec 2017 14:54:58 -0500 |
parents |
ea014ed97581 |
children |
44cf8c7c2c7a |
rev |
line source |
79
|
1 #!/bin/sh
|
|
2 # A backup script for high score lists, log files, saved games, and ttyrecs.
|
|
3 # Run from cron. Set up SSH keys to BACKUPACCT first.
|
|
4
|
|
5 SOURCE='/var/dgl/var/games/roguelike/'
|
|
6 BACKUPACCT='rlgbackup@icemonster.rlgallery.org'
|
|
7 NEWDIR=`date +%Y.%m.%d-%H.%M.%S`
|
|
8 TTYRECSRC=/var/dgl/dgldir/ttyrec/
|
|
9 TTYRECDEST="$BACKUPACCT:ttyrecs"
|
|
10
|
|
11 rsync -rqz "$SOURCE" "$BACKUPACCT:games/$NEWDIR"
|
|
12 rsync -rqz -pt "$TTYRECSRC" "$TTYRECDEST"
|
|
13
|
|
14 exit
|