I’ll confess I don’t do backups regularly 🙀
In the past, I always followed the same routine: I start backing up my files but quickly run into issues and give up.
Recently I corrupted one of the system files, nothing major but I have to reinstall the OS in near future
So it prompted me to think about the whole strategy of backup. Before I waste 2 weeks trying to build “the perfect backuping systemTM” (and give up), I would like to get a peak how others are doing it.
Choose any number and tell me I’m an idiot for even asking that 🤣
- how much (of you personal) time you spend to assure regular backuping?
- how do you backup settings of your software?
- how do you deal with software that doesn’t provide explicit export of settings? do you do it manually by an occasional export once in a blue moon?
- do you use configuration managers like Ansible to quickly install/restore settings?
- do you backup binaries/installation packages?
- do you backup mobile apps and their settings?
- do you backup snapshots of OS? if yes, please explain your strategy dealing with them
- do you include temporary personal files into backup? For example: a shopping list
- do you copy system files in a separate folder for further backup or instead put the paths of system files for backup software to grab the latest version?
- do you backup logs? if yes, please explain your reasoning and situation.
- what’s your folder (hierarchy) of the drive where you store the backups? How did you come up with it?
- do you keep all backup files on a single drive/RAID or you have a separate storage for groups of backup files? For example such groups: drive for Windows backups, drive for networking hardware, drive for mobile devices, drive for server related stuff, drive for grandparents’ backups (😄)
- do you keep files residing only in a cloud (excluded from backup)?
- do you backup your emails? if yes, how do you filter them to exclude junk from backup?
- do you backup your online profiles? like Facebook & google
- how and when do you clean old backups?
- what do you consider when buying a new drive for backuping needs?
- how often do you test your backups?
what i currently do is use Pika Backup to create an encrypted backup of my home directory at 8 am local time every day. it excludes my cache, trash, and downloads. the backup is stored on-site on a family member’s Raspberry Pi, but what i would like to do is make an arrangement to back up off-site as well. my mountpoint for my directory on the Raspberry Pi is
/backups
, and i use that directory only for storing backups. i currently do not make system snapshots, so anything outside my home directory is not backed up. i don’t worry about space since everything is compressed and each incremental backup is a few megabytes at mostdeleted by creator
to automatically backup my Linux /home folder
including ~/.config and ~/.local 😳?
also haven’t you got the home folder filled with random installation junk or is it just me 😆?
Overall, thank you for the recs, I’ll check it up 👍
Yes including, I just exclude temp files. But yes /home folders do pick up a lot of crud over time and is worth going through a bit and removing stuff. I also run ‘ncdu’ to find the biggest wasters of space. It’s that 20% that wastes 80% of the space.
In my case, I use Apple iOS products so all of this is handled automatically using Time Machine. My desktop iMac, iPod Touch, and iPhone are all backed up to an external 6 terabyte Western Digital hard drive.
I do not use cloud services for privacy/security concerns. Thus, I have to keep an eye on the external drive every so often to make sure that it’s not going to fail. This isn’t a huge issue and I’ll replace the external drive about every 4-5 years.
I know there is something like a “Rule of Three” when it comes to backups where the rules seem to differ, but one of the rules usually mentions off-site backups. The scenario usually talks about an unexpected fire destroying everything in the home, but recently with Hurricane Ian in Florida for example, the entire region could be flooded so even storing a backup at a nearby friend or relative’s place might not be sufficient.
In a case like that, I wonder if having a water/fireproof safe would be good enough if cloud storage is not an option. It seems most waterproof safes are water resistant for up to 72 hours, but it might be better instead to just disconnect and take the backups with you if you need to evacuate and have time.
I have a waterproof/fireproof safe that holds all of our important documents and there’s room for my external drive if need be.
Removed by mod
Yes.
Removed by mod
Maybe putting drives in a tupperware container inside the safe would work?
Removed by mod
Yeah, same bro. Hope one day we’ll clean up all this mess in one tidy efficient structure
Removed by mod
I personally note that if you don’t need incremental point in time backups, but just a current or periodically synchronized redundent copy (most of my stuff), rsync or syncthing are much simpler to setup and use.
Add btrfs snapshotting to the script and you’ve got borg backup with a lot less hassle.
My backup script looks like:
- Create encrypted 7z archive with sensitive stuff, timestamped filename.
- Rsync that folder, plus any non-sensitive folders, to an always-on low power server
- On boot, high-power server (with more redundency) rsyncs with smaller server and pushes backups to cloud provider after.
- Non-linux devices use pcloud backup, and high power server copies back locally from that periodically,
Removed by mod
That’s a great strategy, thanks!
It prompts me to ask, with so much automation in place, I wonder, if 7z archive goes corrupt, would you be able to restore its previous revisions?
Also do you have any tips how and when to tidy up your old backups?
The 7z archive is created new each time. The sensitive data is less than 100 MB so incremental changes are more hassle than they’re worth.
Typical best practice is like 30 days of dailies, 3 months of weeklies, and at least 1 annual in perpetuity.
In practice, I’ll just make sure to have 3 copies.
deleted by creator
Save lists of applications
I’ve actively stopped doing this (outside of server configs). If I don’t remember what its called, I’m probably better off not reinstalling it when the time comes.
I agree, but I also made a twist to this rule: I share/toot/post software I like if it’s not essential for my workflow. Then, if I ever want to find it again, I can search my own posts or even ask people close to me (who probably read what I post).
A lot of my backup processes are very similar. Is there any low hanging fruit you wish you could improve in your backup strategy?