[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[rdiff-backup-users] how to exclude mount point on destination,
From: |
lo73fr |
Subject: |
[rdiff-backup-users] how to exclude mount point on destination, |
Date: |
Fri, 04 Jul 2008 02:52:13 -0400 |
Hi,
I try to do a rdiff-backup between to linux computer other SSH.
The directory tree is following:
source dest
/opt /opt
| |
|___ dir1 |---- Apache (empty
mount point)
| |--- Some files |
|
|___ Apache (mount point)
|--- Some files
My troubles is coming from the fact that "Apache" directory is a mount point
(both on source and destination tree) for another filesystem.
When I use the following rdiff-backup:
rdiff-backup -v 5 --print-statistics --exclude-if-present apache
--exclude-symbolic-links --force --exclude-other-filesystems --exclude
/opt/apache /opt address@hidden::/opt
rdiff-backup complains about "device or resource busy" on the destination
directory "/opt/apache".
Sending back exception [Errno 16] Device or resource busy: '/opt/apache' of
type <type 'exceptions.OSError'>:
This is true, because destination "/opt/apache" is mount, so can't delete it !
I try many combination of exclude options on rdiff-backup, but can't manage to
remove this error.
Any help would be apreciate.
Laurent
===================
Backup: must_escape_dos_devices = 0
Starting mirror /opt to /opt
Processing changed file .
Processing changed file apache
Processing changed file apache-tomcat-6.0.14
Sending back exception [Errno 16] Device or resource busy: '/opt/apache' of
type <type 'exceptions.OSError'>:
File "/usr/lib/python2.5/site-packages/rdiff_backup/connection.py", line 334,
in answer_request
result = apply(eval(request.function_string), argument_list)
File "/usr/lib/python2.5/site-packages/rdiff_backup/backup.py", line 232, in
patch
ITR(diff.index, diff)
File "/usr/lib/python2.5/site-packages/rdiff_backup/rorpiter.py", line 277,
in __call__
if self.finish_branches(index) is None:
File "/usr/lib/python2.5/site-packages/rdiff_backup/rorpiter.py", line 229,
in finish_branches
to_be_finished.end_process()
File "/usr/lib/python2.5/site-packages/rdiff_backup/backup.py", line 669, in
end_process
self.base_rp.rmdir()
File "/usr/lib/python2.5/site-packages/rdiff_backup/rpath.py", line 919, in
rmdir
self.conn.os.rmdir(self.path)
Exception '[Errno 16] Device or resource busy: '/opt/apache'' raised of class
'<type 'exceptions.OSError'>':
File "/usr/lib/python2.5/site-packages/rdiff_backup/Main.py", line 302, in
error_check_Main
try: Main(arglist)
File "/usr/lib/python2.5/site-packages/rdiff_backup/Main.py", line 322, in
Main
take_action(rps)
File "/usr/lib/python2.5/site-packages/rdiff_backup/Main.py", line 278, in
take_action
elif action == "backup": Backup(rps[0], rps[1])
File "/usr/lib/python2.5/site-packages/rdiff_backup/Main.py", line 344, in
Backup
backup.Mirror(rpin, rpout)
File "/usr/lib/python2.5/site-packages/rdiff_backup/backup.py", line 38, in
Mirror
DestS.patch(dest_rpath, source_diffiter)
File "/usr/lib/python2.5/site-packages/rdiff_backup/connection.py", line 447,
in __call__
return apply(self.connection.reval, (self.name,) + args)
File "/usr/lib/python2.5/site-packages/rdiff_backup/connection.py", line 369,
in reval
if isinstance(result, Exception): raise result
Traceback (most recent call last):
File "/usr/bin/rdiff-backup", line 23, in <module>
rdiff_backup.Main.error_check_Main(sys.argv[1:])
File "/usr/lib/python2.5/site-packages/rdiff_backup/Main.py", line 302, in
error_check_Main
try: Main(arglist)
File "/usr/lib/python2.5/site-packages/rdiff_backup/Main.py", line 322, in
Main
take_action(rps)
File "/usr/lib/python2.5/site-packages/rdiff_backup/Main.py", line 278, in
take_action
elif action == "backup": Backup(rps[0], rps[1])
File "/usr/lib/python2.5/site-packages/rdiff_backup/Main.py", line 344, in
Backup
backup.Mirror(rpin, rpout)
File "/usr/lib/python2.5/site-packages/rdiff_backup/backup.py", line 38, in
Mirror
DestS.patch(dest_rpath, source_diffiter)
File "/usr/lib/python2.5/site-packages/rdiff_backup/connection.py", line 447,
in __call__
return apply(self.connection.reval, (self.name,) + args)
File "/usr/lib/python2.5/site-packages/rdiff_backup/connection.py", line 369,
in reval
if isinstance(result, Exception): raise result
OSError: [Errno 16] Device or resource busy: '/opt/apache'
Fatal Error: Lost connection to the remote system
address@hidden backup]#
+----------------------------------------------------------------------
|This was sent by address@hidden via Backup Central.
|Forward SPAM to address@hidden
+----------------------------------------------------------------------
- [rdiff-backup-users] how to exclude mount point on destination,,
lo73fr <=