Skip to content

Instantly share code, notes, and snippets.

@alpha1
Last active February 10, 2019 23:34
Show Gist options
  • Save alpha1/e1aed0ad7d9d4bc2eee6abb8bd251fa6 to your computer and use it in GitHub Desktop.
Save alpha1/e1aed0ad7d9d4bc2eee6abb8bd251fa6 to your computer and use it in GitHub Desktop.
#!/bin/bash
#wpbpfile=$(wp export --allow-root')
#cd to wordpress directory if needed
#cd /srv/www/wordpress-directory
wp_db_bk_filename=$(wp db export --allow-root --porcelain)
curl --ftp-ssl -T $wp_db_bk_filename ftp://HOSTNAME --user USERNAME:PASSWORD
unset wp_db_bk_filename
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment