Re: backup script modification help

2007-06-05 Thread Nate Duehr


On Jun 4, 2007, at 11:22 AM, Wei Chen wrote:

I recommend rdiff-backup. It does incremental backups. It is easy  
to use

and has powerful statistics displaying functions. I personally use it.

It is in the repository so easy to install. There is detailed  
document and

sample commands on its Website http://www.nongnu.org/rdiff-backup/


backupninja is a decent front-end for rdiff-backup and other  
niceties, like things that can do backups/dumps of live mysql  
databases, etc.   As its readme states, it can "configure and  
coordinate many different backup utilities".


It's very "server-esqe" in that you have an /etc/backup.d directory  
with your various backup routines and it runs them in succession and  
reports success/failure on whatever schedule you choose.


Although I've never used this piece of it, it also has a console  
helper called ninjahelper to help create the configuration files...  
they were simple enough that I've never needed to do that.


I've found it very useful.  Hope that helps.

--
Nate Duehr
[EMAIL PROTECTED]




--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: backup script modification help

2007-06-04 Thread Wei Chen

On 6/4/07, Wackojacko <[EMAIL PROTECTED]> wrote:

Haines Brown wrote:
> I use cron to do a periodic full backup to an external USB drive that
> I've named "mirror". The script used is:
>
> find / -print | egrep -v "^/media/mirror|^/proc" | cpio -pdmuv
> /media/mirror/"$1" 2>&1 | cat -vt
>
> Since installing Etch, this script has not worked well because it does
> not like to backup the /sys directory. Actually, backing up /sys
> dangerous). So I'd like to modify the script to block cpio from doing
> /sys as it avoids /proc, but not sure how. Help would be appreciated.
>
Try backup2l.  Very simple backup script that automates this for you and
makes incremental daily backups.



I recommend rdiff-backup. It does incremental backups. It is easy to use
and has powerful statistics displaying functions. I personally use it.

It is in the repository so easy to install. There is detailed document and
sample commands on its Website http://www.nongnu.org/rdiff-backup/

--
Cheers,
Wei
http://www.acplex.com/people/wchen/


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: backup script modification help

2007-06-04 Thread Haines Brown
Mike et al,

Thanks for the fix and the suggestions. I understood the script just
to the extent I could mess it up ;-( 

-- 
 
   Haines Brown, KB1GRM

 



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: backup script modification help

2007-06-04 Thread Johannes Wiedersich
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Douglas Allan Tutty wrote:
> On Mon, Jun 04, 2007 at 07:15:49AM -0400, Haines Brown wrote:
>> I use cron to do a periodic full backup to an external USB drive that
>> I've named "mirror". The script used is:
>>
>> find / -print | egrep -v "^/media/mirror|^/proc" | cpio -pdmuv
>> /media/mirror/"$1" 2>&1 | cat -vt 
>>
>> Since installing Etch, this script has not worked well because it does
>> not like to backup the /sys directory. Actually, backing up /sys
>> dangerous). So I'd like to modify the script to block cpio from doing
>> /sys as it avoids /proc, but not sure how. Help would be appreciated.
> 
> That's why I use tar.  I have an include file and an exclude file and
> changing things like this is very easy.

That's why I use rsync. I have an include file and an exclude file and
changing things like this is very easy. Besides it is faster and more
flexible than tar.

YNMV,

Johannes
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFGZBePC1NzPRl9qEURAnS0AJ0Zn38KqQq1bENJed7T2hBjxRKbngCfY9w3
l8i2cpAf1XZkhM1o3VcBWCw=
=fnka
-END PGP SIGNATURE-


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: backup script modification help

2007-06-04 Thread Michael G. Hansen
Haines Brown wrote:
> I use cron to do a periodic full backup to an external USB drive that
> I've named "mirror". The script used is:
>
> find / -print | egrep -v "^/media/mirror|^/proc" | cpio -pdmuv
> /media/mirror/"$1" 2>&1 | cat -vt

You could try "find -xdev" which prevents find from entering other
mounted filesystems. This should at least prevent find from entering the
/media/mirror-directory, though you still have to grep it out since it
prints the directory-name.

