Make a Distributed Video Archive
Magnet Links
Install aria2.
1link='magnet:?xt=urn:btih:4abed024f77b829a1d08773b00d449f7a42c1ff9&dn=One_Page_Dungeon_2025&tr=udp%3A%2F%2Ftracker.publicbt.com%3A80&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=udp%3A%2F%2Fexplodie.org%3A6969%2Fannounce
2git annex addurl "${link}"
YouTube Videos
Install yt-dlp.
1vidurl='https://www.youtube.com/shorts/KQrTQcMRg7U'
2git config annex.security.allowed-ip-addresses all
3git annex addurl "${vidurl}"
4git commit -mSexy\ minotaur --file "${name}.mkv"
Alternatively, download with the --fast option.
1vidurl='https://www.youtube.com/watch?v=pkzVOXKXfQk'
2name="AAVE"
3git annex addurl --fast "${vidurl}" --file "${name}.webm"
4git commit -m"Add ${name}.webm"
This records only that the video should exist, and where to get it.
Get this video:
1git annex get "${name}.webm"
Removing Files
You can remove the file and its address like this:
1git annex drop ${file} --from web
2git status
No changes have been made to the git repo, but annex has deleted the file and
removed its address.