./zbox sync
command is used to sync all files in the local folder. Creation, deletion and updation will be done automatically. Parameter details can be viewed using the ./zbox sync --help command.
local
variable. Variable cache
is marked to local cache text file located inside the local directory..
./zbox sync
command with --uploadonly
flag can be used to upload all the files in local folder to dStorage. Parameter details can be viewed using the ./zbox sync --help
./zbox sync
command../zbox sync
command with --uploadonly
flag we will batch upload these files to the dStorage .Variable local
is marked to local directory containing all the files for upload. Variable cache
is marked to local cache text file located inside the local directory../zbox share command
.Parameters can be viewed using./zbox share --help
are shown below:auth ticket
expiresinfo.txt
file located in myfiles/info.txt
directory in dStorage with User B.info.txt
file. For instructions on how to upload an encrypted file check Uploading an Encrypted file on dStorage.getwallet
command. Here we are showing the output of the UserB getwallet
commandUserB
and PUBLIC_KEY_UserB
./zbox share
command with above exported variables .Also specify the allocation and remote path for the file shared by User A which is myfiles/info.txt
../zbox download
using Authtoken provided on UserB computer to privately download the file. Necessary Flags are Authtoken and local path to save the file. Make sure to point encrypted auth token using the export AUTH=<Auth token>
before running the download command.re_encryption_key
field../zbox share --revoke
is used to cancel the share for particular buyer that performed by the seller through Private File Sharing../zbox share --revoke
only works for encrypted files on dStorage../zbox share command
.Parameters can be viewed using./zbox share --help
are shown below:auth ticket
expiresdocs
directory in dStorage with User B.docs
directory exists on dStorage using the list command.getwallet
command. Here we are showing the output of the UserB getwallet
commandUserB
and PUBLIC_KEY_UserB
./zbox share
command with above exported variables .Also specify the allocation and remote path for the directory .export
command../zbox add-collab
command can be used for adding collaborators on all blobbers for the given file. Parameters can be viewed using ./zbox add-collab --help
./zbox getwallet
command . Here is the sample output of the getwallet
command.add-collab
command by mentioning the remote path, allocation ID and collab ID. Here is a sample command for adding collaborator on dStorage.Collaborators
column of the response will contain the client_id of the collaborator added../zbox delete-collab
command can be used for deleting collaborators on all blobbers for the given file. Parameters can be viewed using ./zbox delete-collab --help
./zbox meta
command.Collaborators
column contains the client_id's of the collaborators.client_id
that has to be deleted to a variable .delete-collab
command by mentioning the remote path,allocation ID and collab-id.Collaborators
column of the response which signifies the collaborator is successfully deleted../zbox start-repair
command to repair a file on dStorage. Parameters can be viewed using the --help
flag../zbox download
command which asks the file receiver to pay for their file download.--rx_pay
flag can be viewed using the zbox download --help
​.authticket
must be valid, true = sender pays, false = allocation owner paysrx_pay
boolean set to true .
info1.txt
file located on myfiles
directory of dStorage which User B will download and pay for himself using --rxpay.--attr-who-pays-for-reads
for upload command to 3rd_party (by default it is set to "owner")info1.txt
are successfully set to 3rd-party..zbox download
command to download the file with --rx_pay
flag../zwallet getbalance
and /zbox rp-info
.rp-unlock
before using ./zwallet getbalance
to let the download money reflect in wallet.audio.mp3
file stored on dStorage. Make sure the file has a large size(more than 64 kB(64000 bytes) ) to download the file by blocks. The size and other attributes of the sampleaudio.mp3
file can be viewed usingaudio.mp3
file has size (5993286) bytes and has 92 blocks. If we want to download a certain number of blocks for the info.txt file we can use --endblock
or --startblock
flag with ./zbox download
command. Other flags for download can be viewed using ./zbox download --help
audio.mp3
file we specify --startblock
and--endblock
with an integer value of 1 and 3. --blockspermarker
flag can also be specified to download multiple blocks at a time(default is 10).audio.mp3
file would be: