diff --git a/Readme.md b/Readme.md index 1583586..78642f5 100644 --- a/Readme.md +++ b/Readme.md @@ -62,3 +62,15 @@ This will run the application with the directory **/home/user/test-upload** and Note: You must select just one option, dir or file. Please replace `"your-bucket-name"`, `"/path/to/directory"`, and `"/path/to/file"` with your actual bucket name and paths. + + +## Environment Variables +The application uses the following environment variables: + +- **BB_ID:** Your Backblaze account ID +- **BB_KEY:** Your Backblaze application key + +You can set these variables in your environment, or you can use a **.env** file in the root directory of the project. If the **BACKBLAZE_ENV** environment variable is set to dev, the application will load the **.env** file. + +## Syncing with Backblaze +The application uses the Sync method of the BackBlaze service to sync files or directories to Backblaze. If there's an error during the sync, the application will log the error and exit.