SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
unattended rdiff-backup documentation update
Author Message
Post unattended rdiff-backup documentation update 
for the past month or two i've been doing rdiff-backups using a non-root
account -- which relies on rdiff-backup's metadata support to handle
restores with correct privileges. this has been working out pretty well,
and it's a more paranoid/secure configuration... so i've updated my
documentation to explain how this is done.

also included is a patch for ssh cipher none, a note on localhost non-root
backups using sudo, and an example using LVM1 snapshots to produce a
stable disk image for rdiff-backup.

http://arctic.org/~dean/rdiff-backup/unattended.html

ben -- below are my current differences vs. 0.13.4 ... it'd be cool to see
at least the bugfixes in a 0.13.5 :)

laters
-dean

- fix calculate-average command line option
- reduce verbosity of several messages regarding filesystem capabilities so
as to clean up cron'd output
- "--restrict-read-only /" should allow all subpaths ... but it
is denying everything other than /.

--- rdiff-backup-0.13.4.orig/rdiff_backup/Main.py
+++ rdiff-backup-0.13.4/rdiff_backup/Main.py
< at > < at > -179,6 +179,7 < at > < at >
else:
commandline_error("Switches missing or wrong number of arguments")
elif action == 'test-server': pass # test-server takes any number of args
+ elif action == 'calculate-average': pass # calculate-average takes any number of args
elif l > 2 or action not in arg_action_dict[l]:
commandline_error("Wrong number of arguments given.")

< at > < at > -384,10 +385,10 < at > < at >
rpout.conn.Globals.set_local(conn_attr, 1)

src_fsa = rpin.conn.fs_abilities.get_fsabilities_readonly('source', rpin)
- Log(str(src_fsa), 3)
+ Log(str(src_fsa), 4)
dest_fsa = rpout.conn.fs_abilities.get_fsabilities_readwrite(
'destination', Globals.rbdir, 1, Globals.chars_to_quote)
- Log(str(dest_fsa), 3)
+ Log(str(dest_fsa), 4)

update_triple(src_fsa.eas, dest_fsa.eas,
('eas_active', 'eas_write', 'eas_conn'))
< at > < at > -490,10 +491,10 < at > < at >

target_fsa = target.conn.fs_abilities.get_fsabilities_readwrite(
'destination', target, 0)
- Log(str(target_fsa), 3)
+ Log(str(target_fsa), 4)
mirror_fsa = Globals.rbdir.conn.fs_abilities.get_fsabilities_restoresource(
Globals.rbdir)
- Log(str(mirror_fsa), 3)
+ Log(str(mirror_fsa), 4)

update_triple(mirror_fsa.eas, target_fsa.eas,
('eas_active', 'eas_write', 'eas_conn'))
< at > < at > -675,7 +676,7 < at > < at >
rbdir.conn.Globals.set_local(conn_attr, 1)

fsa = rbdir.conn.fs_abilities.get_fsabilities_readwrite('archive', rbdir)
- Log(str(fsa), 3)
+ Log(str(fsa), 4)

update_triple(fsa.eas, ('eas_active', 'eas_write', 'eas_conn'))
update_triple(fsa.acls, ('acls_active', 'acls_write', 'acls_conn'))
--- rdiff-backup-0.13.4.orig/rdiff_backup/Security.py
+++ rdiff-backup-0.13.4/rdiff_backup/Security.py
< at > < at > -195,6 +195,7 < at > < at >
"""Require rpath not to step outside retricted directory"""
if Globals.restrict_path and rpath.conn is Globals.local_connection:
normalized, restrict = rpath.normalize().path, Globals.restrict_path
+ if restrict == "/": return
components = normalized.split("/")
# 3 cases for restricted dir /usr/foo: /var, /usr/foobar, /usr/foo/..
if (not normalized.startswith(restrict) or

Post unattended rdiff-backup documentation update 
On Sun, 5 Dec 2004 21:03:22 -0800 (PST)
dean gaudet <dean-list-rdiff-backup < at > arctic.org> wrote:

also included is a patch for ssh cipher none, a note on localhost
non-root backups using sudo, and an example using LVM1 snapshots to
produce a stable disk image for rdiff-backup.

http://arctic.org/~dean/rdiff-backup/unattended.html

Dean, the version at that location doesn't include the extra things you
mention, and the CVS date is "2004/07/30" - has the copy on the website
been updated?

Thanks,
Keith

Post unattended rdiff-backup documentation update 
On Mon, 6 Dec 2004, Keith Edmunds wrote:

On Sun, 5 Dec 2004 21:03:22 -0800 (PST)
dean gaudet <dean-list-rdiff-backup < at > arctic.org> wrote:

also included is a patch for ssh cipher none, a note on localhost
non-root backups using sudo, and an example using LVM1 snapshots to
produce a stable disk image for rdiff-backup.

http://arctic.org/~dean/rdiff-backup/unattended.html

Dean, the version at that location doesn't include the extra things you
mention, and the CVS date is "2004/07/30" - has the copy on the website
been updated?

hmm... i see $Id: unattended.html,v 1.10 2004/12/06 04:54:01 dean Exp $
... which is the right rev... perhaps you've got a proxy or something
which is caching it?

-dean

Post unattended rdiff-backup documentation update 
On Mon, 6 Dec 2004 10:51:31 -0800 (PST)
dean gaudet <dean-list-rdiff-backup < at > arctic.org> wrote:

hmm... i see $Id: unattended.html,v 1.10 2004/12/06 04:54:01 dean Exp $
... which is the right rev... perhaps you've got a proxy or something
which is caching it?

Seems OK now. I did refresh it, but maybe it was caching somewhere. Thanks
for the document, anyway!

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB