gphotos-sync
gphotos-sync copied to clipboard
documentation for Synology
With help of @brianrook on
https://bullyrooks.com/index.php/2021/02/02/backing-up-google-photos-to-your-synology-nas/
I managed to setup my Synology-Synch, not a specialist in docker-things. I think it would be a good thing to expand the documentation. For one thing in the redirect-url after authentication was localhost where it should be the Synology-URL. For that to work the port had to be added to the command:
sudo docker run -ti --name gphotos-sync -p 8080:8080 -v /volume3/photo/googlephotos:/storage -v /volume3/docker/gphotos-sync/config/gphotos-sync/:/config gilesknap/gphotos-sync:latest /storage
and after that manually replace the localhost-url on the error-page to the url of your synology-device.
Hi @bvdbos. Honestly I'm surprised that your replacing of the URL worked!
The new google auth flow only supports localhost so the recommendation in the docs is to make the token on a workstation and then copy it over.
Would you be interested in contributing a short description of your steps to add to the docs. OR doing a PR?
Thanks, giles
I'm not OP, but the steps are:
- Open the browser and grant permissions as usual.
- When you are done the browser will redirect you to localhost:8080 with a bunch of request parameters.
- Since localhost:8080 isn't available in this case, the browser will return an error.
- Copy the entire URL from the address bar
- Change localhost to the desired IP / hostname keeping everything else as it is.
- Visit / GET the modified URL to complete the Auth flow.
Hi @bvdbos. Honestly I'm surprised that your replacing of the URL worked! ... Would you be interested in contributing a short description of your steps to add to the docs. OR doing a PR?
Will make a PR that but it will mostly be a blatant copy of the documentation of @brianrook if he doesn't mind :)
@bvdbos thanks! I suggest a separate RST dedicated to Synology.
Thanks this fixed it for me.
Consolidating docs issues here #417