TrollBox
... use your storage with Oracle Object Store
Quick Start
Make sure you have the Object Storage, bucket and you know the compartment id where the storage is configured and also have access there.
Create your OCI configuration, for more details refer to:
https://docs.oracle.com/en-us/iaas/Content/API/Concepts/sdkconfig.htm
mkdir -p "$HOME/.oci"
cat <<EOF > "$HOME/.oci/config"
[DEFAULT]
user=ocid1.user.oc1..XXXX<Your USER ID>XXXXXX
fingerprint=YY:OO:UU:RR: :FF:II:NN:GG:EE:RR:PP:RR:II:NN:TT
tenancy=ocid1.tenancy.oc1..XXXXX<USER TENANCY>XXXXX
region=<REGION> # Example: us-phoenix-1
key_file=~/.oci/oci_api_key.pem
EOF
Copy your KEY into $HOME/.oci/oci_api_key.pem
.
Export variables:
export COMPARTMENT_ID="ocid1.compartment.oc1..<your bucket comparmtment ocid>"
export BUCKET_NAME="<bucket name>" # example: images
export LOCAL_FS="<localfs storage>" # example /home/bob/ObjectStore
export TROLL_ID="<id>", #example marynek, needed, but comes useful when multiple trolls ran on the same machine
Execute TrollBox for your architecure:
./trollbox-linux-amd64
Windows Instructions
- Make the variables above as user environment variables: Settings > System > Advanced > Envinroment, Add user variable
- Use full paths inc config, e.g. replace
~/.oci/config
withC:\Users\micha\.oci\config
- Make shortcut from the
trollbox-windows-amd64.exe
, Winkey+R, entershell:startup
and copy the shortcut into the window
Binaries
Under build
directory you can find the latest binaries.
Issues
- for sync only size is compared, the file is synced when the size differs
- diffs from last and current snapshots might not work properly in case they are deleted
- when context timeout deadline is exceeded the file is not upload/downloaded to/from storage