[SLUG] rdiff-backup

2009-06-04 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] rdiff-backup

2009-06-04 Thread Amos Shapira
2009/6/4 jam j...@tigger.ws:
 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.

We are just starting to deploy Bacula after some examination.

The matter with backups is not just to make them - but also to manage
a catalog to help you find the right file when you have to restore
things.

 #! /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

Consider looking at savelog or logrotate. I'm not sure where
savelog popped up from but it appears to be a script-friendly
interface to one-off logrotates.

Cheers,

--Amos
--
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] Linux-powered things

2009-06-04 Thread Amos Shapira
2009/6/4 Leslie Katz lesl...@ozemail.com.au

 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/

I've seen a few times some Mercedes four wheel drive (I think, it's
been a while since) with a LINUX NSW license plate in the northern
beaches.

--Amos
-- 
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] rdiff-backup

2009-06-04 Thread Lindsay Holmwood
2009/6/4 Amos Shapira amos.shap...@gmail.com:

 The matter with backups is not just to make them - but also to manage
 a catalog to help you find the right file when you have to restore
 things.


On that note, you can use the rdiffWeb[0] tool to browse your
rdiff-backup revisions and recover files.

[0] http://www.rdiffweb.org/

Lindsay

-- 
http://holmwood.id.au/~lindsay/ (me)
-- 
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] Linux-powered things

2009-06-04 Thread Jake Anderson

Amos Shapira wrote:

2009/6/4 Leslie Katz lesl...@ozemail.com.au
  

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/



I've seen a few times some Mercedes four wheel drive (I think, it's
been a while since) with a LINUX NSW license plate in the northern
beaches.

--Amos
  

Theres a GNU up the mountains on some black sporty thing.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] USB ports

2009-06-04 Thread Ken Foskey
I bought a huge backup drive and went to plug it in today and it kept
mounting and unmounting it spawning windows along the way.

Strange thing is I plugged the same drive into the rear of the computer
and it now works correctly.  Is it possible that they are two different
types of USB port?

Ta
Ken

-- 
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] USB ports

2009-06-04 Thread David Gillies

Ken Foskey wrote:

I bought a huge backup drive and went to plug it in today and it kept
mounting and unmounting it spawning windows along the way.

Strange thing is I plugged the same drive into the rear of the computer
and it now works correctly.  Is it possible that they are two different
types of USB port?
Sounds like the first port you plugged it into might not have enough 
power to run the usb hdd? I know some Apple notebooks (just off the top 
of my head) have slightly different power ratings for different usb 
ports on the same machine.

--
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] Re: aptitude removal problem - no space left on device

2009-06-04 Thread Denis Crowdy
On Wed, Jun 3, 2009 at 4:08 PM, Robert Collins
robe...@robertcollins.net wrote:
 On Wed, 2009-06-03 at 15:56 +1000, Denis Crowdy wrote:

 cp: cannot copy a directory, `/', into itself,
 `/tmp/mkinitramfs_C18636/'

 This is extremely odd - looks like a maintainer script problem.
 [backports tends to have this sort of thing btw].

 Uhm, I'd try to find the maintainer script in /var/lib/dpkg and fix it.
 Look at the kernel* package logs - you may find its fixed already and be
 able to copy the fixed one in by hand.
Spot on Rob - thanks very much.  Found a post
(https://bugs.launchpad.net/ubuntu/+source/linux-backports-modules-2.6.24/+bug/229535)
where someone had simply deleted the .list and .postrm files so tried
this, followed by aptitude purge and shazam, problem solved, happy new
user.

Thanks again!

Denis


-- 
Denis Crowdy
Department of Contemporary Music Studies, Macquarie University +61 2 9850 6787
http://www.dcms.mq.edu.au http://motekulo.blogspot.com/
http://www.melanesianmusic.org

CRICOS Provider No 2J
This message is intended for the addressee named and may contain
confidential information.  If you are not the intended recipient,
please delete it and notify the sender.  Views expressed in this
message are those of the individual sender, and are not necessarily
the views of DCMS or Macquarie University.
-- 
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] Linux-powered things

2009-06-04 Thread David Gillies

Amos Shapira wrote:

2009/6/4 Leslie Katz lesl...@ozemail.com.au
  

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/



I've seen a few times some Mercedes four wheel drive (I think, it's
been a while since) with a LINUX NSW license plate in the northern
beaches.
  

I've seen that 4WD on my way down to Bondi Beach. Wonder who owns it...
--
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] USB ports

2009-06-04 Thread Ken Foskey
On Fri, 2009-06-05 at 11:33 +1000, David Gillies wrote:

 Ken Foskey wrote:
  I bought a huge backup drive and went to plug it in today and it kept
  mounting and unmounting it spawning windows along the way.
 
  Strange thing is I plugged the same drive into the rear of the computer
  and it now works correctly.  Is it possible that they are two different
  types of USB port?
 Sounds like the first port you plugged it into might not have enough 
 power to run the usb hdd? I know some Apple notebooks (just off the top 
 of my head) have slightly different power ratings for different usb 
 ports on the same machine.


This is an external powered hard drive.  So power should not be the
problem.
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html