sync doesn't work the way it's described

The description of sync says, it should load all snapshots to remote location and should be readable by rlist. However it's not true.

It's more like "upload" or "export" then sync with remote location, but without .info file.

I had download version of schnapps from one of patch version, because of webdav fix.

Turris 1.0, TurrisOS 5.3.3

Usecase:

  1. Download patched version
wget -q https://gitlab.nic.cz/turris/schnapps/-/raw/93e5a20f9daaa86b71156ca53c83ae955ea58331/schnapps.sh?inline=false -O schnapps.sh
  1. configure webdav in /etc/conf/schnapps
  2. Compare list of locations
root@turris:~# ./schnapps.sh list
    # | Type      | Size        | Date                      | Description
------+-----------+-------------+---------------------------+------------------------------------
   30 | post      |     8.76MiB | 2021-11-13 18:59:16 +0100 | Automatic post-update snapshot
   32 | time      |     8.70MiB | 2021-11-21 01:05:03 +0100 | Snapshot created by cron
   33 | time      |     8.70MiB | 2021-11-28 01:05:03 +0100 | Snapshot created by cron
   34 | time      |     8.72MiB | 2021-12-05 01:05:04 +0100 | Snapshot created by cron
   35 | time      |     8.72MiB | 2021-12-12 01:05:03 +0100 | Snapshot created by cron
   36 | pre       |     8.72MiB | 2021-12-14 16:02:42 +0100 | Automatic pre-update snapshot
   37 | post      |     8.72MiB | 2021-12-14 16:02:54 +0100 | Automatic post-update snapshot
   38 | time      |   816.00KiB | 2021-12-19 01:05:02 +0100 | Snapshot created by cron
   39 | pre       |   288.00KiB | 2021-12-20 12:42:03 +0100 | Automatic pre-update snapshot
   40 | post      |   128.00KiB | 2021-12-20 12:43:10 +0100 | Automatic post-update snapshot
   41 | pre       |   128.00KiB | 2021-12-20 16:27:24 +0100 | Automatic pre-update snapshot
   42 | rollback  |   257.08MiB | 2021-12-20 21:57:27 +0100 | Rollback to snapshot 38
   43 | pre       |   160.00KiB | 2021-12-20 22:01:27 +0100 | Automatic pre-update snapshot
   44 | post      |    96.00KiB | 2021-12-20 22:02:32 +0100 | Automatic post-update snapshot
   45 | pre       |   144.00KiB | 2021-12-21 01:24:27 +0100 | Automatic pre-update snapshot
   46 | post      |    12.20MiB | 2021-12-21 01:39:15 +0100 | Automatic post-update snapshot (TurrisOS 5.3.3)
   47 | single    |   220.00KiB | 2021-12-21 18:45:19 +0100 | post upgrade TOC5
root@turris:~# ./schnapps.sh rlist
                    # | Type      | Size        | Date                      | Description
----------------------+-----------+-------------+---------------------------+------------------------------------
  1. Run sync
root@turris:~# ./schnapps.sh sync -t time
./
./bin/
./bin/killall
./bin/vi
./bin/test
...
...
...
...
./.gnupg/random_seed
./var
./boot.scr
Current system was exported into /NetBackup/turris on webdav://xxxx.yyyyy.zz:5006/ as schnapps-medkit-20211222
  1. Check results
root@turris:~# ./schnapps.sh list
    # | Type      | Size        | Date                      | Description
------+-----------+-------------+---------------------------+------------------------------------
   30 | post      |     8.76MiB | 2021-11-13 18:59:16 +0100 | Automatic post-update snapshot
   32 | time      |     8.70MiB | 2021-11-21 01:05:03 +0100 | Snapshot created by cron
   33 | time      |     8.70MiB | 2021-11-28 01:05:03 +0100 | Snapshot created by cron
   34 | time      |     8.72MiB | 2021-12-05 01:05:04 +0100 | Snapshot created by cron
   35 | time      |     8.72MiB | 2021-12-12 01:05:03 +0100 | Snapshot created by cron
   36 | pre       |     8.72MiB | 2021-12-14 16:02:42 +0100 | Automatic pre-update snapshot
   37 | post      |     8.72MiB | 2021-12-14 16:02:54 +0100 | Automatic post-update snapshot
   38 | time      |   816.00KiB | 2021-12-19 01:05:02 +0100 | Snapshot created by cron
   39 | pre       |   288.00KiB | 2021-12-20 12:42:03 +0100 | Automatic pre-update snapshot
   40 | post      |   128.00KiB | 2021-12-20 12:43:10 +0100 | Automatic post-update snapshot
   41 | pre       |   128.00KiB | 2021-12-20 16:27:24 +0100 | Automatic pre-update snapshot
   42 | rollback  |   257.08MiB | 2021-12-20 21:57:27 +0100 | Rollback to snapshot 38
   43 | pre       |   160.00KiB | 2021-12-20 22:01:27 +0100 | Automatic pre-update snapshot
   44 | post      |    96.00KiB | 2021-12-20 22:02:32 +0100 | Automatic post-update snapshot
   45 | pre       |   144.00KiB | 2021-12-21 01:24:27 +0100 | Automatic pre-update snapshot
   46 | post      |    12.20MiB | 2021-12-21 01:39:15 +0100 | Automatic post-update snapshot (TurrisOS 5.3.3)
   47 | single    |   220.00KiB | 2021-12-21 18:45:19 +0100 | post upgrade TOC5
root@turris:~# ./schnapps.sh rlist
                    # | Type      | Size        | Date                      | Description
----------------------+-----------+-------------+---------------------------+------------------------------------

Listing of target folder:

dav:/NetBackup/turris/> ls
Listing collection `/NetBackup/turris/': succeeded.
Coll:   old                                    0  Dec 22 00:57
       *schnapps-medkit-turris-20211221.tar.gz  103378475  Dec 22 00:05
       *schnapps-medkit-turris-20211222.tar.gz  103378786  Dec 22 01:08
dav:/NetBackup/turris/>


EXPECTED: Local and remote location are in sync, snapshots + .info

ACTUAL: Only one exported medkit file, nothing else, no .info for later import etc.

Edited by theerror
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information