Repository: borgbackup/borg

Issue:
cygwin remote repos working now?
from irc user capi:

just tried doing backup from cygwin via ssh to a remote linux. this works fine now. website still says, that this is known to be not working.




Discussion:
iirc: the problems were in the tests and not all tests failed all the time - it was spurious failure.

TODO: confirmation of that from another user, run tests multiple times, fix docs if it is working now.
I ran the tests 4 times, always only the issue as filed in #1340.
#2637 was first found on cygwin, but later has been seen elsewhere also - and that is fixed now.

So, guess we need just one more confirmation from somebody successfully practically using cygwin borg to a ssh: repo for a while.
I just tried borg via ssh and cygwin for the first time like this:

`borg list --remote-path /usr/local/bin/borg  ssh://user@synology:22/volume1/Backups/BackupBorg`

No problems encountered. Borg list, info, etc are working too.

p.s. Used ARM borg 1.1.0 binaries for my NAS from here https://borg.bauerj.eu/


//Edit: moved second part of my comment to #2621

That's quite for sure a PATH issue. If you do not give --remote-path, it just invoked `borg` and if that can be found in the PATH, that'll work.

Nevertheless interesting, but maybe move that comment to #2621? Except the "it worked for me" part.

Resolving patch:
diff --git a/src/borg/archiver.py b/src/borg/archiver.py
--- a/src/borg/archiver.py
+++ b/src/borg/archiver.py
@@ -2667,6 +2667,11 @@ def define_archive_filters_group(subparser, *, sort_by=True, first_last=True):
         (O, C and D, respectively), then the Number of files (N) processed so far, followed by
         the currently processed path.
 
+        When using ``--stats``, you will get some statistics about how much data was
+        added - the "This Archive" deduplicated size there is most interesting as that is
+        how much your repository will grow.
+        Please note that the "All archives" stats refer to the state after creation.
+
         See the output of the "borg help patterns" command for more help on exclude patterns.
         See the output of the "borg help placeholders" command for more help on placeholders.
 
@@ -2961,6 +2966,11 @@ def define_archive_filters_group(subparser, *, sort_by=True, first_last=True):
         This command deletes an archive from the repository or the complete repository.
         Disk space is reclaimed accordingly. If you delete the complete repository, the
         local cache for it (if any) is also deleted.
+
+        When using ``--stats``, you will get some statistics about how much data was
+        deleted - the "Deleted data" deduplicated size there is most interesting as
+        that is how much your repository will shrink.
+        Please note that the "All archives" stats refer to the state after deletion.
         """)
         subparser = subparsers.add_parser('delete', parents=[common_parser], add_help=False,
                                           description=self.do_delete.__doc__,
@@ -3185,6 +3195,11 @@ def define_archive_filters_group(subparser, *, sort_by=True, first_last=True):
         The ``--keep-last N`` option is doing the same as ``--keep-secondly N`` (and it will
         keep the last N archives under the assumption that you do not create more than one
         backup archive in the same second).
+
+        When using ``--stats``, you will get some statistics about how much data was
+        deleted - the "Deleted data" deduplicated size there is most interesting as
+        that is how much your repository will shrink.
+        Please note that the "All archives" stats refer to the state after pruning.
         """)
         subparser = subparsers.add_parser('prune', parents=[common_parser], add_help=False,
                                           description=self.do_prune.__doc__,


Test patch: