2019-09-10 17:16:21 +02:00
|
|
|
#!/usr/bin/env bash
|
2020-03-25 13:57:28 +01:00
|
|
|
set -x
|
2019-09-10 17:16:21 +02:00
|
|
|
TARGETDIR=/home/mikaela/backups/
|
|
|
|
|
|
|
|
mkdir -p $TARGETDIR
|
|
|
|
|
2020-03-25 13:57:28 +01:00
|
|
|
rsync -avr /home/znc/.znc/ $TARGETDIR/znc
|
2019-09-10 17:16:21 +02:00
|
|
|
|
|
|
|
mkdir -p $TARGETDIR/bitbot/
|
2020-03-25 13:57:28 +01:00
|
|
|
rsync -avr /home/bitbot/bitbot/bot.conf /home/bitbot/bitbot/databases/bot.db $TARGETDIR/bitbot/
|
|
|
|
rsync -avr /home/bitbot/.bitbot/ $TARGETDIR/bitbot/dotbitbot/
|
2019-09-10 17:16:21 +02:00
|
|
|
|
|
|
|
# Think about ssh keys? But I don't rotate hostnames with VPSes...
|
2020-03-25 13:57:28 +01:00
|
|
|
rsync -avr /etc/yggdrasil.conf $TARGETDIR
|
2019-09-10 17:16:21 +02:00
|
|
|
|
2020-03-25 13:57:28 +01:00
|
|
|
rsync -avr /etc/systemd/system/syncplay-server.service $TARGETDIR
|
2019-09-10 17:16:21 +02:00
|
|
|
|
|
|
|
mkdir -p $TARGETDIR/mumble/ssl/
|
2020-03-25 13:57:28 +01:00
|
|
|
rsync -avr /etc/mumble-server.ini /var/lib/mumble-server/mumble-server.sqlite $TARGETDIR/mumble/
|
|
|
|
rsync -avr /var/lib/mumble-server/ssl/ $TARGETDIR/mumble/ssl
|
2019-09-10 17:16:21 +02:00
|
|
|
|
2020-03-25 13:57:28 +01:00
|
|
|
rsync -avr /etc/oidentd.conf $TARGETDIR
|
2020-01-11 21:14:21 +01:00
|
|
|
|
|
|
|
mkdir -p $TARGETDIR/thelounge/
|
2020-03-25 13:57:28 +01:00
|
|
|
rsync -avr /etc/thelounge/ $TARGETDIR/thelounge/
|
2020-01-11 21:14:21 +01:00
|
|
|
|
2020-02-08 14:53:10 +01:00
|
|
|
mkdir -p $TARGETDIR/matterbridge/
|
2020-03-25 13:57:28 +01:00
|
|
|
rsync -avr /home/matterbridge/config/matterbridge.toml $TARGETDIR/matterbridge
|
|
|
|
rsync -avr /etc/systemd/system/matterbridge.service $TARGETDIR/matterbridge/matterbridge.service
|
2020-02-08 14:53:10 +01:00
|
|
|
|
2019-09-10 17:16:21 +02:00
|
|
|
chown -R mikaela:mikaela $TARGETDIR
|
|
|
|
chmod -R g-rxw,o-rxw $TARGETDIR
|
2020-03-25 13:57:28 +01:00
|
|
|
set +x
|