Plan borg: updates (step).

This commit is contained in:
Christian P. MOMON 2023-01-23 03:38:47 +01:00
parent 96880da3dc
commit 255d967a69
1 changed files with 2 additions and 2 deletions

View File

@ -34,7 +34,7 @@ BORG_REPOS="/var/backups/borg/"
cd $BORG_REPOS cd $BORG_REPOS
ARCHIVE_COUNT=0 ARCHIVE_COUNT=0
REPO_COUNT=0 REPO_COUNT=0
echo "COMPUTER COUNT LAST Diff Original Compressed Dedup Duration" echo "COMPUTER COUNT Original Compressed Deduplicat Last Diff Duration"
for BORG_REPO in $(ls -d *.repo); do for BORG_REPO in $(ls -d *.repo); do
if [ -d "$BORG_REPO" ]; then if [ -d "$BORG_REPO" ]; then
#echo "== $BORG_REPO" #echo "== $BORG_REPO"
@ -53,7 +53,7 @@ for BORG_REPO in $(ls -d *.repo); do
DURATION=$(echo "$INFOS" | grep Duration) DURATION=$(echo "$INFOS" | grep Duration)
DURATION=$(convert_duration "${DURATION:10}") DURATION=$(convert_duration "${DURATION:10}")
DIFF_SIZE=$(echo "$INFOS" | grep "This archive" | awk '{ print $7" "$8}') DIFF_SIZE=$(echo "$INFOS" | grep "This archive" | awk '{ print $7" "$8}')
printf "%-40s %2d %s %12s %12s %12s %12s %s\n" "$COMPUTER" "$COUNT" "$LAST" "$DIFF_SIZE" "$ORIGINAL_SIZE" "$COMPRESSED_SIZE" "$DEDUP_SIZE" "$DURATION" printf "%-40s %2d %10s %10s %10s %s %10s %s\n" "$COMPUTER" "$COUNT" "$ORIGINAL_SIZE" "$COMPRESSED_SIZE" "$DEDUP_SIZE" "$LAST" "$DIFF_SIZE" "$DURATION"
ARCHIVE_COUNT=$((ARCHIVE_COUNT+COUNT)) ARCHIVE_COUNT=$((ARCHIVE_COUNT+COUNT))
fi fi