Skip to content

A bash script that automatically creates a backup of WordPress (DB+Files) and pushes a timestamped zip file into the Amazon S3 cloud. Just add cron!

License

Notifications You must be signed in to change notification settings

jesselawson/auto-backup-WordPress-to-s3

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

Auto backup WordPress to S3

A bash script that automatically creates a backup of WordPress (DB+Files) and pushes a timestamped zip file into the Amazon S3 cloud. Just add cron!

Please note that this is built around the Nginx filesystem -- specifically, the Easy Engine filesystem. That being said, this will pretty much work with any type of filesystem schema as long as you pay attention to each line and change what is needed.

Please modify this script before you use it! This is not a plug-and-play script; you need to modify it to suit your filesystem schema and requirements.

Installation

  1. Put the do-daily-backups.sh file into some directory on your server, something like /var/tools
  2. In terminal, edit your cron jobs with crontab -e and add a line to call this script once every morning around 1-3AM (sometime when you have the least amount of traffic).
  3. Profit.

About

A bash script that automatically creates a backup of WordPress (DB+Files) and pushes a timestamped zip file into the Amazon S3 cloud. Just add cron!

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages