[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[rdiff-backup-users] Trying to backup and restore root-partition...
From: |
Oliver Kaltenecker |
Subject: |
[rdiff-backup-users] Trying to backup and restore root-partition... |
Date: |
Wed, 05 Nov 2003 08:07:06 +0100 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; de-AT; rv:1.4) Gecko/20030624 |
Hello,
I'm new to rdiff-backup and tried to find an answer for the following
problem in the archives but didn't find an answer yet:
I'd like to backup a linux machine (client) with two partitions (e.g. /
(root) and /srv) to the backup-server (server) and restore the two
partitions completely in case of a failure.
For backup I invoke the following commands on the backup-server:
for /srv: rdiff-backup --force \
--print-statistics \
--exclude-device-files \
--exclude-other-filesystems \
client::/srv \
/mirror/client/srv
for /: rdiff-backup --force \
--print-statistics \
--exclude-device-files \
--exclude-other-filesystems \
--exclude /dev \
--exclude /srv \
client::/ \
/mirror/client/wurzel
For restore I do the following:
for /srv: rdiff-backup --force \
--print-statistics \
--exclude-device-files \
--restore-as-of now \
/mirror/client/srv \
client::/srv
for /: rdiff-backup --force \
--print-statistics \
--exclude-device-files \
--exclude-other-filesystems \
--restore-as-of now \
/mirror/client/wurzel \
client::/
The restore of the srv partition works well but the restore of the root
partition throws the following error messages:
Traceback (most recent call last):
File "/usr/bin/rdiff-backup", line 24, in ?
rdiff_backup.Main.Main(sys.argv[1:])
File "/usr/lib/python2.2/site-packages/rdiff_backup/Main.py", line
250, in Main
take_action(rps)
File "/usr/lib/python2.2/site-packages/rdiff_backup/Main.py", line
224, in take_action
elif action == "restore-as-of": RestoreAsOf(rps[0], rps[1])
File "/usr/lib/python2.2/site-packages/rdiff_backup/Main.py", line
395, in RestoreAsOf
restore_common(rpin, target, time)
File "/usr/lib/python2.2/site-packages/rdiff_backup/Main.py", line
407, in restore_common
restore.Restore(mirror, inc_rpath, target, time)
File "/usr/lib/python2.2/site-packages/rdiff_backup/restore.py", line
50, in Restore
TargetS.patch(target, diff_iter)
File "/usr/lib/python2.2/site-packages/rdiff_backup/connection.py",
line 440, in __call__
return apply(self.connection.reval, (self.name,) + args)
File "/usr/lib/python2.2/site-packages/rdiff_backup/connection.py",
line 362, in reval
if isinstance(result, Exception): raise result
KeyError: devloc
Traceback (most recent call last):
File "/usr/bin/rdiff-backup", line 24, in ?
rdiff_backup.Main.Main(sys.argv[1:])
File "/usr/lib/python2.2/site-packages/rdiff_backup/Main.py", line
250, in Main
take_action(rps)
File "/usr/lib/python2.2/site-packages/rdiff_backup/Main.py", line
220, in take_action
connection.PipeConnection(sys.stdin, sys.stdout).Server()
File "/usr/lib/python2.2/site-packages/rdiff_backup/connection.py",
line 347, in Server
self.get_response(-1)
File "/usr/lib/python2.2/site-packages/rdiff_backup/connection.py",
line 309, in get_response
try: req_num, object = self._get()
File "/usr/lib/python2.2/site-packages/rdiff_backup/connection.py",
line 225, in _get
raise ConnectionReadError("Truncated header string (problem "
rdiff_backup.connection.ConnectionReadError: Truncated header string
(problem probably originated remotely)
I tried various combinations of --include ... and --exclude ... but
cannot restore the root partition.
Am I missing something or am I completely wrong in trying to restore the
root partition?
Any help would be greatly appreciated.
Oliver.
- [rdiff-backup-users] Trying to backup and restore root-partition...,
Oliver Kaltenecker <=
- Re: [rdiff-backup-users] Trying to backup and restore root-partition..., Ben Escoto, 2003/11/06
- Re: [rdiff-backup-users] Trying to backup and restore root-partition..., Oliver Kaltenecker, 2003/11/06
- Re: [rdiff-backup-users] Trying to backup and restore root-partition..., Ben Escoto, 2003/11/06
- Re: [rdiff-backup-users] Trying to backup and restore root-partition..., Oliver Kaltenecker, 2003/11/10
- Re: [rdiff-backup-users] Trying to backup and restore root-partition..., Ben Escoto, 2003/11/10
- Re: [rdiff-backup-users] Trying to backup and restore root-partition..., Oliver Kaltenecker, 2003/11/11
- Re: [rdiff-backup-users] Trying to backup and restore root-partition..., Ben Escoto, 2003/11/11
- Re: [rdiff-backup-users] Trying to backup and restore root-partition..., Ben Escoto, 2003/11/23