+ Reply to Thread
Results 1 to 2 of 2

Thread: Tip: An example of auto-backup mysql database using Linux

  1. #1
    Junior Member McGruber is on a distinguished road
    Join Date
    Oct 2010
    Posts
    17

    Tip: An example of auto-backup mysql database using Linux

    After logging into http://box5.host1free.com:2222 (i.e., DirectAdmin)
    Export your domain cookies using Firefox's 'Export Domain Cookies'-Add-on/extension to ~/cookies.txt
    `wget -O ~/diablo2linux.hostpo.net/\!mysql_backups/mysql_backup_`date +%x | sed 's#/#.#g'`.gz --load-cookies cookies.txt http://box5.host1free.com:2222/CMD_DB/diablo_1.gz`
    ------------EDIT-----------

    Then put this into ~/.bashrc:
    alias diablo2linux_mysql_backup='wget -O ~/diablo2linux.hostpo.net/\!mysql_backups/mysql_backup_`date +%x | sed '\''s#/#.#g'\''`.gz --load-cookies cookies.txt http://box5.host1free.com:2222/CMD_DB/diablo_1.gz'

    but you better have cookies.txt updated and ready to go.
    Last edited by McGruber; 11-04-2010 at 09:15 AM.

  2. #2
    Founder CEO Casius has a reputation beyond repute Casius has a reputation beyond repute Casius has a reputation beyond repute Casius has a reputation beyond repute Casius has a reputation beyond repute Casius has a reputation beyond repute Casius has a reputation beyond repute Casius has a reputation beyond repute Casius has a reputation beyond repute Casius has a reputation beyond repute Casius has a reputation beyond repute Casius's Avatar
    Join Date
    Apr 2010
    Location
    Around the World :)
    Posts
    1,569

    Re: Tip: An example of auto-backup mysql database using Linux

    Great tip McGruber. Thank you
    Free Web Hosting - Host1Free.com
    Premium Paid Web Hosting - Host1Plus.com
    (Get 99% discount for the first month - code 99ALL)

+ Reply to Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34