[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[rdiff-backup-users] windows rdiff-backup --test-server & --restrict
From: |
Davy Stoffel |
Subject: |
[rdiff-backup-users] windows rdiff-backup --test-server & --restrict |
Date: |
Wed, 01 Aug 2012 11:05:03 +0200 |
User-agent: |
Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.18) Gecko/20110701 Icedove/3.1.11 |
Hi Guys,
I'm trying to test the --test-server switch with the Windows version
(1.2.8).
On the server side, i defined (trough authorized keys) "--restrict backup/".
On the windows, if i try to backup something :
rdiff-backup.exe --remote-schema """C:\cbackup_test\plink.exe"" -2
-batch -P 22 -i ""C:\cbackup_test\private_key.ppk"" %s rdiff-backup
--server" --include "C:\\/test" --exclude "C:\\/**" C:\/
address@hidden::backup/
It's working correctly.
If i try the --test-server :
rdiff-backup.exe --remote-schema """C:\cbackup_test\plink.exe"" -2
-batch -P 22 -i ""C:\cbackup_test\private_key.ppk"" %s rdiff-backup
--server" --test-server address@hidden::backup/
Testing server started by: "C:\cbackup_test\plink.exe" -2 -batch -P 22
-i "C:\cbackup_test\private_key.ppk" address@hidden
rdiff-backup --server
Server tests failed
Exception '
Warning Security Violation!
Request to handle path .
which doesn't appear to be within restrict path backup.
' raised of class '<class 'rdiff_backup.Security.Violation'>':
File "rdiff_backup\Main.pyc", line 304, in error_check_Main
File "rdiff_backup\Main.pyc", line 324, in Main
File "rdiff_backup\Main.pyc", line 291, in take_action
File "rdiff_backup\SetConnections.pyc", line 248, in TestConnections
File "rdiff_backup\SetConnections.pyc", line 256, in test_connection
File "rdiff_backup\connection.pyc", line 450, in __call__
File "rdiff_backup\connection.pyc", line 370, in reval
Traceback (most recent call last):
File "rdiff-backup", line 30, in <module>
File "rdiff_backup\Main.pyc", line 304, in error_check_Main
File "rdiff_backup\Main.pyc", line 324, in Main
File "rdiff_backup\Main.pyc", line 291, in take_action
File "rdiff_backup\SetConnections.pyc", line 248, in TestConnections
File "rdiff_backup\SetConnections.pyc", line 256, in test_connection
File "rdiff_backup\connection.pyc", line 450, in __call__
File "rdiff_backup\connection.pyc", line 370, in reval
rdiff_backup.Security.Violation:
Warning Security Violation!
Request to handle path .
which doesn't appear to be within restrict path backup.
If i remove the --restrict on the server side, the --test-server is
running fine.
Is this a bug with the Windows version when --restrict is enabled or i
miss something in my test ?
Thank you,
--
Davy STOFFEL
GPG Key ID/Fingerprint: 66A51FF7
Conostix S.A.
70, rue de Tétange
3672 Kayl, Luxembourg
Tel : +352 26 10 30 61
Fax : +352 26 10 30 62
- [rdiff-backup-users] windows rdiff-backup --test-server & --restrict,
Davy Stoffel <=