Created
July 12, 2020 17:29
-
-
Save sarkrui/dbd5ffdba72f2010fed5f473e7604063 to your computer and use it in GitHub Desktop.
list oracle object storage bucket via oci-cli
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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