delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2020/05/05/05:54:28

X-Recipient: archive-cygwin AT delorie DOT com
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org B406E388E81A
Authentication-Results: sourceware.org;
dmarc=pass (p=none dis=none) header.from=yandex.ru
Authentication-Results: sourceware.org;
spf=pass smtp.mailfrom=anrdaemon AT yandex DOT ru
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail;
t=1588672202; bh=W7Kkr02kaIQZxJ0RgvjLxIviRZSAUKjG6hrClEFmDHI=;
h=In-Reply-To:Subject:To:Reply-To:From:Message-ID:References:Date;
b=KLSg4dF7Stnbubca0Xkf4n630W0FsUKZ88fFRGGFBX7PbQfNYJbqvS8WVh5yHMIhF
P38l/oE2UGKauSc0/SBU2HoPloBZRs76dLUCUOYReVohHNw1vAST/Jj0vnwruvzsA+
22n2IWz1TMFi7fnJscf/7+OhjqJ1DUiA/eBCF9cI=
Authentication-Results: mxback5q.mail.yandex.net; dkim=pass header.i=@yandex.ru
Date: Tue, 5 May 2020 12:37:37 +0300
From: Andrey Repin <anrdaemon AT yandex DOT ru>
X-Mailer: The Bat! (v6.8.8) Home
X-Priority: 3 (Normal)
Message-ID: <1086641428.20200505123737@yandex.ru>
To: Cygwin <qrasmfu8f4 AT snkmail DOT com>, cygwin AT cygwin DOT com
Subject: Re: Update request for rdiff-backup
In-Reply-To: <03bafa60-d782-ca7e-2df6-fb727cdacd66@snkmail.com>
References: <eaed8841-276f-302d-e2ac-f9ecbd9401ad AT acm DOT org>
<03bafa60-d782-ca7e-2df6-fb727cdacd66 AT snkmail DOT com>
MIME-Version: 1.0
X-Spam-Status: No, score=-2.5 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, KAM_THEBAT,
RCVD_IN_DNSWL_LOW, SPF_HELO_NONE, SPF_PASS,
TXREP autolearn=no autolearn_force=no version=3.4.2
X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.29
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <http://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <http://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
Reply-To: cygwin AT cygwin DOT com
Errors-To: cygwin-bounces AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces AT cygwin DOT com>
X-MIME-Autoconverted: from base64 to 8bit by delorie.com id 0459s31D029951

Greetings, Cygwin!

> BTW, I was playing around with rdiff-backup 1.2.8-6 a couple days ago,
> and while it seemed to work fine when the destination was on a local 
> drive, I couldn't figure out how to get it to work when the destination 
> is a network share If I specify the destination as 
> '//192.168.1.250/finance-backup/finance.rdiff-backup' I get:

>       Fatal Error: Unable to create directory
>     /192.168.1.250/finance-backup/finance.rdiff-backup

Note the single leading slash.
Most likely, the program performs manual "normalization" of the path, which is
not POSIX-compatible.
POSIX explicitly declare that double leading slash is a special case, and its
behavior is defined by the underlying system.
If 2.0 would exhibit the same behavior, it is worth reporting upstream.

> but "mkdir //192.168.1.250/finance-backup/finance.rdiff-backup" works fine.

Indeed.

> If I specify the destination as 
> '\\192.168.1.250\finance-backup\finance.rdiff-backup' I get:

Try doubling the backslashes.

>     Exception '' raised of class '<type 'exceptions.AssertionError'>':
>        File "/usr/lib/python2.7/site-packages/rdiff_backup/Main.py",
>     line 305, in error_check_Main
>          try: Main(arglist)
>        File "/usr/lib/python2.7/site-packages/rdiff_backup/Main.py",
>     line 326, in Main
>          take_action(rps)
>        File "/usr/lib/python2.7/site-packages/rdiff_backup/Main.py",
>     line 281, in take_action
>          elif action == "backup": Backup(rps[0], rps[1])
>        File "/usr/lib/python2.7/site-packages/rdiff_backup/Main.py",
>     line 336, in Backup
>          rpout.conn.fs_abilities.backup_set_globals(rpin, force)
>        File
>     "/usr/lib/python2.7/site-packages/rdiff_backup/fs_abilities.py",
>     line 922, in backup_set_globals
>          dest_fsa = FSAbilities('destination').init_readwrite(Globals.rbdir)
>        File
>     "/usr/lib/python2.7/site-packages/rdiff_backup/fs_abilities.py",
>     line 167, in init_readwrite
>          self.set_symlink_perms(subdir)
>        File
>     "/usr/lib/python2.7/site-packages/rdiff_backup/fs_abilities.py",
>     line 547, in set_symlink_perms
>          sym_dest.symlink("symlinked_file1")
>        File "/usr/lib/python2.7/site-packages/rdiff_backup/rpath.py",
>     line 1004, in symlink
>          assert self.issym()

>     Traceback (most recent call last):
>        File "/usr/bin/rdiff-backup", line 30, in <module>
>          rdiff_backup.Main.error_check_Main(sys.argv[1:])
>        File "/usr/lib/python2.7/site-packages/rdiff_backup/Main.py",
>     line 305, in error_check_Main
>          try: Main(arglist)
>        File "/usr/lib/python2.7/site-packages/rdiff_backup/Main.py",
>     line 326, in Main
>          take_action(rps)
>        File "/usr/lib/python2.7/site-packages/rdiff_backup/Main.py",
>     line 281, in take_action
>          elif action == "backup": Backup(rps[0], rps[1])
>        File "/usr/lib/python2.7/site-packages/rdiff_backup/Main.py",
>     line 336, in Backup
>          rpout.conn.fs_abilities.backup_set_globals(rpin, force)
>        File
>     "/usr/lib/python2.7/site-packages/rdiff_backup/fs_abilities.py",
>     line 922, in backup_set_globals
>          dest_fsa = FSAbilities('destination').init_readwrite(Globals.rbdir)
>        File
>     "/usr/lib/python2.7/site-packages/rdiff_backup/fs_abilities.py",
>     line 167, in init_readwrite
>          self.set_symlink_perms(subdir)
>        File
>     "/usr/lib/python2.7/site-packages/rdiff_backup/fs_abilities.py",
>     line 547, in set_symlink_perms
>          sym_dest.symlink("symlinked_file1")
>        File "/usr/lib/python2.7/site-packages/rdiff_backup/rpath.py",
>     line 1004, in symlink
>          assert self.issym()
>     AssertionError

> Would you have any suggestions about how to put the output on a network 
> share?

> Also, if you don't use rdiff-backup any more, have you found something 
> you like better?

> --
> Problem reports:      https://cygwin.com/problems.html
> FAQ:                  https://cygwin.com/faq/
> Documentation:        https://cygwin.com/docs.html
> Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple


-- 
With best regards,
Andrey Repin
Tuesday, May 5, 2020 12:17:35

Sorry for my terrible english...
--
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019