Re: [SLUG] rdiff-backup

2009-06-05 Thread Jeremy Visser
On Thu, 2009-06-04 at 14:29 +0800, jam wrote: 
 rsync -xa -e ssh --exclude=.gvfs [...] tigger:/home/ [...]
 rsync -xa -e ssh --exclude=.gvfs [...] tigger:/root/ [...]

.gvfs is mounted as a FUSE filesystem, so that if you include
--one-file-system (or -x), you won't need to exclude .gvfs explicitly,
and you get the added bonus of not backing up any other random
mountpoint that happens to manifest itself within your filesystem.


signature.asc
Description: This is a digitally signed message part
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

[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] 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


[SLUG] rdiff-backup - does it work as advertised?

2005-10-18 Thread David
I've been advised to use rdiff-backup for backing up (!) and it looks very 
nice.

Has anyone any experience with this tool? If so, how do you test it's 
integrity and what if any problems did you encounter?

I've spot checked the mirrors that it creates and they look perfect 
(correct byte counts, user/groups look good, spot checking files look good) 
but I don't want to put my eggs in this basket and find out the hard way 
that the basket has holes.

Also, I have no idea how to test the restore functions without actually 
restoring, which I only want to do in the case of a crisis. Does anyone 
have suggestions about this?

-- 
David McQuire

-- 
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?

2005-03-16 Thread Angus Lees
At Mon, 14 Mar 2005 11:44:26 +1100, Lyle Chapman wrote:
 Does anyone know of a gui for rdiff or something similar. Any
 suggestions are appreciated

'ediff' (in emacs) does side-by-side (or otherwise), coloured diffs -
with interactive merging, etc.  Does 3-way, from a patch, etc, etc.

Its worth using, even if you use emacs for nothing else.
(emacs followed by M-x ediff RET followed by ? if you get lost)

-- 
 - Gus

-- 
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?

2005-03-16 Thread Rob Sharp
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

...and obviously theres vimdiff for those who prefer vi/m over emacs :-)

http://www.vim.org/htmldoc/diff.html

Rob.


Angus Lees wrote:
 At Mon, 14 Mar 2005 11:44:26 +1100, Lyle Chapman wrote:
 
Does anyone know of a gui for rdiff or something similar. Any
suggestions are appreciated
 
 
 'ediff' (in emacs) does side-by-side (or otherwise), coloured diffs -
 with interactive merging, etc.  Does 3-way, from a patch, etc, etc.
 
 Its worth using, even if you use emacs for nothing else.
 (emacs followed by M-x ediff RET followed by ? if you get lost)
 
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.2.4 (MingW32)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFCOKxAF+NqpIf7Yt8RAozoAJ9UBM8l9N1zksjl+5UC7HkxLK6z/wCeI7h6
UrRaN0HwJsxJYoFabnOWVAk=
=lQnI
-END PGP SIGNATURE-
-- 
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?

2005-03-14 Thread David Gillies
Michael Lake wrote:
$ sudo apt-get install meld The following NEW packages will be installed:
 desktop-file-utils gconf2 gnome-keyring gnome-mime-data libbonobo2-0 
libbonobo2-common
 libbonoboui2-0 libbonoboui2-common libcroco3 libcupsys2-gnutls10 
libeel2-2 libeel2-data
 libfam0c102 libgail-common libgail17 libgconf2-4 libgnome-desktop-2 
libgnome-keyring0
 libgnome2-0 libgnome2-common libgnomecanvas2-0 libgnomecanvas2-common 
libgnomecups1.0-1
 libgnomeprint2.2-0 libgnomeprint2.2-data libgnomeprintui2.2-0 
libgnomeprintui2.2-common
 libgnomeui-0 libgnomeui-common libgnomevfs2-0 libgnomevfs2-common 
libgsf-1 libgtkhtml2-0
 libkrb53 libnautilus2-2 liborbit2 libpanel-applet2-0 librsvg2-2 