Greetings,
Mike

-- 
Michael Hansen - http://www.pfna.de/
Monheim / Germany


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: backup script modification help

2007-06-04 Thread Douglas Allan Tutty
On Mon, Jun 04, 2007 at 07:15:49AM -0400, Haines Brown wrote:
> I use cron to do a periodic full backup to an external USB drive that
> I've named "mirror". The script used is:
> 
> find / -print | egrep -v "^/media/mirror|^/proc" | cpio -pdmuv
> /media/mirror/"$1" 2>&1 | cat -vt 
> 
> Since installing Etch, this script has not worked well because it does
> not like to backup the /sys directory. Actually, backing up /sys
> dangerous). So I'd like to modify the script to block cpio from doing
> /sys as it avoids /proc, but not sure how. Help would be appreciated.

That's why I use tar.  I have an include file and an exclude file and
changing things like this is very easy.

Doug.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: backup script modification help

2007-06-04 Thread Roby
Haines Brown wrote:

> I use cron to do a periodic full backup to an external USB drive that
> I've named "mirror". The script used is:
> 
> find / -print | egrep -v "^/media/mirror|^/proc" | cpio -pdmuv
> /media/mirror/"$1" 2>&1 | cat -vt
> 
> Since installing Etch, this script has not worked well because it does
> not like to backup the /sys directory. Actually, backing up /sys
> dangerous). So I'd like to modify the script to block cpio from doing
> /sys as it avoids /proc, but not sure how. Help would be appreciated.
> 
How about:
find / -print | egrep -v "^/media/mirror|^/proc|^/sys" | cpio -pdmuv \
/media/mirror/"$1" 2>&1 | cat -vt 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]



Re: backup script modification help

2007-06-04 Thread Wackojacko

Haines Brown wrote:

I use cron to do a periodic full backup to an external USB drive that
I've named "mirror". The script used is:

find / -print | egrep -v "^/media/mirror|^/proc" | cpio -pdmuv
/media/mirror/"$1" 2>&1 | cat -vt 


Since installing Etch, this script has not worked well because it does
not like to backup the /sys directory. Actually, backing up /sys
dangerous). So I'd like to modify the script to block cpio from doing
/sys as it avoids /proc, but not sure how. Help would be appreciated.

Try backup2l.  Very simple backup script that automates this for you and 
makes incremental daily backups.


HTH

Wackojacko


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




Re: backup script modification help

2007-06-04 Thread Atis

On 04 Jun 2007 07:15:49 -0400, Haines Brown <[EMAIL PROTECTED]> wrote:

I use cron to do a periodic full backup to an external USB drive that
I've named "mirror". The script used is:

find / -print | egrep -v "^/media/mirror|^/proc" | cpio -pdmuv
/media/mirror/"$1" 2>&1 | cat -vt

Since installing Etch, this script has not worked well because it does
not like to backup the /sys directory. Actually, backing up /sys
dangerous). So I'd like to modify the script to block cpio from doing
/sys as it avoids /proc, but not sure how. Help would be appreciated.


I suppose like this

find / -print | egrep -v "^/media/mirror|^/proc|^/sys" | cpio -pdmuv
/media/mirror/"$1" 2>&1 | cat -vt

It would be good if you would understand this command a bit :)

Find locates all files and gives list of them. Egrep (or grep) does
matching on filenames (-v means inverse), and matches either of
/media/mirror, /proc or /sys at beginning of line. Then list of those
filenames is passed to cpio and it just archives them.

Regards,
Atis


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]




backup script modification help

2007-06-04 Thread Haines Brown
I use cron to do a periodic full backup to an external USB drive that
I've named "mirror". The script used is:

find / -print | egrep -v "^/media/mirror|^/proc" | cpio -pdmuv
/media/mirror/"$1" 2>&1 | cat -vt 

Since installing Etch, this script has not worked well because it does
not like to backup the /sys directory. Actually, backing up /sys
dangerous). So I'd like to modify the script to block cpio from doing
/sys as it avoids /proc, but not sure how. Help would be appreciated.

-- 
 
   Haines Brown, KB1GRM

 



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]