What is YOUR backup strategy?
Set up a home media server a little bit ago with Arch and am loving this distro so far. One thing i'm about to setup is a proper backup solution. Up till now I've been living like a daredevil without my server backing up and don't want to wait for my luck to run out.
Was looking into rsnapshot for incremental backups. Anybody here use it? Experiences? Better options?
Incremental would be good but ease of restoration is something to keep in mind for if something DOES go wrong.
Mainly! What is YOUR backup strategy? When you post, list hardware type (laptop, desktop, server) and what you're using.
For all those who have no back up … shame on you … wait, I guess that's shame on me as well.
About this post
- Posted
- Archived
- Score
- 30 · 100% up
- Kind
- Text
- ID
- jpvko
73 comments
My backup strategy is to read threads like these and think about which strategy I like the best.
EDIT: I also make use of rdiff-backup, but it seems to be quite old.
All the laptops in my house backup to a server in the closet using rsync over SSH with key authentication on a cron schedule. That drive, sdb1 is backed up (8 hourly, 5 daily, 3 weekly, 6 monthly) to sdc1 using rsnapshot. Every other week I bring home a USB drive encrypted with TrueCrypt that I keep in my desk drawer at work to refresh my offsite backup with an rsync job from my most recent daily.
I think this is a pretty good scheme. I have full control- no corporate access to my data. My upload bandwidth gets used for what I choose, like seeding. I'd like to add a second USB drive, or better yet, find a cheap e-sata controller card so I can use my dual drive dock over e-sata, so that I can keep one offsite backup offsite at all times. I'm a tiny bit concerned that my house will burn down on the day I bring my USB drive home to refresh it. Also, I'd like to just rsync the entire rsnapshot tree to the USB drive, but the drive is only 1 TB so I can't keep all the versioned backups offsite.
I've restored files on several occasions when my husband realizes he's deleted something from his laptop. I've also helped him by offering like 7 versions of a journal article he wrote and wondered if he'd unintentionally made some changes.
This is a pretty good scheme. It accounts for single disk failure, entire system failure, and complete destruction of my house. I work about 5 miles from home so it may not account for a monumental natural disaster (think Hurricane Katrina) or man-made disaster (Fukushima Daiichi), but my work location is pretty secure and was designed to survive those events, too, so it may work out. I guess I'd have other concerns at that point.
Great! Thanks for the details description.
I definitely need to get offsite backup going. Just haven't found the best solution that fits me yet. If something happens to my house I'm pretty screwed.
Yes, most of us would be. I started doing offsite in response to a string of burglaries in my neighbhorhood. I'd have felt pretty awful to lose all my baby's pictures, wedding videos, etc, to some crackhead who'd probably sell the whole tower for $20.
Deleted before we saved it.
Haha because girls can't use computers amirite?
While it's nice that you appreciate the consideration I've put into this, your comment is sexist. If you worked for me, I'd write you up.
I open my SSH port with the root account available and let people do backups for me.
Sounds to me like this would be pretty reliable. I guess restoration may be the tricky part. ;)
My what now?
Git
do you only backup your home directory and leav out media files? I'm wondering becaus Git isn't too fast with big files.
I don't even backup my home directory completely. I have a subdirectory in my home directory with a few repos in it for different things. I don't make any movies, so I don't have to worry about stuff like that... I suppose I'd set up subversion for that. And I use darcs, not git myself, but that's cosmetic.
Why, on a client machine, would you backup anything else? If the box dies, I will just fire up a new machine, sync and go. The new client might even be a windows or mac box for a short time until I get a non-toy replacement.
I started by backing up only documents and images, but I've since moved to songs. I wouldn't backup movies this way.
This doesn't work that well... Not only does Git choke on big files, when I tried to push the most important portions of my homefolder (about 50.000 files, no big ones) to a Git repository, checking the status of the local repository took almost 1 minute.
Luck.
I wrote a wiki page about mine. But it's more suitable for a work station, than for a media server.
On my laptop I use rdiff-backup. Every hour it backups the files I want by sending it to a server at home. Every night that server sends the newst backup to a server at my parents house. Easy to set up and no problems in the last two years.
I'm very happy with http://www.dirvish.org/ - I've set it up to backup to an encrypted external harddrive. Restoration couldn't be easier, the backed up directory tree is just a normal directory tree named after the date of the backup. Unchanged files still only take up space once because it uses hardlinks.
Surprised to see no updates on the webpage since 2008 - that propably means there were no issues with it since then. It's available in AUR.
While I don't have a backup system on my desktop (which runs Arch), I do have one on my CentOS server. While it's not Arch, it's really applicable for most distros.
I run a mirrored RAID array (2 drives, software RAID) for redundancy, and since I know that's not proper backups, I have a script in crontab that takes my mail server (Xen VM) and webserver (another Xen VM) down for about 30 minutes at 4:30am Wednesday morning (my day off, when I'm sleeping in) and makes a copy of the Xen images to the USB hard drive I have plugged into the server.
It's not the most graceful solution in the world, but it's homespun and I can say that it's my system, and not a system I've taken from someone else. And most importantly it works. :]
The USB drive is a pretty nice system, as I can swap out the USB drive whenever I need to. That, combined with the RAID array, makes it a relatively bulletproof system.
My server uses duplicity, using a version of the wrapper dt-s3-backup, to back up to amazon s3.
Nightly incrementals with a full backup every two weeks. It's saved my bacon more than once.
I'm using backintime and I like it a lot so far. Never had to restore though. Backing up the home dir of my laptop (HP EliteBook) onto an external HD.
An untested backup is just asking for trouble. If you have a third test machine you should really test the restore function.
Absolutely. I can't count the number of people in my field who can tell horror stories of highly designed enterprise backup systems that were topnotch at backup and useless at restoration. At work, I test restore a random set of files every month to ensure IT is doing what it says.
I have a little script that I wrote that just rsyncs over to my external hdd every night on my desktop. Takes about 10seconds because it ignores files that haven't changed.
In the future I hope to extend it so that it creates new directories for each day and hard links unchanged files. Just like Apple's time machine. :)
On my laptop my ~/bin and ~/documents are symlinked in ~/Dropbox and I use github for programming.
Why not use something like rsnapshot or some other incremental tool?
Yes, rsnapshot is perfect for this.
I will have superman fly around the Earth really fast.
Make sure that he goes in the correct direction!
cp -r ~/<instertfilehere> /mnt/hd/<instertdirhere>
Why not use cp -ru instead? It will only copy if the file had been modified or not already present.
i'm in process of building a script that takes home directories, config files, etc, backs them up locally to a different disk, as well as backing them up to my nas. nothing fancy, tgz archives, timestamp & username filenames.
I use rdiff-backup. I haven't had any trouble with it for over 4 years now.
I have a laptop and a desktop computers, never turned on at the same time. On each of them, I synchronize several of my directories with an external hard drive thanks to Unison.
I do backups with rsync to an external drive about once a week, whenever I do an update (just before, not after, in case something breaks).
I backup every packages in /var/cache/pacman/pkg. I backup select files from /etc/ and my home folder.
I don't backup, I scale horizontally.
rsnapshot of my root and home directories (laptop) to an external hard drive. Files that cannot be replaced are also symlinked to dropbox. Thought about using Amazon EC2 for an offsite backup but didn't want to pay for it. FWIW, I really like rsnapshot. It does everything I need and hasn't given me any problems.
Critical configuration files are mirrored across all capable devices. Each device has a directory for one another under /mirror. If all but one device were to lose data, there would be panic to replicate the last remnants of the data before the final machine was lost. All devices are never in the same place at once as that would increase risk of such an event. e.g. Bottom of a pool.
Working data is synced in place across fewer machines.
Not having any important files.
When I did my last backup (on Gentoo) I just tarred (or gzipped, I don't remember) root and I've stored the backup on my old USB 80GB hard drive. Worked pretty well :)