mysql backup

Discussion in 'MySQL' started by pc_user, Feb 2, 2007.

  1. #1
    can anyone recommend a mysql backup solution, I want to be able to run backups on the local mysql db and store them remotely in an encrypted manner. Preferably sftp transfer too.

    The problem I Have is the tables are big, anything to do on that? Even selects lock the tables.
     
    pc_user, Feb 2, 2007 IP
  2. nirghum

    nirghum Banned

    Messages:
    44
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Do you have root access? if then i have a good solution with which you can get the core backup of your mysql database.
     
    nirghum, Feb 3, 2007 IP
  3. pc_user

    pc_user Notable Member

    Messages:
    1,891
    Likes Received:
    94
    Best Answers:
    0
    Trophy Points:
    235
    #3
    Well, I do but not interested in the raw files. Too many corruption issues, even if you repair the files post transfer. Let me know what you have.
     
    pc_user, Feb 3, 2007 IP
  4. nirghum

    nirghum Banned

    Messages:
    44
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I was about to recommend you to use "rsync" for remote syncronising the mysql database from one server to another server. And that is the best policy although according my idea, as if you copy the databases with sql format, then the most bad thing is, the sql language corruption can hault your whole database restore.
     
    nirghum, Feb 3, 2007 IP
  5. aplus

    aplus Well-Known Member

    Messages:
    83
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    115
    #5
    i use mysqlblasy
    I have a nightly cron job and it creates a single file like:
    date-time.tar.gz

    I recommend it. You can also backupninja. Backs up databases or files, or both
     
    aplus, Feb 3, 2007 IP
  6. niloy

    niloy Banned

    Messages:
    46
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    taking backup of mysql datbases with sql format is really problematic. Sometimes it gets crapped, i realy agree with the raw files backup.
     
    niloy, Feb 8, 2007 IP
  7. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #7
    What server software are you using ?
     
    krakjoe, Feb 8, 2007 IP
  8. pc_user

    pc_user Notable Member

    Messages:
    1,891
    Likes Received:
    94
    Best Answers:
    0
    Trophy Points:
    235
    #8
    CentOS. I've used MySQL raw file backups before, the problem with that of course is that there is some corruption, not much but some, can't afford that ;) Any other suggestions? The problem with most is that they do a select * from which locks some larger tables. Thanks all.
     
    pc_user, Feb 11, 2007 IP