0

Im looking for the best way to accomplish a full backup of our "vmail" accounts on our mail server (CentOS "iRedMail" 5.1).

I also need to split on 4GB parts the resulting tar or bzip compressed backup, and get this DVD-RW burned, on same server.

The idea is to get this procedure to running overnight, once a week.

Our mail server holds about 45GB of information.

I will appreciate any advise or help on this topic.

Thanks.

3 Answers 3

1

If you have to use DVD-RWs, I would write script for this and have cron execute it once a week.

I would look into the commands:

  • tar
  • cdrecord

tar can make multi-volume archives. The trick would be to use a DVD changer. I'm not sure how you want to automate that process. cdrecord can write to DVDs - don't let the name fool you.

However, I would recommend using eSata/Sata disks with a drawer type enclosure. They are cheaper and more reliable than optical media. You could then use rsnapshot to do your backups: http://rsnapshot.org/ Restoration would be easier. It's something that a lot of people forget about. They never even test their backups. Then when something goes wrong, they can hardly figure out how to restore the data. Which is why I would not use DVDs and split archives.

1

As mentioned, tar can create multi-volume archives. Alternatively you might want to take a look at split command, if you truly want to go ahead with your current backup plan.

But, please remember that main purpose of taking backups is not to backup, but to be able to restore as quickly and reliably as possible. Recovering archives from many DVDs, hoping that each of those discs are OK and praying that restoring the multi-volume archive goes OK, doesn't sound like fun.

Not to mention another important job of taking backups: you need to test them somewhere regularly. Again, restoring from the DVDs doesn't sound like fun and due that laziness might creep in and lead to situation where no one doesn't test the backups at all.

Get instead a HD or couple of them. It's up to you if that's an USB HD or what, but copying to HD is much faster and much more reliable than using optical drives. Also tasks like recovering only a handful of files instead of every file becames easy. The already mentioned rsnapshot mentioned is a very nice tool for taking backups. If you have several servers to back up, other good alternatives include Bacula and BackupPC.

0
  1. snapshot (In case you are using LVM)
  2. rsync to another storage
  3. man gpg
  4. man tar
  5. man split

Also like Janne I would recommend you to store backups on a HDD.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .