Backup WordPress with cURL

curl -c cookies.txt "http://example.com/wp-login.php" -d "log=USER&pwd=PASSWORD&wp-submit=Log+In"

curl -b cookies.txt "http://example.com/wp-admin/export.php?author=all&submit=Download+Export+File&download=true" > `date +%Y%m%d-%H%M%S`.example.xml

rm cookies.txt

0 Responses to “Backup WordPress with cURL”


Comments are currently closed.