npins partial update + various fixes and improvements

This commit is contained in:
boyreau 2026-11-04 15:56:31 +01:00
commit 5b038453d2
6 changed files with 33 additions and 21 deletions

View file

@ -63,6 +63,12 @@ in
"/home/zo/dev" = {
enable = true;
dest = "/tmp/backups/";
salvation.command = /* bash */ ''
SAVED_FILE="$(basename "$SRC")"
mv "$SRC" "/mfs/$SAVED_FILE";
HASH="$(${ipfs} files stat --hash "/$SAVED_FILE")"
${ipfs-cluster-ctl} pin add "$HASH";
'';
};
"/home/zo/Documents" = {