SearchFAQMemberlist Log in
Reply to topic Page 1 of 1
windows rdiff-backup --test-server & --restrict
Author Message
Post windows rdiff-backup --test-server & --restrict 
Hi Guys,

I'm trying to test the --test-server switch with the Windows version
(1.2.Cool.

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 < at > 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 < at > myhostname::backup/

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

Post windows rdiff-backup --test-server & --restrict 
If someone have the same problem, is not related to Windows itself, it's
a bug in 1.2.8 version. I didn't see the problem on debian/ubuntu
because debian/ubuntu patch rdiff-backup to fix this bug.

https://bugs.launchpad.net/ubuntu/+source/rdiff-backup/+bug/349072

I rebuild rdiff-backup for windows with this patch and works now.

The bug is fixed in CVS apparently.

Fixed in CVS. Will be included in next rdiff-backup releases, 1.2.9
and 1.3.4.


Regards,
--
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

On 08/01/2012 11:05 AM, Davy Stoffel wrote:
Hi Guys,

I'm trying to test the --test-server switch with the Windows version
(1.2.Cool.

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 < at > 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 < at > myhostname::backup/

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

Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
  


Magic SEO URL for phpBB