public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
From: Andrey Repin <anrdaemon@yandex.ru>
To: Cygwin <qrasmfu8f4@snkmail.com>, cygwin@cygwin.com
Subject: Re: Update request for rdiff-backup
Date: Tue, 5 May 2020 12:37:37 +0300	[thread overview]
Message-ID: <1086641428.20200505123737@yandex.ru> (raw)
In-Reply-To: <03bafa60-d782-ca7e-2df6-fb727cdacd66@snkmail.com>

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...

  reply	other threads:[~2020-05-05  9:53 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-04-29  6:43 qrasmfu8f4
2020-05-04 17:44 ` David Rothenberger
2020-05-05  4:17   ` Cygwin
2020-05-05  9:37     ` Andrey Repin [this message]
2020-05-08  6:15       ` Cygwin
2020-05-08 15:09         ` David Rothenberger
2020-05-05 15:16     ` Brian Inglis
2020-05-06  5:23       ` Cygwin
2020-05-06 13:22         ` Brian Inglis
2020-05-05 18:38     ` David Rothenberger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1086641428.20200505123737@yandex.ru \
    --to=anrdaemon@yandex.ru \
    --cc=cygwin@cygwin.com \
    --cc=qrasmfu8f4@snkmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).