---
title: "Discussion on \"Use Python & Boto3 to Backup files/logs to AWS S3\" | Hashnode"
description: "Discussion on \"Use Python & Boto3 to Backup files/logs to AWS S3\". Python script, using Boto3, to backup files in a folder or server logs to AWS S3 in daily at a fixed time with the backup data in the file/log name."
url: "https://hashnode.com/posts/use-python-boto3-to-backup-fileslogs-to-aws-s3/63f388dbd2567203ebab550d"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Use Python & Boto3 to Backup files/logs to AWS S3](https://blog.pushp.ovh/use-python-boto3-to-backup-fileslogs-to-aws-s3?utm_source=hashnode&utm_medium=feed)

Python script, using Boto3, to backup files in a folder or server logs to AWS S3 in daily at a fixed time with the backup data in the file/log name.

Aug 12, 2020 · 8 min read · blog.pushp.ovh  
Read the article

-   [#python](https://hashnode.com/tag/python)
-   [#python3](https://hashnode.com/tag/python3)
-   [#boto3](https://hashnode.com/tag/boto3)
-   [#amazon-s3](https://hashnode.com/tag/amazon-s3)
-   [#logs-backup-strategy](https://hashnode.com/tag/logs-backup-strategy)

## Written by

[Pushp Vashisht](https://hashnode.com/@pushp1997)

@pushp1997 · Dublin, Ireland

  
[View profile](https://hashnode.com/@pushp1997)

Software Engineer II @Microsoft

Pushp Vashisht is working as a Software Engineer II at Microsoft, Ireland. For more information pay a visit at: pushp.ovh

## Responses 1

Markdown supported · ⌘↵ to post

[yukio](https://hashnode.com/@yuki0)

[Feb 21, 2023](https://hashnode.com/posts/use-python-boto3-to-backup-fileslogs-to-aws-s3/63f388dbd2567203ebab550d/comment/63f4225c3c8949b64ddcccbd)

Nice Blog ! , Is there any way you to secure the access key, I've come across programs that uses some kind of algorithm to encrypt the secret key. That could be amazing

[Pushp Vashisht](https://hashnode.com/@pushp1997)

[Feb 22, 2023](https://hashnode.com/posts/use-python-boto3-to-backup-fileslogs-to-aws-s3/63f388dbd2567203ebab550d/comment/63f4225c3c8949b64ddcccbd#reply-63f630c0437bc8d091bd0724)

Thanks for your kind complement and feedback. You can store your access keys in environment variables and read from there using os.get\_env(). That's the standard practice. If you know a better way for access keys using some kind of encryption would love to have read. Would you be kind enough to drop a link here to an article?