librsvg2-common libsmbclient
 libstartup-notification0 meld python-glade2 python-gnome2 python-gtk2 
python2.3-glade2
 python2.3-gnome2 python2.3-gtk2 python2.3-numeric python2.3-pyorbit 
shared-mime-info
0 upgraded, 51 newly installed, 0 to remove and 46 not upgraded.
Need to get 12.8MB of archives.
After unpacking 52.8MB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.

Just for a bloody diff utility! Nah, no thanks Jeff :-)
I'm guessing you're a KDE person?
sudo apt-get install meld
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  meld
0 upgraded, 1 newly installed, 0 to remove and 0 not upgraded.
Need to get 159kB of archives.
After unpacking 1036kB of additional disk space will be used.
Get:1 http://archive.ubuntu.com warty/universe meld 0.9.3-1 [159kB]
Fetched 159kB in 21s (7417B/s)
Preconfiguring packages ...
Selecting previously deselected package meld.
(Reading database ... 119955 files and directories currently installed.)
Unpacking meld (from .../archives/meld_0.9.3-1_all.deb) ...
Setting up meld (0.9.3-1) ...
--
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?

2005-03-14 Thread Michael Lake
David Gillies wrote:
 I'm guessing you're a KDE person?
Nope. I just run enlightenment WM and no KDE or Gnome :-)
Michael Lake wrote:
$ sudo apt-get install meld The following NEW packages will be installed:
 desktop-file-utils gconf2 gnome-keyring gnome-mime-data libbonobo2-0 
libbonobo2-common
 libbonoboui2-0 libbonoboui2-common libcroco3 libcupsys2-gnutls10 
libeel2-2 libeel2-data
 libfam0c102 libgail-common libgail17 libgconf2-4 libgnome-desktop-2 
libgnome-keyring0
 libgnome2-0 libgnome2-common libgnomecanvas2-0 libgnomecanvas2-common 
libgnomecups1.0-1
 libgnomeprint2.2-0 libgnomeprint2.2-data libgnomeprintui2.2-0 
libgnomeprintui2.2-common
 libgnomeui-0 libgnomeui-common libgnomevfs2-0 libgnomevfs2-common 
libgsf-1 libgtkhtml2-0
 libkrb53 libnautilus2-2 liborbit2 libpanel-applet2-0 librsvg2-2 
librsvg2-common libsmbclient
 libstartup-notification0 meld python-glade2 python-gnome2 python-gtk2 
python2.3-glade2
 python2.3-gnome2 python2.3-gtk2 python2.3-numeric python2.3-pyorbit 
shared-mime-info
0 upgraded, 51 newly installed, 0 to remove and 46 not upgraded.
Need to get 12.8MB of archives.
After unpacking 52.8MB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.

Just for a bloody diff utility! Nah, no thanks Jeff :-)

