Improved Plan B scripts.

This commit is contained in:
Christian P. MOMON 2023-03-21 16:42:01 +01:00
parent d80b2ff72c
commit 9d3a783706
2 changed files with 13 additions and 34 deletions

View File

@ -10,44 +10,23 @@ echo "==========================================================================
START_TIME=$(date +"%s") START_TIME=$(date +"%s")
START_SIZE=$(du -s /var/backups/borg/ | awk '{ print $1 }') START_SIZE=$(du -s /var/backups/borg/ | awk '{ print $1 }')
## Fix owner.
chown -R borg.borg /var/backuprs/borg/
## Local machine. ## Local machine.
./dobackup-local ./dobackup-local
## Libre en Communs machines. ## Rsync machines.
# anthea.libre-en-communs.org ./dobackup-rsync leparc.libre-en-communs.org
##./dobackup-remote aunt.libre-en-communs.org ./dobackup-rsync fontainebleau.libre-en-communs.org
# britt.libre-en-communs.org
# fontainebleau
# leparc
##./dobackup-remote mother.libre-en-communs.org
./dobackup-remote dns.libre-en-communs.org
./dobackup-remote isengard.libre-en-communs.org
## A-lec DURATION=$(($(date +"%s")-$START_TIME))
./dobackup-remote audio.a-lec.org DURATION=$(printf "%02d:%02d:%02d" $((DURATION/60/60)) $((DURATION/60%60)) $((DURATION%60)))
./dobackup-remote gestion.a-lec.org echo "Midded at: "$(date)" Duration: $DURATION"
./dobackup-remote git.a-lec.org
./dobackup-remote mail.a-lec.org
#-toot.a-lec.org
./dobackup-remote www.a-lec.org
./dobackup-remote xmpp.a-lec.org
# Wait the end of remote Systemd timer backup (5 hours).
# Chalec # Useful to have good data in report.
./dobackup-remote audio.chalec.org sleep 18000
./dobackup-remote ctrlv.chalec.org
./dobackup-remote forge.chalec.org
./dobackup-remote libreverse.chalec.org
#-nuage.chalec.org
./dobackup-remote pad.chalec.org
./dobackup-remote petition.chalec.org
./dobackup-remote stats.chalec.org
./dobackup-remote status.chalec.org
#-toot.chalec.org
#-video.chalec.org
./dobackup-remote visio.chalec.org
./dobackup-remote www.chalec.org
./dobackup-remote xmpp.chalec.org
./doreport ./doreport

View File

@ -6,7 +6,7 @@ echo "==========================================================================
START_TIME=$(date +"%s") START_TIME=$(date +"%s")
START_SIZE=$(du -s /var/backups/borg/ | awk '{ print $1 }') START_SIZE=$(du -s /var/backups/borg/ | awk '{ print $1 }')
borgmatic prune --stats --files --verbosity 1 borgmatic prune --stats --list --verbosity 1
# Only last borgmatic version has the compact command. # Only last borgmatic version has the compact command.
cd /var/backups/borg/ cd /var/backups/borg/