BertrandConxy / Auto-backup-script

This is a python script that auto generate a backup and store it on GDrive

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

AutoBackup Script

Handy script which can help to automate the repetitive task of backing up files and folders to GDrive

Built With

  • Major languages (Python)

  • Libraries (google-api-python-client, google-auth-httplib2, google-auth-oauthlib)

  • Technologies/tools used

    - Git(version control)
    - Google workspace apis(GDrive api)

Getting Started

To get a local copy up and running follow these simple example steps.

Prerequisites

  • Python 3.10.7 or greater
  • The pip package management tool
  • A Google Cloud project.
  • A Google account with Google Drive enabled.

References

Install

  • Git
  • Python 3.x
  • python libraries using pip (google-api-python-client, google-auth-httplib2, google-auth-oauthlib)

Clone this repository

$ git clone <repo_link>
$ cd <repo_name>

Run project

  • Ensure that you have credentials.json file in your working directory
$ python3 backup.py <path_to_your_directory_for_backup> # this will open in the browser for the first time in order to grant your app access to GDrive

## 📝 License

This project is MIT licensed.

About

This is a python script that auto generate a backup and store it on GDrive

License:MIT License


Languages

Language:Python 100.0%