--
Michael Lake
Chemistry, Materials  Forensic Science, UTS
Ph: 9514 1725 Fx: 9514 1460
[pls ignore idiot lawyer's msg below]

--
UTS CRICOS Provider Code:  00099F
DISCLAIMER: This email message and any accompanying attachments may contain
confidential information.  If you are not the intended recipient, do not
read, use, disseminate, distribute or copy this message or attachments.  If
you have received this message in error, please notify the sender immediately
and delete this message. Any views expressed in this message are those of the
individual sender, except where the sender expressly, and with authority,
states them to be the views the University of Technology Sydney. Before
opening any attachments, please check them for viruses and defects.
--
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html


[SLUG] rdiff?

2005-03-13 Thread Lyle Chapman
Does anyone know of a gui for rdiff or something similar. Any 
suggestions are appreciated

Lyle Chapman
Prepress Supervisor
Torch Publishing Company
47 Allingham Street, Condell Park, NSW, Australia
Ph: 61 02 9795 
Fax: 61 02 9795 0096
email: [EMAIL PROTECTED]
--
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?

2005-03-13 Thread Luke Skywalker
Take a look at
http://www.linuxsoft.cz/en/sw_detail.php?id_item=9130
it may be what you want.
I havent tried it myself
Luke
Lyle Chapman wrote:
Does anyone know of a gui for rdiff or something similar. Any 
suggestions are appreciated

Lyle Chapman
Prepress Supervisor
Torch Publishing Company
47 Allingham Street, Condell Park, NSW, Australia
Ph: 61 02 9795 
Fax: 61 02 9795 0096
email: [EMAIL PROTECTED]
--
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?

2005-03-13 Thread Michael Lake
Lyle Chapman wrote:
Does anyone know of a gui for rdiff or something similar. Any 
suggestions are appreciated
I use TkDiff which is a Tck/Tk interface diff.
Its pretty good as it shows the files sid-by-side and the non-matching 
areas highlighted graphically.
http://sourceforge.net/projects/tkdiff/

In debian its just called tkdiff
Mike
--
Michael Lake
Chemistry, Materials  Forensic Science, UTS
Ph: 9514 1725 Fx: 9514 1460
[pls ignore idiot lawyer's msg below]

--
UTS CRICOS Provider Code:  00099F
DISCLAIMER: This email message and any accompanying attachments may contain
confidential information.  If you are not the intended recipient, do not
read, use, disseminate, distribute or copy this message or attachments.  If
you have received this message in error, please notify the sender immediately
and delete this message. Any views expressed in this message are those of the
individual sender, except where the sender expressly, and with authority,
states them to be the views the University of Technology Sydney. Before
opening any attachments, please check them for viruses and defects.
--
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?

2005-03-13 Thread Graham Smith
On Mon, 14 Mar 2005 12:37, Michael Lake wrote:
 Lyle Chapman wrote:
  Does anyone know of a gui for rdiff or something similar. Any
  suggestions are appreciated

 I use TkDiff which is a Tck/Tk interface diff.
 Its pretty good as it shows the files sid-by-side and the non-matching
 areas highlighted graphically.
 http://sourceforge.net/projects/tkdiff/

 In debian its just called tkdiff


KDiff3 is a program that compares two or three text input files or 
directories, shows the differences line by line and character by character, 
provides an automatic merge facility and an integrated editor for comfortable 
solving of merge conflicts, and has an intuitive graphical user interface.
http://freshmeat.net/projects/kdiff3/

Also have a look through the results of this search on Freshmeat
http://freshmeat.net/search/?q=diffsection=projectsGo.x=0Go.y=0
-- 
Regards,

Graham Smith
-
-- 
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?

2005-03-13 Thread mlh
On Mon, Mar 14, 2005 at 11:44:26AM +1100, Lyle Chapman wrote:
 Does anyone know of a gui for rdiff or something similar. Any 
 suggestions are appreciated

You might try unison as well.

http://www.cis.upenn.edu/~bcpierce/unison/


Matt
-- 
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?

2005-03-13 Thread Michael Lake
Hiya all, must stir here :-)
Jeff wrote:
So the side-by-side diff tools are wildly different to rdiff. But while
we're on the topic, here's meld, which is a *very* sexy take on the genre:
http://meld.sourceforge.net/
Erik de Castro Lopo wrote:
  http://meld.sourceforge.net/
Yep, but even after all this time, its still not as good as
mgdiff, especially the Debian version which has half a dozen
of my patches.
apt-get install mgdiff
Well I should have a look at these, always willing to see or try new 
things
$ sudo apt-get install mgdiff
The following extra packages will be installed:
 lesstif1
The following NEW packages will be installed:
 lesstif1 mgdiff
Need to get 689kB of archives.
Do you want to continue? [Y/n] y
Great done. 

$ sudo apt-get install meld 
The following NEW packages will be installed:
 desktop-file-utils gconf2 gnome-keyring gnome-mime-data libbonobo2-0 libbonobo2-common
 libbonoboui2-0 libbonoboui2-common libcroco3 libcupsys2-gnutls10 libeel2-2 libeel2-data
 libfam0c102 libgail-common libgail17 libgconf2-4 libgnome-desktop-2 libgnome-keyring0
 libgnome2-0 libgnome2-common libgnomecanvas2-0 libgnomecanvas2-common libgnomecups1.0-1
 libgnomeprint2.2-0 libgnomeprint2.2-data libgnomeprintui2.2-0 libgnomeprintui2.2-common
 libgnomeui-0 libgnomeui-common libgnomevfs2-0 libgnomevfs2-common libgsf-1 libgtkhtml2-0
 libkrb53 libnautilus2-2 liborbit2 libpanel-applet2-0 librsvg2-2 librsvg2-common libsmbclient
 libstartup-notification0 meld python-glade2 python-gnome2 python-gtk2 python2.3-glade2
 python2.3-gnome2 python2.3-gtk2 python2.3-numeric python2.3-pyorbit shared-mime-info
0 upgraded, 51 newly installed, 0 to remove and 46 not upgraded.
Need to get 12.8MB of archives.
After unpacking 52.8MB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.

Just for a bloody diff utility! Nah, no thanks Jeff :-)
Mike
--
Mike Lake
Caver, Linux enthusiast and interested in anything technical.
--
UTS CRICOS Provider Code:  00099F
DISCLAIMER: This email message and any accompanying attachments may contain
confidential information.  If you are not the intended recipient, do not
read, use, disseminate, distribute or copy this message or attachments.  If
you have received this message in error, please notify the sender immediately
and delete this message. Any views expressed in this message are those of the
individual sender, except where the sender expressly, and with authority,
states them to be the views the University of Technology Sydney. Before
opening any attachments, please check them for viruses and defects.
--
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?

