Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. #!/bin/bash
  2.  
  3. # execute this as sudo su
  4. # this saves your mysql into sql
  5. # execute this file in your project's wordpress directory
  6.  
  7. echo "rSync var/www/html contents back in for git commit"
  8. rsync -avP /var/www/html/ ./
  9. cp /var/www/.htaccess .htaccess
  10.  
  11. 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