From 6ccdccb113efa509039df3e1092fc9c4b9d4d703 Mon Sep 17 00:00:00 2001 From: Mikaela Suomalainen Date: Mon, 8 Feb 2021 12:10:52 +0200 Subject: [PATCH] bash/borgbackup-etro: initial commit --- bash/borgbackup-etro-client.bash | 5 +++++ bash/borgbackup-etro.bash | 8 ++++++++ 2 files changed, 13 insertions(+) create mode 100755 bash/borgbackup-etro-client.bash create mode 100644 bash/borgbackup-etro.bash diff --git a/bash/borgbackup-etro-client.bash b/bash/borgbackup-etro-client.bash new file mode 100755 index 0000000..a306c63 --- /dev/null +++ b/bash/borgbackup-etro-client.bash @@ -0,0 +1,5 @@ +#!/usr/bin/env bash +mkdir -p ~/etro.mikaela.info/ +cd ~/etro.mikaela.info/ + +rsync -Paz etro.mikaela.info:~/backups/ . diff --git a/bash/borgbackup-etro.bash b/bash/borgbackup-etro.bash new file mode 100644 index 0000000..22c058e --- /dev/null +++ b/bash/borgbackup-etro.bash @@ -0,0 +1,8 @@ +#!/usr/bin/env bash +export BORG_REPO='/root/borgbackups-etro.mikaela.info' + +borg create ::$(date -I) /home/bitbot/.bitbot /home/matterbridge/ /home/oragono/oragono-conf + +rm -rf /home/mikaela/backups/ +cp -r $BORG_REPO /home/mikaela/backups/ +chown -R mikaela:mikaela /home/mikaela/