Skip to content

Instantly share code, notes, and snippets.

View NotUser3's full-sized avatar
🙀

LeonMtn05 NotUser3

🙀
  • .de, .bayern
  • 17:41 (UTC +01:00)
View GitHub Profile
@NotUser3
NotUser3 / 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