npins partial update + various fixes and improvements
This commit is contained in:
parent
24de03cb06
commit
5b038453d2
6 changed files with 33 additions and 21 deletions
|
|
@ -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" = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue