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:\/ machine1@myhostname::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 machine1@myhostname::backup/ Testing server started by: "C:\cbackup_test\plink.exe" -2 -batch -P 22 -i "C:\cbackup_test\private_key.ppk" machi...@obkp1.secure-pme.com 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 mailing list at rdiff-backup-users@nongnu.org https://lists.nongnu.org/mailman/listinfo/rdiff-backup-users Wiki URL: http://rdiff-backup.solutionsfirst.com.au/index.php/RdiffBackupWiki