[rdiff-backup-users] rdiff-backup + chirp : symlinked_file problem
From:
Julien Poffet
Subject:
[rdiff-backup-users] rdiff-backup + chirp : symlinked_file problem
Date:
Tue, 2 Dec 2008 17:25:49 -0800
Hi,
I'm trying to use rdiff-backup to save some directories from a virtual machine to the host. (both guest and host run linux)
The idea is to run rdiff-backup within the virtual machine itself. I access the host filesystem by using chirp. The host run a chirp server to share a target backup directory. Then I mounted the host shared directory using chirp_fuse inside the virtual machine.
So the final situation is that the virtual machine has a remote directory mounted in /tmp which refers to the target backup directory inside the host. Now I want to backup my vm's directory to the directory in the host.
The mounted directory works well in both ways. All the permissions are set and I'm able to copy files and directories by using the cp command for instance.
When I want to launch my backup I type a simple rdiff-backup command which looks like that:
address@hidden bck]$ rdiff-backup -v5 /home/poffet/ /tmp/bck/131.243.51.142/
Using rdiff-backup version 1.2.2 Cannot change permissions on target directory. Unable to import module xattr. Extended attributes not supported on filesystem at /home/poffet Unable to import module posix1e from pylibacl package.
POSIX ACLs not supported on filesystem at /home/poffet Unable to import win32security module. Windows ACLs not supported by filesystem at /home/poffet escape_dos_devices not required by filesystem at /home/poffet
----------------------------------------------------------------- Detected abilities for source (read only) file system: Access control lists Off Extended attributes Off
Windows access control lists Off Case sensitivity On Escape DOS devices Off Mac OS X style resource forks Off Mac OS X Finder information Off
----------------------------------------------------------------- Warning: hard linking not supported by filesystem at /tmp/bck/131.243.51.142/rdiff-backup-data
Unable to import module xattr. Extended attributes not supported on filesystem at /tmp/bck/131.243.51.142/rdiff-backup-data/rdiff-backup.tmp.0
Unable to import module posix1e from pylibacl package. POSIX ACLs not supported on filesystem at /tmp/bck/131.243.51.142/rdiff-backup-data/rdiff-backup.tmp.0
Unable to import win32security module. Windows ACLs not supported by filesystem at /tmp/bck/131.243.51.142/rdiff-backup-data/rdiff-backup.tmp.0
escape_dos_devices not required by filesystem at /tmp/bck/131.243.51.142/rdiff-backup-data/rdiff-backup.tmp.0 Exception '[Errno 13] Permission denied: '/tmp/bck/131.243.51.142/rdiff-backup-data/rdiff-backup.tmp.0/symlinked_file2'' raised of class 'exceptions.OSError':
File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line 304, in error_check_Main try: Main(arglist) File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line 324, in Main
take_action(rps) File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line 280, in take_action elif action == "backup": Backup(rps[0], rps[1]) File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line 334, in Backup
rpout.conn.fs_abilities.backup_set_globals(rpin, force) File "/usr/lib/python2.4/site-packages/rdiff_backup/fs_abilities.py", line 830, in backup_set_globals dest_fsa = FSAbilities('destination').init_readwrite(Globals.rbdir)
File "/usr/lib/python2.4/site-packages/rdiff_backup/fs_abilities.py", line 165, in init_readwrite subdir.delete() File "/usr/lib/python2.4/site-packages/rdiff_backup/rpath.py", line 1054, in delete
self.conn.shutil.rmtree(self.path) File "/usr/lib/python2.4/shutil.py", line 164, in rmtree onerror(os.remove, fullname, sys.exc_info()) File "/usr/lib/python2.4/shutil.py", line 162, in rmtree
os.remove(fullname)
Traceback (most recent call last): File "/usr/bin/rdiff-backup", line 30, in ? rdiff_backup.Main.error_check_Main(sys.argv[1:]) File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line 304, in error_check_Main
try: Main(arglist) File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line 324, in Main take_action(rps) File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line 280, in take_action
elif action == "backup": Backup(rps[0], rps[1]) File "/usr/lib/python2.4/site-packages/rdiff_backup/Main.py", line 334, in Backup rpout.conn.fs_abilities.backup_set_globals(rpin, force)
File "/usr/lib/python2.4/site-packages/rdiff_backup/fs_abilities.py", line 830, in backup_set_globals dest_fsa = FSAbilities('destination').init_readwrite(Globals.rbdir) File "/usr/lib/python2.4/site-packages/rdiff_backup/fs_abilities.py", line 165, in init_readwrite
subdir.delete() File "/usr/lib/python2.4/site-packages/rdiff_backup/rpath.py", line 1054, in delete self.conn.shutil.rmtree(self.path) File "/usr/lib/python2.4/shutil.py", line 164, in rmtree
onerror(os.remove, fullname, sys.exc_info()) File "/usr/lib/python2.4/shutil.py", line 162, in rmtree os.remove(fullname) OSError: [Errno 13] Permission denied: '/tmp/bck/131.243.51.142/rdiff-backup-data/rdiff-backup.tmp.0/symlinked_file2'
However if I list the content of the target backup directory in the host I have the following result: