A Short and Easy Website Files/DB FTP Backup Script
Works for websites with single DB.
apt-get install ftp -y
wget https://raw.githubusercontent.com/Har-Kuun/easybackup/master/backup.sh && chmod +x backup.sh && mkdir ~/backup
yum install ftp -y
wget https://raw.githubusercontent.com/Har-Kuun/easybackup/master/backup.sh && chmod +x backup.sh && mkdir ~/backup
Edit the 2-12 lines of backup.sh with your own DB credentials, FTP credentials, and your file paths.
./backup.sh
If you are looking for a stable FTP backup storage service, take a look at 1fichier.
Thanks for using this script.