This project with scripts for upload and download from Storj Network
PowerShell script for uploading files from folders to buckets with same name, as folders name. Uploads all files to the buckets at Storj network. The script uses buckets names like folder names and checks for the presence of the same files in the bucket. If it does not find the files, it uploads them.
- Open PowerShell as Administrator
- Execute:
Set-ExecutionPolicy -ExecutionPolicy Unrestricted
- Execute:
Unblock-file upload.ps1
$Env:STORJ_KEYPASS = '<your password for unlocking yours key from Storj>'
upload.ps1
[-Path <folder to scan>
][-UseItAsBucket
][-Storj <path to the storj.exe>
][-MinimalMirrors <value>
]
-Path <folder to scan>
- Synchronizing path. Current folder by default
-UseItAsBucket
- Using the base name of the
-Path
as name of the bucket
- Using the base name of the
-Storj <path to the storj.exe>
- Full path to Storj CLI.
~\storj.exe
by default
- Full path to Storj CLI.
-MinimalMirrors <value>
- 2 by default
PowerShell script for trying downloading files from buckets. This is proof of retrievability files from buckets.
- Open PowerShell as Administrator
- Execute:
Set-ExecutionPolicy -ExecutionPolicy Unrestricted
- Execute:
Unblock-file upload.ps1
$Env:STORJ_KEYPASS = '<your password for unlocking yours key from Storj>'
isDownloadable.ps1
[-Storj <path to the storj.exe>
]
-Storj <path to the storj.exe>
- Full path to Storj CLI.
~\storj.exe
by default
- Full path to Storj CLI.
Bash script for uploading files from current directory to buckets with same name, as folders name.
- Create the file
~/.storj.
with:
export STORJ_KEYPASS='<your password for unlocking yours key from Storj>'
- Go to the folder, which content you want to upload
cd Photo
upload.sh
If you want any new feature or you have found a bug, please submit an issue or create a pull request containing fix.
I will be grateful for donations:
BTC: 12GMzcEZQWquBkpqAcnh2aKqvVMEZFk1Nq
ETH and STORJ: 0x8D7a2e3C16d029F838d1F6327449fd46B5daf881
Thank you very much for your support!