Skip to content

oneguynick/insync

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Introduction

Dockerfile to build an Insync container image to synchronize Google Drive.

Changelog

Authors

Kudos and thanks to Dave Conroy for doing an initial build of this solution. I didn't need the customisation of the Zabbix and other network integrations.

Table of Contents

Prerequisites

You must have a license for Insync and authorize your Google Account with the Application.

Installation

Automated builds of the image are available on Registry and is the recommended method of installation.

docker pull hub.docker.com/oneguynick/insync:(imagetag)

The following image tags are available:

  • latest - Most recent release of Insync w/Debian Jessie

Quick Start

  • The quickest way to get started is using docker-compose. See the examples folder for a working docker-compose.yml that can be modified for development or production use.

  • Visit https://goo.gl/jv797S to authorize Insync for your Google Drive Account. This is time sensitive so do it quickly before running this.

  • Set various environment variables to understand the capabilities of this image.

  • Map persistent storage for access to configuration and data files for backup.

Example Run

docker run -d --restart unless-stopped --name insync -e USERNAME=your@gmail.com -e DOWNLOAD=open-document -e TZDATA=America/Detroit -e AUTH_CODE=INSERT-FROM-ABOVE-LINK -v /gdrive/account:/data oneguynick/insync

Configuration

Data-Volumes

The container will create a folder for the account to be synced upon startup.

The following directories are used for configuration and can be mapped for persistent storage.

Directory Description
/data Root Directory

Environment Variables

Parameter Description
USERNAME Your GDrive Username e.g. user@gmail.com
AUTH_CODE Authorization Code provided by Google
DOWNLOAD How to download files link (.gdoc), ms-office (.docx), open-document (.odt) - Default link
PROXY_MODE Use Proxy TRUE or FALSE - Default FALSE
PROXY_TYPE Type of Proxy HTTP SOCKS4 SOCKS5
PROXY_HOST Name of Proxy Host e.g. proxy
PROXY_PORT Port of Proxy e.g. 3128
PROXY_USER (Optional) Username for Proxy e.g. user
PROXY_PASS (Optional) Password for Proxy e.g. password

Networking

No Ports Exposed

Maintenance

Selectively Syncing Files

  • Enter the container and execute manage_sync and use the Ncurses Interface

Ignoring Files/Folders

  • Enter the container and execute manage_ignore and use the Ncurses Interface

Shell Access

For debugging and maintenance purposes you may want access the containers shell.

docker exec -it (whatever your container name is e.g. insync) bash

References

About

Headless Insync Docker Container

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published