Script that backup a folder to AWS.
Supports the following environment variables. You can create an .env file in this repository to load it directly from disk.
ACCESS_KEY and SECRET_ACCESS_KEY - Credentials from AWS needed to upload
BUCKET - Name of the bucket to upload into
BACKUP_FOLDER - Path to the folder we wish to backup
UPLOAD_ROOT_FOLDER[optional] - Prefix folder to the upload path
LOG_LEVEL[optional] - Set to 10 if you want to see individual file messages
USE_CACHE[optional] - Set to true if you want to use a rudimentary cache system.
You can add a .ignore file into the root of the repository.
That file can contain glob paths that will be ignored when uploading.
IMPORTANT: These are glob paths and does not follow the same pattern as the common .gitignore file.
.git/** | Will match any thing under the git path
**/.DS_Store | Will match any file anywhere named exactly .DS_Store
The script have some basic logging, it can be enabled by adding
LOG_LEVEL to the environment at the numerical value for which you
want to see logs (such as 20 for INFO).
Python Log Levels
CRITICAL 50
ERROR 40
WARNING 30
INFO 20
DEBUG 10
NOTSET 0