Last active
February 10, 2019 23:34
-
-
Save alpha1/e1aed0ad7d9d4bc2eee6abb8bd251fa6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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