[SLUG] rdiff-backup

2009-06-03 Thread jam
Wearing my "I wish somebody had said this, useful, sharing" cap and not my 
"dragons and swords" one I declare that, except for those interested in pages-
n-pages of python stack traces or very simple systems, rdiff-backup is 
unmentionably awefull.

I backup daily 4 systems with a couple of 100s G each.

rdiff-backup does not play with other versions, the client and server machines 
are different, and rdiff-backup needs to be on both machines. Some work, some 
dont.
All versions complained about obsolete modules.
As you may expect, winter power fails during the backup happened. This 
resulted in chaos that took significant manual input to fix.

http://www.sanitarium.net/golug/rsync_backups.html
shows rsync is easy and justworks(tm)

Here is a snip of my rsync backup script:
It uses 1 backup+30 tinybits of space for the backup
A tiny bit of logic to avoid regetting everything after a failure would help
ie don't cycle and copy unless all suceeded

#! /bin/bash
DAY=`date +%a`

 Cycle all the daily backups
rm -fr /backup/tigger.etc.30
rm -fr /backup/tigger.home.30
rm -fr /backup/tigger.mail.30
rm -fr /backup/tigger.root.30
...
for (( i=29 ; i ; i-- ))
do
  let j=$i+1
  if [ -d /backup/tigger.etc.$i ] && [-d /backup/tigger.etc.1 ]; then
mv /backup/tigger.etc.$i /backup/tigger.etc.$j
  fi
  if [ -d /backup/tigger.home.$i ] && [-d /backup/tigger.home.1 ]; then
mv /backup/tigger.home.$i /backup/tigger.home.$j
  fi
  if [ -d /backup/tigger.mail.$i ] && [-d /backup/tigger.mail.1 ]; then
mv /backup/tigger.mail.$i /backup/tigger.mail.$j
  fi
  if [ -d /backup/tigger.root.$i ] && [-d /backup/tigger.root.1 ]; then
mv /backup/tigger.root.$i /backup/tigger.root.$j
  fi
...
done

 tigger
echo  tigger >>/tmp/mail
date >> /tmp/mail
rsync -xa -e ssh --exclude=.gvfs --delete --link-dest=/backup/tigger.home.2 
tigger:/home/   /backup/tigger.home.1
rsync -xa -e ssh --exclude=.gvfs --delete --link-dest=/backup/tigger.root.2 
tigger:/root/   /backup/tigger.root.1
rsync -xa -e ssh --delete --link-dest=/backup/tigger.etc.2  
tigger:/etc//backup/tigger.etc.1
rsync -xa -e ssh --delete --link-dest=/backup/tigger.mail.2 
tigger:/var/spool/mail/ /backup/tigger.mail.1
ssh tigger df -h | grep '^/dev' >> /tmp/mail
...

James

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] Site to Site VPN

2009-06-03 Thread Peter Rundle

Hi Daniel,

Just a note to let you know that I've managed to get the VPN working. Thanks for the link that got me sorted, to any others 
following this thread, if you want to set up IPSEC, read this:


http://www.ipsec-howto.org/x304.html

The Nat traversal worked first time. So that knife that came with it, obviously someone has broken off the blade because no chest 
wounds, didn't hurt at all. :-)


I simply used setkey and racoon and that was all that was required. A couple of yips with the wrong netmask, and the dh_group but 
then it worked great.



Cheers

Pete


--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] Linux-powered things

2009-06-03 Thread Leslie Katz
I took the linked-to photo today. The thing gave me a giggle. Maybe it 
was already familiar to others.


http://www.flickr.com/photos/23623...@n03/3594383552/

--
To see papers written by me on, among other things, literary allusions in 
Australian reasons for judgment, start here: http://ssrn.com/author=1164057

To see photos taken by me of, among other things, Sydney now (as well as 
comparative photos taken by others of Sydney then), start here: 
http://www.flickr.com/photos/23623...@n03/sets/72157604225021655/
--

--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


Re: [SLUG] detach attachements from cli, how ?

2009-06-03 Thread Matthew Hannigan
mutt does nicely if you don't mind interactive curses type 'console'

v to show attachments
s to save

(from memory)



On Wed, Jun 03, 2009 at 02:35:37PM +1000, Voytek Eymont wrote:
> I can't recall how to detach email attachements from prompt...
> 
> is it metamail ? mencode ?
> don't seem to have either...
> 
> googling hasent succeeded yet
> 
> 
> -- 
> Voytek
> 
> -- 
> SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
> Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html