+ Reply to Thread
Results 1 to 2 of 2




  

Thread: More info for Linux and cPanel

      
  1. #1
    Will Work For Coffee :-} Big Dan has a reputation beyond reputeBig Dan has a reputation beyond reputeBig Dan has a reputation beyond reputeBig Dan has a reputation beyond reputeBig Dan has a reputation beyond reputeBig Dan has a reputation beyond reputeBig Dan has a reputation beyond reputeBig Dan has a reputation beyond reputeBig Dan has a reputation beyond reputeBig Dan has a reputation beyond reputeBig Dan has a reputation beyond repute Big Dan's Avatar
    Join Date
    October 14, 2006
    Location
    New York
    Posts
    1,954
    Rep Power
    8
    Feedback Score
    0

    Exclamation More info for Linux and cPanel

    MySQL Dump And Other Info
    mysqldump --all-databases -root -p > backup.sql

    1) Mysql

    To bakckup:
    # mysqldump --all-databases -root -p > backup.sql

    To restore in the new server
    # mysql -uusername -p < all-databases.sql

    Does this command restores all user privilieges (root user included) ? if not how to do this ?

    2) account

    To backup one account:
    * cd /home/account
    # tar --create --verbose --gzip --same-owner --same-permissions --file account.tar.gz /home/account

    To restore one account in the new server
    * Add the account with cpanel and ...
    * tar zxvfp account.tar.gz -C /home/account
    * Update registrar dns for the domain.

    MySQL Start Stop
    /etc/rc.d/init.d/mysql stop
    /etc/rc.d/init.d/mysql start
    /etc/rc.d/init.d/mysql restart

    Netstat Commands
    netstat -autpn | grep :80
    netstat -autpn | grep :3306
    netstat -na
    netstat -an|grep :80|sort|more
    netstat -an|grep ESTABLISHED
    netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nr | more
    ps ax | awk '$3 ~ /^D/ { print $0 }'
    netstat -an | grep :80 | wc -l

    Process running command
    ps -aux --forest

    Run Weblogs
    /scripts/runweblogs
    Last edited by Colleen; Nov 21st, 2007 at 8:17 am. Reason: removed a bunch of images, they somehow got in the post
    Big Dan
    DJ Talk - Where DJ's meet! | Almost Geek - Geeky Tutorials and Stuff | Got Email Questions?

  2. #2
    Jedi Master andyf is on a distinguished road andyf's Avatar
    Join Date
    June 22, 2007
    Location
    Leeds
    Posts
    138
    Blog Entries
    1
    Rep Power
    5
    Feedback Score
    0

    Default

    Thanks for sharing
    Web Hosting UK | Cloud Hosting
    Join our Affiliate Program for FREE and earns upto £300 commission PER SALE.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Is it possible to run ASP under LINUX
    By hostcp in forum Web Hosting
    Replies: 9
    Last Post: May 16th, 2008, 9:50 am
  2. Any linux users here?
    By WeedGrinch in forum Computers and Electronics
    Replies: 20
    Last Post: Mar 8th, 2008, 1:40 am
  3. Unix or Linux
    By gedan in forum Dedicated / VPS Hosting
    Replies: 11
    Last Post: Feb 19th, 2008, 5:00 am
  4. Linux version
    By gkd in forum Computers and Electronics
    Replies: 13
    Last Post: Jan 27th, 2008, 6:23 am
  5. Replies: 10
    Last Post: Aug 28th, 2007, 12:42 pm

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
WebTalkForums
WebTalkForums
Recent Forum Threads