Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # execute this as sudo su
- # this saves your mysql into sql
- # execute this file in your project's wordpress directory
- echo "rSync var/www/html contents back in for git commit"
- rsync -avP /var/www/html/ ./
- cp /var/www/.htaccess .htaccess
- echo "All your live wordpress files are safely in your user folder, where you can commit your changes!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement