Skip to content

Jerakin/aws-upload

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws uploader

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.

Environment

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.

Ignore file

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

Logging

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published