mirror of
https://gitea.blesmrt.net/mikaela/scripts.git
synced 2025-01-03 16:52:31 +01:00
bash/borgbackup-etro: initial commit
This commit is contained in:
parent
231ccb8280
commit
6ccdccb113
5
bash/borgbackup-etro-client.bash
Executable file
5
bash/borgbackup-etro-client.bash
Executable file
@ -0,0 +1,5 @@
|
||||
#!/usr/bin/env bash
|
||||
mkdir -p ~/etro.mikaela.info/
|
||||
cd ~/etro.mikaela.info/
|
||||
|
||||
rsync -Paz etro.mikaela.info:~/backups/ .
|
8
bash/borgbackup-etro.bash
Normal file
8
bash/borgbackup-etro.bash
Normal file
@ -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/
|
Loading…
Reference in New Issue
Block a user