|
@@ -0,0 +1,11 @@
|
|
|
+#!/bin/bash
|
|
|
+
|
|
|
+ ipfs files mkdir /NA_Archive
|
|
|
+ cd /data/NA_Archive
|
|
|
+file=$(ls -tr |tail -n 1)
|
|
|
+ hash=$(ipfs add --nocopy -rQ $file)
|
|
|
+ ipfs files cp /ipfs/$hash /NA_Archive/$file
|
|
|
+ echo $file " " $hash
|
|
|
+
|
|
|
+newfolderhash=$(ipfs files stat --hash /NA_Archive)
|
|
|
+echo "new NA_Archive-hash: "$newfolderhash
|