Backups are for weaklings! - Desktop Customization & Workflow
Users browsing this thread: 1 Guest(s)
|
|||
Catched your attention? Good. My attitude towards making regular, tested backups is pretty sloppy, I usually use ugly shellscripts that write my data to USB-sticks via cronjob, but more often than not I do not make any backups on new machines for weeks or even months. Yes, I know how stupid that is.
As I probably have deserved it, this now came back to bite me in the arse and I've lost some (more or less important) data a few days ago. I took that as a hint to finally find a backup strategy that does not consist solely of "#yolo". My question is, how do you do backups? I know of tools like AMANDA, Arkeia or Bacula, but they are a bit overkill for my scenario (A couple of boxes connected to the Internet, a notebook), but on the other hand, going back to writing shell is something I don't like either .. halp! |
|||
|
|||
If it's ZFS, incremental snapshots and clones. For everything else, rsnapshot! :D
|
|||
|
|||
I back everything up that is not private to a git server and the few private things I have I just pop in a folder and tell the OS to create a copy of it to a USB stick.
The world is quaking from our Linux Thoughts!
|
|||
|
|||
I backup the dot files that aren't private on Github and I simply copy to a USB the rest of the important files . I don't any big data other than my music so I'd rather copy it all instead of writing a script that automates it, but if I had an important DB running on my laptop, I'd make the process a cron job.
|
|||
|
|||
Like others here, I recently started to keep my dotfiles on github. Then I got some important documents on Google Drive. That's about it. My backup strategy is seriously lacking... I need to get a NAS going with some RAID.
|
|||
|
|||
...Backups?
I do literally nothing, I don't have anything to put them on. The only stuff that really needs saving is school stuff, and I just dump that on a USB or transfer it to my Raspberry Pi and let it sit there should anything happen. |
|||
|
|||
i have some (now outdated) config files on a usb stick for my laptop... but come to think of it my desktop with its music collection is not backed up.
|
|||
|
|||
As much as *buntu is maligned among the elitists, Ubuntu One gives 5 GB (or more) of free online storage in their silos.
With the Ubuntu One app you can keep your selected files and directories automatically uploaded and synced, if you don't mind having *buntu "phone home" all the freaking time. The web interface works with other OS besides *buntu, and free storage of my stuff online makes the stuff available to all of my devices, as well as the NSA's! :D |
|||
|
|||
While that shell script + cron solution gets rained on a lot, by and large, it's quite an effective method provided nothing else breaks. It's possible to write scripts that are quite robust with error checking, conflict detection, checksums etc... It all comes down to how important your work really is. If you can survive without it, then it's toward the 'less' important end ;)
I'm currently running a web server in the test phase and the forum script auto-locks and archives threads as html files after a certain period without replies. This is significantly easier on resources since I don't need to hit a database to serve essentially static content. Basically the URL is SHA1 hashed and that gets split a few times to make directories where html file goes [ don't want 8000 files in one folder ;) ]. Now this kind of thing is ideal for the cp + cksum treatment via shell script and cron. Does it fail occasionally? Of course! But that's why it will try again and if it fails one more time, it will send me an email. Basically... Code: #!/bin/bash The hiccups come if you want complex versioning of sorts with your backups. This is especially true of constantly edited files like office documents or Photoshop/Gimp files. The best in that case (again, depending on how important this stuff is to you) is something like FreeNAS. I'm allergic to most things "cloud" ;) "Cloud" turns computing and backups down to "magic" pretty much. And I don't believe in "magic" ;) My stance on that is simply : *You do not own what you cannot control*. It's nice to think storage solutions like Dropbox, Google Drive, Ubuntu Cloud etc... or proper backup services like Carbonite et. al. are there for you, but you don't know how or where they store your stuff. If it's just family pics and stuff, it's probably not a big deal, but more sensitive things really don't belong there. Add to that the current atmosphere where authorities basically have the gall to say they can peek at your junk because you're not storing it and you have a recipe for mistrust that leaves quite a bad case of indigestion. Of course, I'm also keeping backups for other folks who use my services (don't know what they're storing and don't care) so if I were to lose any of it, I'd need a one way ticket to Mexico :P |
|||
|
|||
(26-10-2013, 06:14 PM)eksith Wrote: While that shell script + cron solution gets rained on a lot, by and large, it's quite an effective method provided nothing else breaks. It's possible to write scripts that are quite robust with error checking, conflict detection, checksums etc... It all comes down to how important your work really is. If you can survive without it, then it's toward the 'less' important end ;)This is the smallest example I have seen to do what you wanted to do.
The world is quaking from our Linux Thoughts!
|
|||
|
|||
lol That's just the status dump to my email :P It only runs if something went wrong and there's a status message for me.
If you're curious about the actual code that creates archives from given path and content info, it's as follows (it doesn't have the actual forum related script yet. Maybe I'll post that in the PHP board when it's done) *Edit* Forgot to add, the relevant "path splitting" happens in *filePath* and archive checking/insertion happens in *archive*, of course Code: <?php |
|||
|
|||