Python Script that allows you to automatically upload files to S3 from a desred file folder.
The steps below have are written with the assumption that you have an AWS account and a bucket already setup in S3. If not, visit Amazon AWS S3 Docs to learn how to create a bucket.
- Download S3_Backup.py and open in text editor.
- Edit AWS Key ID, Secret Key, and Bucket Name to match your own.
ACCESS_KEY_ID = 'xxxxxxxxxxxxxxxxxxxx'
ACESSS_SECRETY_KEY = 'xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx'
BUCKET_NAME = 'bucketxxx'
- Edit line 22 with the desired local file folder.
source = ''
- Edit line 26 with the desired file type.
if filepath.endswith(".pdf"):