Skip to content

Instantly share code, notes, and snippets.

View LeonMTN05's full-sized avatar
๐Ÿ™€

Leon-E. M. LeonMTN05

๐Ÿ™€
  • .de, .bayern
  • 08:57 (UTC +02:00)
View GitHub Profile
@LeonMTN05
LeonMTN05 / borg-ftp-folder-backup.sh
Last active January 27, 2023 07:57
A shell script that automatically creates a backup via BORG and automatically uploads it to an FTP server. Includes password encryption and cronjob.
#!/bin/bash
# Install BORG and lftp
sudo apt-get update
sudo apt-get install -y borgbackup lftp
# Create a password file
read -p "Enter the passphrase for the BORG repository: " passphrase
echo $passphrase > /etc/borg_passphrase
chmod 600 /etc/borg_passphrase