systemd / casync

Content-Addressable Data Synchronization Tool
1.49k stars 117 forks source link

Listing an index file requires the store #257

Open remram44 opened 2 years ago

remram44 commented 2 years ago

After reading the documentation, I was surprised that listing the contents of a .caidx is not possible without accessing the corresponding store. I had assumed that it contained the list of file names and that casync only needed to read from the .castr to get file content.

$ casync list 20211118-00-c991bcaf.caidx 
Failed to run synchronizer: No such file or directory
$ casync list --store=https://.../default.castr 20211118-00-c991bcaf.caidx
drwxr-xr-x dir
...

This is a real problem when the content is remote. I downloaded the .caidx file and thought I could use it to figure out what to download from the remote store, however list operations take minutes.