...
If secure communication is used for this bit repository, a certificate configured in the repository settings, needs to be added.
- Update the ~/initbitmag.sh file to point to the relevant certificate. Default is conf/mycert-key.pem
Execute
Scripts have been made for easily running the commandline commands.
The following parameters for the commandline client is set by these scripts:
- -s The path to the directory with the settings files for the client
-k The path to the file containing the private key
If the commandline client is wanted to be used without the scripts, then these arguments are mandatory.
Execute the different commands in the following way:The different commands can be run with the bitmag.sh script (bitmag.cmd on windows). Eg.
Code Block |
---|
./bitmag.sh get-checksums -c test1 |
Will fetch the checksums for the test1 collection.
Help
Will print the list of commands.
GetFile
Perform the GetFile by running the 'getfile.sh' scriptget-file' command. It takes the following arguments:
...
Perform the GetFileIDs by running the 'getfileidsget-file-ids.sh' scriptcommand. It takes the following arguments:
...
Perform the GetChecksum by running the 'getchecksums.sh' scriptget-checksums' command. It takes the following arguments:
...
Perform the DeleteFile by running the 'deletefile.sh' scriptdelete-file' command. It takes the following arguments:
...
Replace a file running the 'replacefile.sh' scriptreplace-file' command. It takes the following arguments:
...