Plan borg: improved script.
This commit is contained in:
parent
9d0bd21606
commit
4d38748e73
|
@ -8,50 +8,53 @@ echo "==========================================================================
|
||||||
echo " Sauvegardes du "$(date)
|
echo " Sauvegardes du "$(date)
|
||||||
echo "================================================================================"
|
echo "================================================================================"
|
||||||
START_TIME=$(date +"%s")
|
START_TIME=$(date +"%s")
|
||||||
|
START_SIZE=$(du -s /var/backups/borg/ | awk '{ print $1 }')
|
||||||
|
|
||||||
## Local machine.
|
## Local machine.
|
||||||
#./dobackup-local
|
./dobackup-local
|
||||||
|
|
||||||
## Routers.
|
|
||||||
# leparc
|
|
||||||
# fontainebleau
|
|
||||||
# gisors
|
|
||||||
|
|
||||||
## Libre en Communs machines.
|
## Libre en Communs machines.
|
||||||
# aunt.libre-en-communs.org
|
# anthea.libre-en-communs.org
|
||||||
# mother.libre-en-communs.org
|
##./dobackup-remote aunt.libre-en-communs.org
|
||||||
#./dobackup-remote dns.libre-en-communs.org
|
# britt.libre-en-communs.org
|
||||||
# isengard.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
|
## A-lec
|
||||||
#./dobackup-remote audio.a-lec.org
|
./dobackup-remote audio.a-lec.org
|
||||||
#./dobackup-remote gestion.a-lec.org
|
./dobackup-remote gestion.a-lec.org
|
||||||
#./dobackup-remote git.a-lec.org
|
./dobackup-remote git.a-lec.org
|
||||||
#./dobackup-remote mail.a-lec.org
|
./dobackup-remote mail.a-lec.org
|
||||||
#-toot.a-lec.org
|
#-toot.a-lec.org
|
||||||
#./dobackup-remote www.a-lec.org
|
./dobackup-remote www.a-lec.org
|
||||||
#./dobackup-remote xmpp.a-lec.org
|
./dobackup-remote xmpp.a-lec.org
|
||||||
|
|
||||||
|
|
||||||
# Chalec
|
# Chalec
|
||||||
#./dobackup-remote audio.chalec.org
|
./dobackup-remote audio.chalec.org
|
||||||
#./dobackup-remote ctrlv.chalec.org
|
./dobackup-remote ctrlv.chalec.org
|
||||||
#./dobackup-remote forge.chalec.org
|
./dobackup-remote forge.chalec.org
|
||||||
#./dobackup-remote libreverse.chalec.org
|
./dobackup-remote libreverse.chalec.org
|
||||||
#-nuage.chalec.org
|
#-nuage.chalec.org
|
||||||
#./dobackup-remote pad.chalec.org
|
./dobackup-remote pad.chalec.org
|
||||||
#./dobackup-remote petition.chalec.org
|
./dobackup-remote petition.chalec.org
|
||||||
#./dobackup-remote stats.chalec.org
|
./dobackup-remote stats.chalec.org
|
||||||
#./dobackup-remote status.chalec.org
|
./dobackup-remote status.chalec.org
|
||||||
#-toot.chalec.org
|
#-toot.chalec.org
|
||||||
#-video.chalec.org
|
#-video.chalec.org
|
||||||
#./dobackup-remote visio.chalec.org
|
./dobackup-remote visio.chalec.org
|
||||||
#./dobackup-remote www.chalec.org
|
./dobackup-remote www.chalec.org
|
||||||
#./dobackup-remote xmpp.chalec.org
|
./dobackup-remote xmpp.chalec.org
|
||||||
|
|
||||||
./doreport
|
./doreport
|
||||||
|
|
||||||
echo "====="
|
echo "====="
|
||||||
DURATION=$(($(date +"%s")-$START_TIME))
|
DURATION=$(($(date +"%s")-$START_TIME))
|
||||||
echo "Ended at: "$(date)" Duration: "$(printf "%02d:%02d:%02d" $((DURATION/60/60)) $((DURATION/60%60)) $((DURATION%60)))
|
DURATION=$(printf "%02d:%02d:%02d" $((DURATION/60/60)) $((DURATION/60%60)) $((DURATION%60)))
|
||||||
|
END_SIZE=$(du -s /var/backups/borg/ | awk '{ print $1 }')
|
||||||
|
DIFF_SIZE=$(((END_SIZE-START_SIZE)/1024))
|
||||||
|
echo "Ended at: "$(date)" Duration: $DURATION Size: $DIFF_SIZE MB"
|
||||||
echo "================================================================================"
|
echo "================================================================================"
|
||||||
|
|
Loading…
Reference in New Issue