Posted By

peterbelsky on 09/18/10


Tagged

LINIX


Versions (?)

LINIX STUFF


 / Published in: Other
 

  1. login: ssh [email protected]
  2. Run the script via SSH to test it - ./sites-backup.sh
  3.  
  4. CD change directory
  5. LS list
  6.  
  7.  
  8.  
  9. SSH COMMANDS
  10.  
  11. RUN SCRIPT ./ backupfile.sh
  12.  
  13. TAR
  14. tar -zxf wordpress-3.0.1.tar.gz
  15.  
  16. PERMISSIONS
  17. Change the owner of a file
  18. chown -R ftpadmin:psacln wordpress
  19. chown -R ftpadmin:psacln httpdocs/*
  20.  
  21. Change mode
  22. chmod -R g+w /var/www/vhosts/voltawine.com/httpdocs/wp-content
  23.  
  24. chmod g+w /var/www/vhosts/voltawine.com/httpdocs/.htaccess
  25.  
  26. chmod g+w /var/www/vhosts/voltawine.com/httpdocs/
  27.  
  28.  
  29. EDIT FILE
  30. i (insert mode)
  31. paste copy
  32. escape
  33. :wq (write - quit program)

Report this snippet  

You need to login to post a comment.