Info
Sometimes you want a way to automate the OneDrive folder with an S3 folder.
There is a convenient script
https://github.com/TraumaCareAI/traumacare-utils/blob/main/scripts/sync_local_to_s3.sh
How to use
- Make sure you have a valid AWS session
# example
aws sso login --profile sally-traumacare-poweruser-
Update your OneDrive folder accordingly
-
Modify the default values
- Right now, it is to sync CV mappings
- The default profile is based on my AWS profile.
-
Run the script
- You can either clone the
traumacare-utilsrepo - You can just copy/paste the script as a
.shfile locally
- You can either clone the
# assuming you cloned traumacaare-utils and you are in that folder
./scripts/sync_local_to_s3.shCustomizing your source and destination
Note
The default is for CV mappings. Please update the script accordingly.
The default also uses my AWS profile. Please update with yours.
Sample Successful Run
