Merge pull request #5553 from nextcloud/enh/4804/clean-borg

borgbackup: make logs a bit cleaner if local archive is used
This commit is contained in:
Simon L. 2024-11-08 14:57:32 +01:00 committed by GitHub
commit 267aebf941
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -66,7 +66,9 @@ if [ -n "$BORG_REMOTE_REPO" ] && ! [ -f "$BORGBACKUP_KEY" ]; then
ssh-keygen -f "$BORGBACKUP_KEY" -N ""
echo "You should configure the remote to accept this public key"
fi
echo "Your public ssh key for borgbackup is: $(cat "$BORGBACKUP_KEY.pub")"
if [ -n "$BORG_REMOTE_REPO" ] && [ -f "$BORGBACKUP_KEY.pub" ]; then
echo "Your public ssh key for borgbackup is: $(cat "$BORGBACKUP_KEY.pub")"
fi
# Do the backup
if [ "$BORG_MODE" = backup ]; then