break_lock.sh 239 B

12345678910
  1. #!/bin/bash
  2. # Load environment variables from .env file
  3. source .env
  4. # Export Borg passphrase
  5. export BORG_PASSPHRASE=$PASSPHRASE
  6. export BORG_RSH="ssh -i $SSH_KEY -p $SSH_PORT"
  7. sudo -E borg break-lock "$SERVER_USER@$SERVER_IP:$REPOSITORY"