Skip to content

yffrankwang/GDriveSync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GDriveSync

Google Drive Synchronize Command Line Tool.

INSTALLATION

Install dependencies

pip install --upgrade pytz tzlocal python-dateutil exifread 
pip install --upgrade oauth2client google-api-python-client

Using git to get source

git clone https://github.com/yffrankwang/GDriveSync.git

Configure options for file synchronization:

mkdir ~/the_root_dir_of_gdrive
cp GDriveSync.ini ~/the_root_dir_of_gdrive/.gdrivesync.ini
# modify options

RUN

cd ~/the_root_dir_of_gdrive
python GDriveSync.py sync

USAGE

GDriveSync.py <command> ...
  <command>:
    help                print command usage
    get <id>            print remote file info
    tree                list remote folders
    list [all]          list [all] remote files
    scan                scan local files
    pull [go] [force]   download remote files
      [force]           force to update file whose size is different
                        force to trash file that not exists in remote
      [go]              no confirm (always yes)
    push [go] [force]   upload local files
      [force]           force to update file whose size is different
                        force to trash file that not exists in local
    sync [go]           synchronize local <--> remote files
    touch [go]          set local file's modified date by remote
    patch [go]          set remote file's modified date by local
    drop                delete all remote files

RUNTIME FILES

A token file is created during execution:

  • .gdrivesync.token: which has the token to authenticate to Google Drive

About

Google Drive Synchronize

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages