Recent comments posted to this site:

comment 17 360caa8972c2daa94044cc95188306e9
[[!comment Error: unsupported page format sh]]
—
comment 23 70dcb7e7ffdd14351adaf4c40ee7fdd0
[[!comment Error: unsupported page format hs]]
—
comment 3 e6ce9bb92c973350852c9498b7ffb50f
[[!comment Error: unsupported page format sh]]
—
Can fileprefix be changed on S3 remotes?

git-annex stored a bunch of files on a S3 bucket under foo/ and now I'd like to "move" them to bar/.

Assuming I manually "move" the files on S3 to bar/, would git annex enableremote s3 fileprefix=bar/ be enough to access the existing encrypted files?

Or does fileprefix influence the S3 location of future files only?

Comment by gioele —
Re: combine worm with partial hash

It lowers the probability to only files that happen to start with the same prefix. There are many cases where 2 versions of a file start with the same data and diverge later, think eg a filesystem image where one file has been changed.

So I think this would give a false sense of protection, kind of like wearing a steel toed boot but with a gun still pointed at your foot.

It's better to just not use WORM. Modern computers can hash really fast, especially if you use BLAKE3.

Comment by joey —
Re: registering multi-file torrent urls for existing files

Coming back to this one, turns out this is feasible using git annex registerurl:

``` aria2c --show-files multi-file.torrent

get the number of the file

git annex registerurl "$(git annex lookupkey file.mp4)" "magnet:...#" ```

Works as intended; however, this will skip verification, so it's imperative that this is only used when you are 100% certain the file in the torrent is exactly the same your local one. :)

Comment by miris —
comment 5

I have not looked at borg 2 in any detail, but it seems they are trying to keep the CLI to some extent the same. So it seems it would depend on whether CLI changes break something git-annex relies on.

I'd treat any incompatability as a bug or todo on the git-annex side, so if you try it and find problems, please report them.

Comment by joey —
borg 2.0

With borg 2.0 on the horizon, I was wondering how support for that would look should that be planned.

With how much has changed and the necessity to create new repos, it might make the most sense to create a separate borg2 remote, but I have now idea. Mostly just curious if there are any plans for that at all.

Comment by nadir —
registering multi-file torrent urls for existing files

Heyo,

Is it possible to assign multi-file torrent links to files, without needing to download the entire torrent again using Annex?

Consider the following scenario:

A multi-file torrent has been downloaded in the past, say, using qBittorrent...

... I then add the files to Git Annex, and would like to efficiently register torrent/magnet URLs for them...

Annex maps files to a multi-file torrent using #<n> suffixes, so I've tried the following:

  1. aria2c --show-files <torrent file> -- to get the numbers for each file
  2. git annex addurl --file "file.mp4" "magnet:...#<N>" -- to map the file to its original torrent/magnet

The following error occurs:

(downloading torrent file...) git-annex: That url contains multiple files according to the bittorrent remote; cannot add it to a single file.

If there's any information or clarification needed, please don't hesitate to let me know :)

Comment by miris —