This is loosely related to Data Storage, but I don't think ill get a better answer in any other sub-forums.
I'm looking for a good way to regularly back up my Linux server's OS disk. The primary intention is to have a backup of it in case the disk dies so that I can get a replacement drive, copy over the data from the backup, re-install GRUB and then continue normal server operation. I am not really interested in running RAID1 for my OS disk at this time even though that's probably the best solution. I think i get other benefits of having a real backup of the OS disk.
My requirement is that I need to be able to take an image of the root partition on a live filesystem mounted as read-write.
I also think making an image weekly will serve me well. So I'd like to probably end up writing a script that runs Sunday night and takes an image of my drive.
Does anyone do anything like this now? What have you found that works well?
I'm about to preemptively replace my 5 year old Velociraptor with a Samsung 840 Pro this time, but would like to maintain a recent a backup so when the 840 dies I can replant the backup to a new drive and not lose all my OS customizations and updates and everything. So I can get the server back up and running the way it was a few days ago from the snapshot in a matter of hours.
So I was going to put LVM on the SSD and then transplant over my current root and then going forward using FSArchiver (http://www.fsarchiver.org/Live-backup) which I can run off an LVM snapshot so that I can do the image live. I don't really run many services from my Linux OS. It's mainly just ZFS On Linux and a virtual machine host. No database or anything so I don't think consistency should be a big problem doing it live especially if I can take advantage of an LVM snapshot.
NEW PLAN
I was thinking about this more last night and I think I came up with a good solution.
1. snapshot my root drive with btrfs.
2. run an incremental rsync (or btrfs send) to a btrfs backup drive every night.
3. snapshot the btrfs backup.
Anyone see any problems with this idea?
I should always have consistent backups because i'm snapshotting root before rsync, and I will always have a good backup even if a drive starts to fail because I keep snapshots of each backup every night for a month for example. So I can just restore the root fs from any day and find a day that works in case the last few backups were corrupt due to maybe rsync having trouble reading from a partially failing drive.
Do you guys have any insight or suggestions at what software I should take a look at to accomplish this task?
Thanks
I'm looking for a good way to regularly back up my Linux server's OS disk. The primary intention is to have a backup of it in case the disk dies so that I can get a replacement drive, copy over the data from the backup, re-install GRUB and then continue normal server operation. I am not really interested in running RAID1 for my OS disk at this time even though that's probably the best solution. I think i get other benefits of having a real backup of the OS disk.
My requirement is that I need to be able to take an image of the root partition on a live filesystem mounted as read-write.
I also think making an image weekly will serve me well. So I'd like to probably end up writing a script that runs Sunday night and takes an image of my drive.
Does anyone do anything like this now? What have you found that works well?
I'm about to preemptively replace my 5 year old Velociraptor with a Samsung 840 Pro this time, but would like to maintain a recent a backup so when the 840 dies I can replant the backup to a new drive and not lose all my OS customizations and updates and everything. So I can get the server back up and running the way it was a few days ago from the snapshot in a matter of hours.
So I was going to put LVM on the SSD and then transplant over my current root and then going forward using FSArchiver (http://www.fsarchiver.org/Live-backup) which I can run off an LVM snapshot so that I can do the image live. I don't really run many services from my Linux OS. It's mainly just ZFS On Linux and a virtual machine host. No database or anything so I don't think consistency should be a big problem doing it live especially if I can take advantage of an LVM snapshot.
NEW PLAN
I was thinking about this more last night and I think I came up with a good solution.
1. snapshot my root drive with btrfs.
2. run an incremental rsync (or btrfs send) to a btrfs backup drive every night.
3. snapshot the btrfs backup.
Anyone see any problems with this idea?
I should always have consistent backups because i'm snapshotting root before rsync, and I will always have a good backup even if a drive starts to fail because I keep snapshots of each backup every night for a month for example. So I can just restore the root fs from any day and find a day that works in case the last few backups were corrupt due to maybe rsync having trouble reading from a partially failing drive.
Do you guys have any insight or suggestions at what software I should take a look at to accomplish this task?
Thanks
Last edited: