I dug further and found out the difference between two prune logs (local and cloud) before I added -a argument to the script. For local there are line, as you suggested, with IDs (total ca. 4 000 lines):
Snapshot 7_jail revision 9 was created after collection 11
Snapshot 8_jail revision 9 was created after collection 11
Snapshot 9_jail revision 9 was created after collection 11
Snapshot 12_jail revision 33 was created after collection 11
Snapshot 1_jail revision 9 was created after collection 11
Snapshot 2_jail revision 9 was created after collection 11
Snapshot 4_jail revision 9 was created after collection 11
Snapshot 5_jail revision 33 was created after collection 11
Snapshot 6_jail revision 9 was created after collection 11
Snapshot 0_root revision 33 was created after collection 11
Snapshot 15_jail revision 9 was created after collection 11
Snapshot 3_jail revision 33 was created after collection 11
Deleted fossil dbaab1d6c8e98ee72d0c4132a40fe5b9a8d148c31f31eefecfd66f5a8d299cfa (collection 11)
Deleted fossil c551e0040352efee64f2816918355b46b4c654ff6f8c43d79d23248e74798c83 (collection 11)
Deleted fossil 7004d3036ffb33d7350e9cea8392af0e918c20f43323d4259a66346eb694b288 (collection 11)
Deleted fossil cf72ebfad18514513640da43b7b69580d413a250735542f55407234bc2d0cea6 (collection 11)
...
Marked fossil 9180b50a9284af8ed3de10e0612cb46deb7ae0acf82f6273b02ecbe460c5b0a8
Marked fossil a19c5bb9b65bddbbe3fa315505ba9ca478c5dbd5455a4695255ad27faf29391e
Marked fossil de99c18d6d869f8319f7a51ef625ce6ed83c9a97dfe7c7a0735f02e407b4c226
Marked fossil fbbc1e6b84decbec75860041f6a7e455d0ee1b7c7d1ca9964654a9d11a83b5f7
...
Marked fossil 764eec5065d44f020dfe2f20890120cc82d1db4f579d7c79888cdd56b3b04268
Fossil collection 16 saved
Deleted cached snapshot 12_jail at revision 23
Deleted cached snapshot 12_jail at revision 24
Deleted cached snapshot 12_jail at revision 25
Deleted cached snapshot 12_jail at revision 26
But for cloud there are only 60 lines of "Marked fossil " lines, the log starts and ends with them, nothing else in between:
Marked fossil 0898290d70cbd62dabcf10d2b3098b3d036bfe4a9b98ff1c8d19f6bd90a05c61
Marked fossil e7126e4cfa573525608b6d67abf9425e4c05f391d2d64a971ce5aa4787edf02f
Marked fossil 15a67e94e71823b904d977f6ca7f1b1d5ee62cd1aed583f56afa2f19cb5cb24f
So, I reckon this is because there is no ID (even default one) for the cloud storage, as you kindly suggested.
The most peculiar thing is that the prune logs for a command with -a argument are completely empty, zero bytes of the files, not even a line in them. In the console (I ran scripts manually) there are line like that:
Storage set to /var/duplicacy
Keep no snapshots older than 22 days
Fossil collection 1 found
Fossils from collection 1 can't be deleted because deletion criteria aren't met
Fossil collection 2 found
Fossils from collection 2 can't be deleted because deletion criteria aren't met
Fossil collection 3 found
Fossils from collection 3 can't be deleted because deletion criteria aren't met
No snapshot to delete
[Fri Jul 19 10:26:38 MSK 2024] Pruning weekly in sftp_ihc / 0:22
Storage set to sftp://p627403@p627403.backup.ihc.ru/tuft
Keep no snapshots older than 22 days
Fossil collection 1 found
Fossils from collection 1 can't be deleted because deletion criteria aren't met
Fossil collection 2 found
Fossils from collection 2 can't be deleted because deletion criteria aren't met
Fossil collection 3 found
Fossils from collection 3 can't be deleted because deletion criteria aren't met
No snapshot to delete
...
And it’s continue for each storage in the script with more or less the same content.
What I think is that prune somehow remove the obsolete snapshots from the counter (duplicacy check command), but the files still on the disk for some incomprehensible (at least for me) reason.
Any suggestions?