fixed backup_result sending to much information

This commit is contained in:
2023-04-07 13:47:51 +02:00
parent 8be2d803b0
commit 1a9eb324c4
2 changed files with 2 additions and 2 deletions

View File

@@ -38,7 +38,7 @@ if [ "$mount_successful" -eq 1 ]; then
fi
# Backup mit BorgBackup erstellen
backup_result=$(borg create --progress --list --stats --compression lz4 "$backup_repository"::'{hostname}-{now:%Y-%m-%d_%H:%M:%S}' $data_dir 2>&1)
backup_result=$(borg create --stats --compression lz4 "$backup_repository"::'{hostname}-{now:%Y-%m-%d_%H:%M:%S}' $data_dir 2>&1)
backup_status=$?
# Alle gestoppten Container starten

View File

@@ -39,7 +39,7 @@ if [ "$mount_successful" -eq 1 ]; then
fi
# Backup mit BorgBackup erstellen
backup_result=$(borg create --progress --list --stats --compression lz4 "$backup_repository"::'{hostname}-{now:%Y-%m-%d_%H:%M:%S}' $data_dir 2>&1)
backup_result=$(borg create --stats --compression lz4 "$backup_repository"::'{hostname}-{now:%Y-%m-%d_%H:%M:%S}' $data_dir 2>&1)
backup_status=$?
# Alle gestoppten Container starten