I lost my data trying to back it up
1–10 of 126 posts
Re: I lost my data trying to back it up
#2Re: I lost my data trying to back it up
#3i'm basically asking what the impetus was for "just going for it" which is probably going to be a reason that other people share...
Re: I lost my data trying to back it up
#4The bright side is, you'll never make this mistake again. The downside is, for me at least, I end up with triple+ backups of everything..
Re: I lost my data trying to back it up
#5Dead easy, 10 min, can't fail alternative for home projects: use a VM instead, switch off the VM, copy the disk file, switch the VM back on. Use NVMe SSDs and depending on the size, you can probably do an automated daily backup with minimal downtime.
Re: I lost my data trying to back it up
#6why would you try this out with "live" data? why not incrementally connect drives and do it that way? i'm basically asking what the impetus was for "just going for it" which is probably going to be a reason that other people share...
Re: I lost my data trying to back it up
#7Re: I lost my data trying to back it up
#8I am a bit conservative when it comes to backups and I do not trust myself very much. So I am doing backups on the block device level to avoid not copying certain file types, file attributes or whatever feature the filesystem in question posses.
In order to avoid, risky OS reboots, I am using lvm snapshots like this:
# sync the filesystem to disk
sync
# create a snapshot with a 10GB buffer
lvcreate -L10G -s -n "$snapshot" "/dev/vg/$lv"
# write the backup to a backup disk
dd if="/dev/vg/$snapshot" of="/mnt/backups/lvm-vg-${lv}_backup-$(date +%Y%m%d).dd" bs=64k
# remove the snapshot
lvremove -f "/dev/vg/$snapshot"
That method is certainly not perfect, as you are still taking the backup with a mounted FS in place and the snapshot size must be adapted to the use-case, but in the end, this is a method to create backups which are complete (independent of FS), easily accessible (e.g. mount via loop device) and do not interrupt the service.Re: I lost my data trying to back it up
#9My worst horror story wasn't really mine. I did desktop support in my first job. The library had their own system and their own support arrangements but I had a good relationship with them and would advise from time to time. One day they said the PC running their archive management system wouldn't boot. Could I take a quick look before they called the company on their support contract? Sure enough the PC wouldn't boot, the hard drive had died. I asked if they had recent backups? Oh yes the backups were fine, in fact it had got much better recently. Before the backups used to take an hour, but for for the last few weeks it only took 2 minutes. They only had 2 weeks of tapes on rotation.
Needless to say, the backups hadn't been running at all and failed silently, probably due to early symptoms of the hard drive failure. They lost everything.
Re: I lost my data trying to back it up
#10I've also configured a daily mail with a log about how the backup/snapshot/replication went. Even if it went fine. So if I don't get mail, I know something is up and can fix it asap.
I have never slept so well after doing this with ZFS, even backup for Windows SQL Server with iSCSI volumes works great!
More people should do backup with ZFS!