2005-03-13 Thread Michael Lake
Michael Lake wrote:
$ sudo apt-get install meld The following NEW packages will be installed:
.
After unpacking 52.8MB of additional disk space will be used.
Do you want to continue? [Y/n] n
Abort.
Just for a bloody diff utility! Nah, no thanks Jeff :-)
Okies I see it does do CVS stuff and the kitchen sink as well as diff :-)
--
Michael Lake
Chemistry, Materials  Forensic Science, UTS
Ph: 9514 1725 Fx: 9514 1460
[pls ignore idiot lawyer's msg below]

--
UTS CRICOS Provider Code:  00099F
DISCLAIMER: This email message and any accompanying attachments may contain
confidential information.  If you are not the intended recipient, do not
read, use, disseminate, distribute or copy this message or attachments.  If
you have received this message in error, please notify the sender immediately
and delete this message. Any views expressed in this message are those of the
individual sender, except where the sender expressly, and with authority,
states them to be the views the University of Technology Sydney. Before
opening any attachments, please check them for viruses and defects.
--
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?

2005-03-13 Thread Erik de Castro Lopo
On Mon, 14 Mar 2005 18:23:48 +1100
Michael Lake [EMAIL PROTECTED] wrote:

 Michael Lake wrote:
  $ sudo apt-get install meld The following NEW packages will be installed:
 .
  After unpacking 52.8MB of additional disk space will be used.
  Do you want to continue? [Y/n] n
  Abort.
  
  Just for a bloody diff utility! Nah, no thanks Jeff :-)
 
 Okies I see it does do CVS stuff and the kitchen sink as well as diff :-)

So does mgdiff. It ships with cvsmgdiff and rmgdiff wrapper scripts
which does CVS diffs and recursive directory diffs.

Finally, if you want a feature enhancement you can always ask me :-).

Erik
-- 
+---+
  Erik de Castro Lopo  [EMAIL PROTECTED] (Yes it's valid)
+---+
This is like creating laws against blasphemy and then complaining that
unbelievers can't come up with any logical argument against the existence
of God  -- www.infoanarchy.org on the Digital Millenium Copyright Act
-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html