You are not logged in.

#1 2006-02-27 22:13:58

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Simplest backup

Hey guys,

I'm starting to worry about my inadvertant mistakes like rm * in my home directory (thank god it wasn't recursive). Traditionally, I don't keep backups, but I've got loads of free space on a second drive and i'd like to back up my entire home directory to it.

I've seen some backup scripts around here and such, but I'm not sure what I need. Something really simple, and something incremental. Basically, I want it to copy and compress the entire home directory the first time, after that, I want to run it, say, once a week to only copy the changes. I'd rather it kept a synchronized backup so I don't have to do incremental restore if I do something stupid, but that's only a secondary issue.

Originally tried tarring it up, but it took forever and then coughed and died on some filesize issue. Do I want to make something ilke an iso or something?

I'm using reiserfs; what's the simplest way to do this?

Dusty

Offline

#2 2006-02-27 22:47:46

pikass
Member
From: Schwartz space
Registered: 2005-11-28
Posts: 85

Re: Simplest backup

I like rsnapshot very much. Designed for cron and that's where a backup script has to be. (working with rsync and hardlinks)

Offline

#3 2006-02-27 23:01:56

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Simplest backup

I have a really simple bash script i leave in cron, that goes through a list of directories in a file and just rsyncs, them with the files on my backup partition. I used to have a script that copied them all, but rsync works better, doesnt copy the unchanged stuff since last time. I'll upload it tonight.


iphitus

Offline

#4 2006-02-27 23:15:46

whompus
Member
From: Durham. UK
Registered: 2005-08-09
Posts: 258

Re: Simplest backup

I've been using Backup v3.0 by loop

http://foc.neoartis.org/progs/backup/

Offline

#5 2006-02-28 02:16:43

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Simplest backup

I just found dirsync in extra... looks like just the thing, except no compression... so I'm thinking of putting a compressed filesystem on that partition... thoughts?

Dusty

Offline

#6 2006-02-28 02:48:51

viniosity
Member
From: New York, NY
Registered: 2005-01-22
Posts: 404
Website

Re: Simplest backup

rsync?

Offline

#7 2006-02-28 02:58:13

codemac
Member
From: Cliche Tech Place
Registered: 2005-05-13
Posts: 794
Website

Re: Simplest backup

Put your home directory in a subversion repos.  Sounds like a lot, but it really is quite easy, and then you have distributed backups.

Plus every machine you touch, home is only a `svn co` away

Offline

#8 2006-02-28 03:15:38

Dusty
Schwag Merchant
From: Medicine Hat, Alberta, Canada
Registered: 2004-01-18
Posts: 5,986
Website

Re: Simplest backup

codemac wrote:

Put your home directory in a subversion repos.  Sounds like a lot, but it really is quite easy, and then you have distributed backups.

Plus every machine you touch, home is only a `svn co` away

yeah, I've considered that too. only thing is I don't really feel like remembering to put svn in front of all my commands.

Dusty

Offline

#9 2006-02-28 04:32:26

dk
Member
Registered: 2004-04-20
Posts: 106

Offline

#10 2006-02-28 06:41:25

drakosha
Member
Registered: 2006-01-03
Posts: 253
Website

Re: Simplest backup

I'd take a look at sbackup. Really nice and simple http://sbackup.sourceforge.net/HomePage

Offline

#11 2006-02-28 07:22:35

IceRAM
Member
From: Bucharest, Romania
Registered: 2004-03-04
Posts: 772
Website

Re: Simplest backup

hdup is in extra - quite simple, stores monthly snapshot + weekly increments from monthly snapshot + daily increments from weekly snapshot // everything is compressed // very lite

However, I found out that it might just be easier for me to use something like rsync, because I can always have a look at the backup contents, without falling asleep while mc tries to open a >100MB archive.

Then I found rdiff-backup, which can be found in AUR (+a dependency, also in AUR), which does basically what rsync does + stores reversed increments (something like decrements - to my understanding, haven't tested yet) as diffs and compresses these.

To get an older version, the reversed increments are applied to the current version - that's what I've understood. This way I can always have a rsync-like backup + older versions (which don't take much space, since they're diffs & compressed). You can ask for a file at a given date/time and rdiff-backup does the job of applying increments to the current version to get the old version.

Besides, rdiff-backup has the possibility to erase the history (increments) older than how much time you want (something I couldn't find in hdup and I had to do manually, making sure I don't break increments).

I found this to be perfect for my needs since my concern is not actually the old versions, but the current version and a fast access to it. Besides, cost/MB is low and I don't think it is worth compressing everything.

Check this page to see how easy is to work with it.

P.S. I've written a wrapper (bash script) to handle some custom (a bit complex) include/exclude lists. For dir basic backup, a one liner is enough - no extra files.

Offline

#12 2006-02-28 12:46:40

Moo-Crumpus
Member
From: Hessen / Germany
Registered: 2003-12-01
Posts: 1,489

Re: Simplest backup

drakosha wrote:

I'd take a look at sbackup. Really nice and simple http://sbackup.sourceforge.net/HomePage

Backup with gui. Hm, does it really run in archlinux?


Frumpus addict
[mu'.krum.pus], [frum.pus]

Offline

#13 2006-02-28 14:36:40

drakosha
Member
Registered: 2006-01-03
Posts: 253
Website

Re: Simplest backup

Moo-Crumpus wrote:
drakosha wrote:

I'd take a look at sbackup. Really nice and simple http://sbackup.sourceforge.net/HomePage

Backup with gui. Hm, does it really run in archlinux?

It has command line interface also, gui is for config. It does work... and present in aur:
http://aur.archlinux.org/packages.php?d … s=0&SeB=nd

Offline

#14 2006-03-06 11:25:09

scrawler
Member
Registered: 2005-06-07
Posts: 318

Re: Simplest backup

I use back2cd.tcsh, which makes an iso of selected directories.  Every file is compressed.

The script was featured in Sysadmin magazine several years ago, and can be found in this zip:

ftp://ftp.mfi.com/pub/sysadmin/2002/april2002.zip

Offline

#15 2007-04-05 11:38:43

mehldutt
Member
From: Germany
Registered: 2006-01-08
Posts: 128

Re: Simplest backup

This is seems to be the simplest backup:

http://linux.softpedia.com/get/Desktop- … 6440.shtml

Offline

Board footer

Powered by FluxBB