[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rdiff-backup-users] Restore from a read-only mounted source
From: |
Wolfgang Dautermann |
Subject: |
Re: [rdiff-backup-users] Restore from a read-only mounted source |
Date: |
Tue, 24 Jan 2006 09:32:57 +0100 |
User-agent: |
Mozilla Thunderbird 1.0.2 (X11/20050322) |
Ben Escoto wrote:
Hmm, this should work
Yes would be fine. Even in the manpage one can read "Note that you
should not write to the mirror directory except with rdiff-backup." -
and mounting the backup-space read-only would help to ensure that...
What errors are you getting?
/mnt is mounted read-only, in /mnt/home-daute is my backup:
If I want to see, which backups are available:
$ rdiff-backup -V
rdiff-backup 1.0.4
$ rdiff-backup --list-increments /mnt/home-daute
Traceback (most recent call last):
File "/usr/local/bin/rdiff-backup", line 23, in ?
rdiff_backup.Main.Main(sys.argv[1:])
File "/usr/lib/python2.3/site-packages/rdiff_backup/Main.py", line
285, in Main
take_action(rps)
File "/usr/lib/python2.3/site-packages/rdiff_backup/Main.py", line
261, in take_action
elif action == "list-increments": ListIncrements(rps[0])
File "/usr/lib/python2.3/site-packages/rdiff_backup/Main.py", line
680, in ListIncrements
rp = require_root_set(rp)
File "/usr/lib/python2.3/site-packages/rdiff_backup/Main.py", line
700, in require_root_set
single_set_fs_globals(Globals.rbdir)
File "/usr/lib/python2.3/site-packages/rdiff_backup/Main.py", line
722, in single_set_fs_globals
rbdir, 1, Globals.chars_to_quote)
File "/usr/lib/python2.3/site-packages/rdiff_backup/fs_abilities.py",
line 408, in get_fsabilities_readwrite
return FSAbilities(desc_string).init_readwrite(
File "/usr/lib/python2.3/site-packages/rdiff_backup/fs_abilities.py",
line 145, in init_readwrite
subdir.mkdir()
File "/usr/lib/python2.3/site-packages/rdiff_backup/rpath.py", line
796, in mkdir
self.conn.os.mkdir(self.path)
OSError: [Errno 30] Read-only file system:
'/mnt/home-daute/rdiff-backup-data/rdiff-backup.tmp.0'
If I want to see, which Files were available yesterday:
$ rdiff-backup --list-at-time 2006-01-22 /mnt/home-daute/public_html/
Traceback (most recent call last):
File "/usr/local/bin/rdiff-backup", line 23, in ?
rdiff_backup.Main.Main(sys.argv[1:])
File "/usr/lib/python2.3/site-packages/rdiff_backup/Main.py", line
285, in Main
take_action(rps)
File "/usr/lib/python2.3/site-packages/rdiff_backup/Main.py", line
259, in take_action
elif action == "list-at-time": ListAtTime(rps[0])
File "/usr/lib/python2.3/site-packages/rdiff_backup/Main.py", line
815, in ListAtTime
rp = require_root_set(rp)
File "/usr/lib/python2.3/site-packages/rdiff_backup/Main.py", line
700, in require_root_set
single_set_fs_globals(Globals.rbdir)
File "/usr/lib/python2.3/site-packages/rdiff_backup/Main.py", line
722, in single_set_fs_globals
rbdir, 1, Globals.chars_to_quote)
File "/usr/lib/python2.3/site-packages/rdiff_backup/fs_abilities.py",
line 408, in get_fsabilities_readwrite
return FSAbilities(desc_string).init_readwrite(
File "/usr/lib/python2.3/site-packages/rdiff_backup/fs_abilities.py",
line 145, in init_readwrite
subdir.mkdir()
File "/usr/lib/python2.3/site-packages/rdiff_backup/rpath.py", line
796, in mkdir
self.conn.os.mkdir(self.path)
OSError: [Errno 30] Read-only file system:
'/mnt/home-daute/rdiff-backup-data/rdiff-backup.tmp.0'
The logfile error was fixed so
rdiff-backup would continue without logging if it couldn't write a log.
(At least that is my recollection.)
Hmm... Right. It gives a warning, but you are correct, the file is restored:
$ rdiff-backup -r 2006-01-22 /mnt/home-daute/test.txt /tmp/test.txt
Warning - Unable to open logfile: Unable to open logfile
/mnt/home-daute/rdiff-backup-data/restore.log: [Errno 30] Read-only file
system: '/mnt/home-daute/rdiff-backup-data/restore.log'
Bye, Wolfgang
--
FH JOANNEUM / Fahrzeugtechnik
Automotive Engineering & Railway Engineering
Austria, 8010 Graz, Alte Poststrasse 149, Tel: ++43/(0)316/5453-8418
http://www.fh-joanneum.at/fzt/