A bash script for website backup with sftp
You need to have a ssh key configured with your webhosting
In your folder dedicated to backup clone the project :
git clone https://github.com/marsante/sftp-webhosting-backup.git
Copy the sample of .env :
mv sftp-webhosting-backup/env-sample sftp-webhosting-backup/.env
Custom the .env file with yours informations
nano sftp-webhosting-backup/.env
Run the script :
sftp-webhosting-backup/backup.sh