Skip to content

Ansible Playbook to updates your wordpress site(s) and copy your site to google drive

Notifications You must be signed in to change notification settings

nilesingalls/wp_update_backup

Repository files navigation

go setup your google drive api stuff first, you need CLIENT_ID CLIENT_SECRET CLIENT_SECRET ACCESS_TOKEN (obtained from here: https://console.developers.google.com/)

The directions are well described here: https://github.com/labbots/google-drive-upload (start where it says First Run)

I recommend setting up a sox proxy/browser connection to your target host to make this process easier.

clock on

after that, run this, and nuke it after it installed all the dependencies. Then, go to utilities/google-drive-upload and execute (any random file) ./upload.sh -r folder_key random_file {your folder} you can get that google folder key on google drive - click link - extract the key from that link. AFter that, you're asked for the Client ID and Client Secret - and it will walk you through the process.

install to an unprivileges directory so that that user accounts can execute wp-cli run: ansible-galaxy install -p ./roles/ -r requirements.yml ansible-playbook -i hosts pip.yml if you have configured google drive and wish to backup your wp sites ansible-playbook -i hosts ansible_wp_update.yml -e "BACKUPALL=True" or ansible-playbook -i hosts ansible_wp_update.yml (or, if you're on debian/ubuntu, or otherwise have a different path for apache)

TODO: if a theme update is requires, check to see if the ACTIVE theme has an update. if it doesn't, then automatically update it. only e-mail and skip theme update if active needs updated. (because updating an active theme often fails miseriably)

or, delete any inactive plugins/themes option?

check for centos/debian,and adjust apache username & apache configs dir accordingly.

About

Ansible Playbook to updates your wordpress site(s) and copy your site to google drive

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published