Skip to content

Instantly share code, notes, and snippets.

@sarkrui
Created July 12, 2020 17:29
Show Gist options
  • Save sarkrui/dbd5ffdba72f2010fed5f473e7604063 to your computer and use it in GitHub Desktop.
Save sarkrui/dbd5ffdba72f2010fed5f473e7604063 to your computer and use it in GitHub Desktop.
list oracle object storage bucket via oci-cli
PATH=/users/<YOUR_USER_NAME>/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
*/10 * * * * cd ~/.scripts && ./oracle.sh > ~/.scripts/log/oracle.log 2>&1
#!/bin/bash
source ~/oracle-cli/bin/activate
oci os bucket list --all
echo "y" | oci os object put --file /path/to/a/file/ --bucket-name=YOURBUCKETNAME
deactivate
echo "Done!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment