How's your backup solution?
I just finished my new backup solution (borg on external media and automated scripts) and noticed a few days ago there are still a ton of people who never got to it.
It will take you about one hour and can save you from loosing all of your data!
So for all of you "I can just do that another time": Take the chance and help your future You not spending countless hours trying to recover lost data. :)
This is a friendly reminder of someone who lost 10 years of data some years ago.
About this post
- Posted
- Archived
- Score
- 86 · 100% up
- Kind
- Text
- ID
- 53bd04
95 comments
I go with none to live dangerously.
My server's metal chassis works double job as a storage container for my quadcopter's lipo batteries
Deleted before we saved it.
Configs and source code on github. Everything else may die.
Edit: Netflix and Spotify make backups really easy nowadays. Important documents have usually been sent via email, so IMAP solves those for me. I don't keep photos around for longer than my next Android factory reset or phone switch. Only stuff left is source code (mostly FOSS), university stuff (collaborative work via github anyway) and configs (dotfiles repository).
I don't really get that, is the sole purpose of your computer is to be a well configured-computer? Do you not use it for anything but configuring itself?
Do you not have any important yet private files? (private keys? I guess with a strong passphrase you could put them on github, but why would you do that...)
hahaha. i mean that's funnny the way you ask.
so my only none code things that i value are notes and stuffs i keep learning stuffs. those are all backed up on Dropbox or google drive. maybe some people blog them? upload it to their web server? music and playlist and stuffs well i can collect them as i go/start fresh. :D
As for the configuration, yes, but reinstalling arch is easy when you have done it about a hundred times already (helping peers get their first setup working, or in VMs. Of course not reinstalling the system to make it faster or something windowsy like that). And once that is done, clone the dotfiles and off I go. I actually love it to have a clean system (e.g. when I buy a new computer) and I get to re-choose my software.
Private keys, yes. Some of them don't matter and I can reinstall new public keys on the devices I need them. Others, like my primary gpg key, I back up manually after creation. But that does not need an automated solution.
Can this be my epitaph ? Are your comments CC by SA ?
I hereby declare the comment in question CC0.
BY would be kind of creepy.
Add backing up Docs to Dropbox, songs/video to an external drive, and this is me.
Copy folders/files from home to my data partition and an external desktop. I'm also a ricer and upload my configs to dropbox, deviantart and bpaste all the time.
Then I have a much bigger issues than configs and media files.
I know someone who had his apartment burn down and start from new and he actually told me he didn't care that his laptop or personal stuff went away, you get money from insurance to buy new things.
But the personal data and documents are the real treasure. Documents like your university degree or alike or even an insurance paper are really important and cannot be recreated in some situations.
So while I get that you will most probably be busy with other things when your house burns down, I don't agree that those data is useless. And to make it even more clear, I believe if you have a backup of all important documents when your house burns down will help you to get everything up and running faster.
Stuff like this I'd just store on Google Drive or similar. Those things aren't really useful in everyday life and mostly just "sits there", so you might aswell let it "just sit" on Drive.
Syncthing + a raspberry pi and an external hard drive. Quite easy to set up too, cheap, easy to add a third/fourth/... computer in the syncthing list and they all syncronise (I added my phone for some small size and critical folders, just in case).
My main concern for the time being : my laptop hard drive is fully encrypted, so is the syncthing data transfer, but the RPi external hard drive is not, which is quite a stupid move but it would take ages to change now. One day...
But I'd be glad to hear your solution, mine is just the first thing I thought about when I wanted to have a backup on a physically distant computer.
EDIT : There is also some basic versionning, which is great if you "accidentally" delete a critical folder and it's immediatly sync'ed.
i'm using the exactly same setup, but i solved the encryption problem by encrypting my synthing folders with dmcrypt and just transfering the dmcrypt container via syncthing. then i added an script with automatically unlocks the container on my pc and i dont have to worry about unencrypted data.
Well, I did not comment on this thread for nothing! I did not even considered this as my whole drive was already encrypted, but it's really a great way to use syncthing to backup everywhere without having to worry about the other end's encryption.
Many thanks!
Syncthing is pretty awesome!
Have you considered
dm-cryptencrypted volumes for sensitive information on the RPi external hard drive?As i just told /u/zsh4310, no, never thought about this, but apparently everyone knew. I might add this on the wiki later on if I manage to do it cleanly.
Deleted before we saved it.
Crashplan instant sync to 4TB FreeNAS
The whole Arch Linux infrastructure is using borg to backup all the "client" servers to a central borg server. The backups are all encrypted and the borg server can't decrypt any of the backups by itself because those keys remain with a few trusted individuals.
All data:
Important data in addition to the above backups:
Borg is great. It replaced rsync hard links backups which were much slower, especially when deleting old backups.
I have lost many drives but no data.
I have pretty much the same setup but Instead I use rclone to backup all my data on Google drive in case something happen.
Borg for the way! I have a similiar setup and I will write some scripts soon to also rsync to a remote location my backup files (password-protected, of course).
My biggest problem is knowing what system files to back up and how to move them to a fresh install without conflict or issue.
For all the articles or advice I've read, the files I had backed up with Borg, or the rsync I have transferred to a new install have always come up with errors I hadn't prepared for or anticipated.
What folders from your arch system are you guys backing up so that you can easily restore it on a fresh install cleanly?
I've resorted to a basic pacman backup because it's the only method I've got to work consistently well.
https://wiki.archlinux.org/index.php/full_system_backup_with_rsync
I burn my data into some DVD. Just that. To AnachronGuy: this thread is really interesting, I can learn many backup methods here.
Yeah I am thinking the same! I enjoy the answers.
git and automated scp bash scripts to an external machine.
Twice a year, I spin up my external hdd, make a copy, spin it down, unplug it and store it away again. I learned the hard way one copy isn't enough.
I use Borg Backup
Hands down the best backup solution I encountered.
People should notice that deduplication is something different than incremental backups...
both have similar benefits in speed/size of new backups, but theres no dependancy on some previous backup progression...
Are there any solutions for backing up to a free cloud storage like Mega or perhaps OneDrive? I can't afford an external drive or a service subscription atm.
Amazon takes around 60$ for a whole year unlimited space. I wouldn't trust Google or alike.
You'd trust amazon, but not google?
Dumb question, please:
Is it possible to backup a partition using dd?
Yes but I wouldn't do it for a ton of reasons.
You can, but you probably don't need to, and it's a bit of a pain. The partition itself should be unmounted (No guarentees that it will work if you're writing to the partition in the middle of the copy), and you're going to be backing up both data that you deleted but is still on disk and data that you probably don't care about (File system attributes).
Best to do a backup of the actual files inside of it.
Yes but doing that is mostly useful for "utility" tasks like duplicating a partition to a new drive. For general data backup it's a bit too low level. Rsync is probably the best traditional tool for general userland data-duplicating.
Does anyone use Amazon Glacier for backups? I'm thinking about using it for last-resort-fire-insurance photo storage but I heard it can be crazy expensive to restore.
You can use the pricing calculator to see how much it would cost you - but restores are pretty expensive indeed, and this is what stopped me from using it so far. It's relatively cheap when you need to access some of the data occasionally, but as a disaster-recovery where you need to access large quantities of data in a short period of time, it's really expensive and could get more expensive than other storage providers in the end. I'm currently using rclone and amazon cloud drive for this purpose, it's "unlimited", you don't pay for traffic and rclone can encrypt it locally before sending it to the cloud.
Yeah so backing up 100 GB and restoring it to my desktop at maximum speed would cost something like $180, $30 if throttled so it takes >24h. I'm currently using a vserver with additional storage for $12 per month which seems to be more predictable cost to me.
I guess glacier is not really meant for end-users anyway.
I don't have one :'(
But I have some of my dotfiles and all of my programming projects on GitHub and other important files on ownCloud.
Time to get some! Get inspiration from this thread :)
I also want to do full disc encryption on my laptop but I always have something better to do...
And I also don't have a nice external harddrive for backup - my biggest one, a USB 3.0 1TB - is in use for my HTPC (Raspberry Pi 3 with OpenELEC)...
Btrfs snapshots on an encrypted external hard drive, important stuff also on google drive, one drive, dropbox (more important it is the more copies it gets), of site microsd cards/usb drives/paper (for various encryption keys/passwords or more exactly partial keys/passwords so that someone would need all/most to help them brute force anything) at various locations that I'm not about to give out here.
Random movies/tv shows that I really like also on an external hard drive, multimedia is unencrypted, everything else is (since nobody else was ever even sued for personal use copyright infringement let alone successfully sued I bet that I wont be the first one + it's a civil not criminal offense so the police can't use it to bust me for something if they want to but can't since all the evidence is encrypted and they have no way of reading it, assuming that I've even done anything illegal that the police would be interested in).
Other multimedia (movies & tv shows more or less) is deemed an acceptable loss and isn't backed up... if it goes it goes. I can dl the torrent again or re encode it again (lower bit rate transcodes for streaming over plex if the line is too slow for doing the originals or the host server too loaded for transcoding on the fly).
And the all multimedia and main drive (ssd) snapshots are on a local btrfs raid10 array (with the snapshots being compressed&encrypted files in an encrypted veracrypt container) and the multimedia being unencrypted. Not that raid is backup since it wont save me from being stupid (the snapshots of everything on the array that aren't mounted normally would take some extra stupidity to lose but could still be destroyed if I'm stupid enough and I do my best to be and almost managed to get them a few times) or a fire or whatever.
In theory all the multimedia will have an external backup one day but I guess I'm either a bad criminal or not one since I can't quite keep up. It will also all be encrypted one day but again either I'm a bad criminal or not one since I can't really afford one or more of those 8 cpu boards + 8 24 core xeons + a lot of 2 tb (or whatever the max is) ssds for data drives (however many I can connect while using all the sata/sas ports on the board + a few sas pcie cards + some pcie ssds (however many I can connect while also connecting a few gpus and a 100 gbit network card) as os and cache drives which would make the performance hit of doing that negligible.
Also despite btrfs doing it's own checksums most things have their own whaterver.sha512 checksum just in case.
Oh, and I have a win10 tablet which is encrypted by default + needs an extra uefi password to boot (not that there is any sensitive data on it due to the whole windows 10 being a piece of spyware... but at least some random thief wont be watching my shemale porn (assuming I have any)) and an image of the drive stored every so often along with the rest of the drive snapshots.
You might call me paranoid (or a criminal or both since the two aren't exclusive) but better being that than losing data (or having hot man on man prison sex).
I like everything you just said. Take your upvote! :)
:)
Syncthing + Bup.
Interesting. Only used bup as a git-annex back end. Curious how you use the two together.
syncthing across multiple clients, copy & paste but also using freefilesync to some WD hard drives
ownCloud on a RAID 1
Deleted before we saved it.
Weekly deja-dup/duplicity to an external hard drive for all my home directories. All important documents are in my owncloud, which is synced to every device I own to deal with potential disk failure. All my hard disks are on S.M.A.R.T. monitoring (when possible monitored by munin) as well. And finally, all code I still care about is on github.com. Unlimited private repositories have been a blessing.
I use the package cylon(AUR)
https://aur.archlinux.org/packages/cylon/
Monthly backup whole system to an external and extra internal HDD in a staggered fashion.(i.e one backup every two weeks to one of them) weekly sync to the cloud for documents and pictures folder(gdrive to google drive)
I keep my data on a Synology NAS, which has mirrored disks and is backed up to the cloud.
Then I do a weekly tar backup of my system files to the NAS and keep 5 versions of it.
I use duplicity to do snapshots and upload the the encrypted snapshots to amazon s3.
A Cubieboard 1TB NAS/box and scripts that run rsync mainly on my source files and schoolwork.