Skip to content

Commit

Permalink
Merge pull request #5553 from nextcloud/enh/4804/clean-borg
Browse files Browse the repository at this point in the history
borgbackup: make logs a bit cleaner if local archive is used
  • Loading branch information
szaimen authored Nov 8, 2024
2 parents ada09ed + ccf445a commit 267aebf
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Containers/borgbackup/backupscript.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 267aebf

Please sign in to comment.