dropbox-to-google-photos
save dropbox pictures and videos to google photos
Installation
go install github.com/chyroc/[email protected]
Usage
Google Photos OAuth Config
- click google cloud create project to create google photos oauth project
- click photoslibrary.googleapis to enable google photos api
- click google oauth app to create google oauth app
Then you can get a google ooauth app id and secret.
Init config
dropbox-to-google-photos init
default config file is ~/.dropbox-to-google-photos/config.json
open config file and fill in the blanks
{
"account": "[email protected]",
"google_photos": {
"client_id": "client id",
"client_secret": "client secret"
},
"dropbox": {
"token": "dropbox token",
"root_dir": "/"
},
"worker": 20
}
- account: your email
- google_photos.client_id: google oauth app id
- google_photos.client_secret: google oauth app secret
- dropbox.token: dropbox token
- dropbox.root_dir: dropbox root dir
- worker: worker count(upload goroutine num)
Auth google photos
dropbox-to-google-photos auth
![]() |
![]() |
![]() |
Sync dropbox to google photos
dropbox-to-google-photos sync