This script is used to automate local WordPress backups on an AWS Lightsail instance.
-
Connect to your WordPress instance over SSH
-
Create a file and assign it the correct permissions
sudo touch backup.sh && sudo chmod u+x backup.sh && sudo chmod 744 backup.sh
-
Edit the file and: copy and paste the script you need
sudo nano backup.sh
-
Execute the script
sudo bash backup.sh
This will create a copy of your WordPress and your database in:
/var/backups/wordpress
And that's it
Distributed under the MIT License. See LICENSE
for more information.