Backing up several databases

Discussion in 'MySQL' started by amarques, Apr 15, 2008.

  1. #1
    I'd like to know what is the best way to periodically backup several MySQL databases (some over 500Mb).

    Is there any script available that can be run on cron? Any other ideas?

    Thanks for any help.
     
    amarques, Apr 15, 2008 IP
  2. Estevan

    Estevan Peon

    Messages:
    120
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    0
    #2
    hello use mysqldump by shell or shell script or use exec by php and add in cron

    example
    mysqldump -u username -p --all-databases
     
    Estevan, Apr 15, 2008 IP
  3. Petey

    Petey Peon

    Messages:
    68
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi amarques,

    I use Amanda open source backup (http://amanda.zmanda.com/) to take daily remote backups. The setup isn't too hard and you can just add it to cron and forget it.

    Petey
     
    Petey, Apr 16, 2008 IP
  4. amarques

    amarques Peon

    Messages:
    33
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks guys,

    I'll give it a try.

    Thanks again for your help.
     
    amarques, Apr 16, 2008 IP
  5. dprundle

    dprundle Peon

    Messages:
    399
    Likes Received:
    17
    Best Answers:
    0
    Trophy Points:
    0
    #5
    There's also a nice script called AutoMySQLBackup (I think) on the GNU
     
    dprundle, Apr 16, 2008 IP
  6. mwasif

    mwasif Active Member

    Messages:
    816
    Likes Received:
    23
    Best Answers:
    1
    Trophy Points:
    70
    #6
    I consider MySQL's command line syntax reliable.
     
    mwasif, Apr 17, 2008 IP