Skip to main content

Frequent Database Backups (Jetbackup)

Comments

8 comments

  • cPRex Jurassic Moderator
    Hey there! What if you did a root cronjob with a mysqldump of that database, stored to a certain directory? I'd try just running a mysqldump on the database to see how long it takes to run, and then seeing if that is a good option.
    0
  • ZenHostingTravis
    If you haven't already, I'd touch base with the Jetapps team. You can ask for your issue to be escalated and one of the team will get back to you with suggestions.
    0
  • cPRex Jurassic Moderator
    @JetAppsAdam might want to review this too.
    0
  • jazee
    There's no problem with JetBackup. I'm now piecing my memory together. I disabled the Jetbackup hourly DB backup because low and behold I set a shell script that read the database table list, does a mysqldump on each table and rsyncs to a backup server that has 23 folders so I have 24 hours of hourly backups. It was so long ago I completely forgot about it. I just accidentally discovered it looking at the root cron schedule for another reason. I think the reason I did it is because in JetBackup you can't just restore a specific table, only the whole database. Plus using gzipped MySQL table dumps, I can restore the database without using Jetbackup if necessary. I turned the hourly DB backups on with Jetbackup. It has (which I think it didn't have in the past) an incremental option. The hourly backup is taking less than 2 minutes. Doesn't disrupt the application use and has minimal CPU load. So now I have a convenient way to restore an entire database and an alternate option to restore data in a specific table. All for a whopping $6/month. I've been extremely impressed with Jetbackup. With almost 30 years experience in IT, I've seen so many sales pitches on backup systems costing 4-5 figures a year in licensing. Jetbackup has been rock solid, full featured, and extremely easy to use and I've used about everything out there.
    0
  • timkah
    No doubt Jetbackup is an excellent option, but if you want backup without any interruption then database replication is the best option to have an up-to-minute backup.
    0
  • jazee
    No doubt Jetbackup is an excellent option, but if you want backup without any interruption then database replication is the best option to have an up-to-minute backup.

    I've had no issues with "interruption" using the mysqldump method or Jetbackup, as in new data not being written to the database during backup. I do not believe either method 'locks' the DB or tables so they are read-only during backup. I did confirm with Jetbackup that even the latest version 5, does not allow restore of individual tables, only whole databases. So I'm using mysqldump of the tables and zipping every hour in case I just want to restore a single table and reactivated Jetbackp incremental hourly DB backups as it would be easier for me to restore the entire DB that way.
    0
  • ffeingol
    Just for other that might be reading the thread: I don't believe that JetBackup has any way of doing "incremental" MySQL database backups. It's really not technically possible unless you are doing transaction log dumps and that would be much more complicated to restore. Secondly, and much more important, unless you REALLY understand the database and the relationship between the tables in a database, the idea of restoring a single table can cause more issues than it solves. Other rows in related tables may "logically" disappear because they won't join properly, you can cause issues with foreign key constraints etc. etc. I'm happy to hear that your process works for you, but "in general" restoring a single table in a database is not a great idea.
    0
  • JetAppsAdam
    Hello, Just wanted to address a couple of points brought up in this thread. Firstly, as already mentioned in this thread JetBackup does not perform incremental backups of databases as it is currently not feasible to accomplish this in any way other than a database dump every time the backup job is run. Secondly, regarding JetBackup locking databases backing up, we actually have a setting related to this that you can read more about here: Settings " JetBackup 5 Documentation documentation Thank you, Adam G JetApps, LLC. JetApps.com | JetBackup.com
    0

Please sign in to leave a comment.