How do you back up your data for preventive measures in case of any sort of hardware/software/OS failure?
And by data I mean your files (pictured, documents etc.), as well as the state of your machine.
Do you use any special tools? Which files do you decide to back up? How regularly do you back up? And where do you keep your backups?
Thank you and have a great day! 🎈
Top comments (18)
I recently started backing up my laptop to a WD My Cloud daily. I will also backup to an external hard drive once a week and I plan to tar my backups and send them a Google drive as well.
Basically, I mount the device using sshfs (though any FUSE should work) and incrementally backup /home, /etc, and /var using Borg. Borg has been amazing, simple, and secure. I previously used duplicity but it was lacking in features. It does have support for a lot of backends though.
A note about Western Digital: I would not recommend buying from them if you are a Linux user. I have not been able to connect to the device using the native client (no linux support), the APF connection has caused data corruption twice, and I cannot for the life of me figure out how to connect via NFS. Samba worked but I found sshfs easier to script. Their SSH setup mandates connecting as root and authenticating using a password which is frankly barbaric.
Why do I need daily encrypted snapshots of my system? Because I am a distro hopper, I tend to fubar my system at least twice a year, and I do not trust my wifi router/WD to protect my NAS alone.
If you don't have a lot of data, and want an easy solution, rsync.net has an intriguing deal.
Just a quick point on Western Digital...I haven't used their pre-built cloud-in-a-box solutions, however I do use and swear by their WD-Red line of NAS hard drives (I use them in my own cloud server, which runs CentOS). They are top quality at a good price; some large cloud providers agree and use them also. I've had very bad experiences with both Seagate and Hitachi drives in the past.
Similar experience here! All my Seagate drives failed (some lasted longer than others, but still), but I have a WD drive that outlasted 3 or so other Seagate drives.
That's very fair. I should have specified their My Cloud product as I haven't used any others.
Do you have any experience with Synology?
I build my own NAS, and haven't used the Synology boxes, but I have consistently read good things about them. They just seem a little pricy to me.
I use Time Machine, Carbon Copy Cloner and Backblaze. TM uses the default settings, CCC updates a bootable clone of my drive once a day and Backblaze continuously saves changes.
TM and CCC back up to two hard drives in a RAID (JBOD config) connected to my Mac. Backblaze is like my 'backup backup' in case all my hardware fails at the same time.
I use snebu as a systemd unit backing up
~/records
,~/pictures
, a couple other directories, and/etc/packages.txt
. That last is a list of all packages I have installed, generated by another systemd unit which/bin/sh -c '/usr/bin/pacman -Qqe > /etc/packages.txt'
daily. If I ever need to recover the system I can get my personal files and the package listing out of snebu, feed the latter into pacman, pull my dotfiles down from GitHub, and I'm theoretically back in business.Backups go on a non-boot hard drive in the same machine. I've thought about pushing them to a NAS for extra safety but I only have so much time to juggle this stuff.
I just wrote a Python script (tool, in fact) which can do full/incremental backups by schedule specified in its config file and store it locally or/and to an AWS S3 bucket.
The first intention was just to recall Python a bit (not to ofter use it, unfortunately) but then it became my daily-tool on both work and home laptops.
First, I have to say every backups are not equal
Some will prevent hardware failure, others won't. Some backups may be daily, others monthly. RAIDx0/5/6 can prevent a hardware failure, but it is useless against a user deleting something. RAID is not a backup solution. Hopefully nobody here is using RAID as a backup :)
Before
I would simply
rsync
my personal data (pictures, documents, videos...) once in a while to an external HDD or thumb drive. I often take the HDD with me in my bag, just in case something happens to my house...3 months ago
It just happened. I messed with a
rsync
command (see below [1] for the details) while backuping my parents' data and it just deleted the home directory in 2 seconds: the time to press Ctrl+C. Hopefully, I was able to recover everyting from backups andextundelete
...All in all, my parents weren't too bothered: the data they care about was fine. However as far as I was concerned, I realized I had to prevent this from happening again.Automatic snapshots
Thus, to prevent me from deleting my data: snapshots are automatically and regularly taken, and saved on the same drive. Note: It is useless in case of hardware failure! So I still need to manually backup once in a while.
Copy On Write ftw
For my laptop running GNU/Linux Debian, I take BTRFS (a filesystem similar to ZFS) snapshots with btrbk:
Scratch
for unimportant big files which is not saved.Rsync <3
For my family computer running GNU/Linux Ubuntu with an EXT4 partition, I chose backintime for a couple of reasons:
rm -r /
. The native backup tool for Ubuntu does not.I have two profiles:
I exclude computer-generated files that aren't necessary such as caches. BiT also excludes a bunch by itself.
For changing files I care about saving one time and not their many states (such as a Windows XP VM), I just added them to the first snapshot and excluded them from the other snapshots.
And now? Automatic remote backup!
I plan to build my own NAS/Backup machine to automatically backup my computers.
I'm aiming at rockstore for now: an OpenSource BTRFS & Linux powered Advanced NAS server.
Peace and backup your data. It deserves it <3
[1] Tutorial: How to delete © your data
For the record, Valve has already done something similar here.
SRC=SOURCE
DEST=DESTINATION
--delete
option and don't forget the very very nasty/
####rsync -auvP --delete "${SRC}/" "${DEST}"
Now, run tmux
tmux
Run the same rsync command (actually it isn't)
Pown'd! Tmux resets the variables SRC and DEST that are empty string
""
now. The rsync command becomes:####rsync -auvP --delete "/" "" #"" means current directory
Basically, it copies / to the current directory. Let's say it is /home/$USER. Cool !
Note: To keep the same behavior as
--delete
while deleting after the transfer, I recommend--delete-delay
.I use Dropbox as for storage and synchronization.
I link unprivate things (like source code) directly to a Dropbox folder.
Private things, like my documents, and home directory, etc. I use
duplicity
to encrypt and store in a Dropbox folder. I run this command on a regular basis.For photos I mount an ecrypted direct using
encfs
.I additionally have a script that mounts an encrypted USB device and uses
rsync
to copy directories to it. This includes most private things stored on Dropbox, but not pictures, and not things which are publically stored elsewhere. (Though as USB sizes increas I get more lenient in my filtering).I use Borg with Rclone and an unholy combination of dropbox and Mega.
I run Borg with systemd and a simple
backup.sh
script similar to that one: (blog.andrewkeech.com/posts/170718_...).I use the pass unix manager to encrypt everything and Rclone to synchronize.
My
dotfiles
andcofig
folders are going to Dropbox and all Borg backups to Mega.Installed packages are backed with dpkg and apt-key.
I used to have my own HD solution, but I just don't trust
hardware and me maintaining it any more.
No more time or patience :p
All my devices run ZFS which are snapshotted daily (and before major events like upgrades) and are replicated to other ZFS nodes. Important data is even replicated to offsite ZFS storage.
All snapshot and replication management is done by a self-written opensource tool.
OSX Time Machine and a non regularly backed up clone of the laptop's hard drive using SuperDuper. Time machine saved me many times :-)
Evernote for the notes synced between computer and phone.
Dropbox for lots of non organised media files: mainly everything I share from my computer to my phone and viceversa plus every media the (Android) phone captures (or receives) gets automatically backed up to Dropbox so one day I can build a slideshow with music and bling, to show to some poor relative, about my last 15 thousand years of life because I never check those folders anyway.
I use dropbox and evernote along with an external HD. Pictures and videos automatically go to dropbox from my phone.
Seems like a nice system