Skip to content

Bidirectionally sync your local folder with a one from Google Drive

License

Notifications You must be signed in to change notification settings

cyber-barrista/gdsync

 
 

Repository files navigation

Google Drive sync logo

Google Drive Sync

A Python library to automatically synchronize your Google Drive content with local storage folder

Install

pip install gdsync666

Usage

from google_drive_sync import upload, download

path_to_my_credentials = "credentials.json"
local_folder = "./local-storage"
google_drive_folder = "local-storage-backup"

# Puts all files from the local folder up to the drive one
upload(
    creds_file=path_to_my_credentials,
    local_folder=local_folder,
    remote_folder=google_drive_folder
)

# Gets additional files added to the drive folder later downloaded down to the local replica
download(
    creds_file=path_to_my_credentials,
    local_folder=local_folder,
    remote_folder=google_drive_folder
)

About

Bidirectionally sync your local folder with a one from Google Drive

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%