GithubHelp home page GithubHelp logo

judgeu / docker-gphotos-sync Goto Github PK

View Code? Open in Web Editor NEW

This project forked from rix1337/docker-gphotos-sync

0.0 0.0 0.0 37 KB

Google Photos Sync downloads your Google Photos to the local file system.

Dockerfile 100.00%

docker-gphotos-sync's Introduction

docker-gphotos-sync

Google Photos Sync downloads your Google Photos to the local file system. It will backup all the photos the user uploaded to Google Photos, but also the album information and additional Google Photos ‘Creations’ (animations, panoramas, movies, effects and collages).

Support

Open an issue here.

Start

docker run -d \
  --name="GooglePhotosSync" \
  -v /path/to/config/:/config:rw \
  -v /path/to/storage/:/storage:rw \
  rix1337/docker-gphotos-sync

Authenticating your Google Account

  1. Create a new Google Cloud project

    Go to https://console.cloud.google.com/cloud-resource-manager and create a new project.

    For help with this step, see the Google Cloud documentation for creating a project https://cloud.google.com/resource-manager/docs/creating-managing-projects

  2. Go to https://console.cloud.google.com/apis/library?project=_ select a project, then search for the Photos Library API and enable it for this project.

    The Google Cloud help for enabling APIs can be found here: https://cloud.google.com/apis/docs/enable-disable-apis

  3. Go to https://console.cloud.google.com/, make sure the correct project is selected from the top dropdown menu, then click on APIs & Services in the sidebar, and finally click Credentials in the sidebar. Create an Create OAuth client ID. When asked to choose the application type, select "Desktop App".

    You can see the complete procedure for setting up OAuth 2.0 with your new project on https://support.google.com/cloud/answer/6158849

  4. Once the client ID is created, download it as client_secret.json (so rename it, as it will have a longer name)

  5. Place the client_secret.json you just downloaded and renamed at /config

  6. Afterwards you need to sign into the application once which cannot be done headlessly (instead, run the "Syncing" command manually once)

  7. Afterwards you can call the "Syncing" command any time you wish, as long as the container is running (e.g. by using cron on your docker host).

Syncing

docker exec -it GooglePhotosSync gphotos-sync /storage

By itself this container will do nothing. A sync will only occur when you call the above command on a running container.

docker-gphotos-sync's People

Contributors

rix1337 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.