Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Best way to run headless #320

Closed
Devenda opened this issue Mar 24, 2022 · 2 comments
Closed

Best way to run headless #320

Devenda opened this issue Mar 24, 2022 · 2 comments
Assignees

Comments

@Devenda
Copy link

Devenda commented Mar 24, 2022

Having read all threads about running this headless I still have not found a solution.

Setting SecretsBackendType to auto or file still prompts me to enter a passphrase.
The fork of @rfgamaral is outdated and seems to no longer support the latest version.

How do I go about automating the upload?

Thanks in advance!

@Devenda Devenda added the bug Something isn't working label Mar 24, 2022
@pacoorozco
Copy link
Member

pacoorozco commented Mar 28, 2022

Hi @Devenda

Unfortunately this script was not intended to run in headless mode (#311).

Once you have completed the first run, obtaining the authorization code from Google Photos. The code is encrypted inside a file (if you're using SecretsBackendType: file) using the password (encryption key) that you provide.

Every time you run the CLI, you need to provide the same password to decrypt the file. You can provide it using a environment var (see it here).

I hope this will help you to answer the question.

@pacoorozco pacoorozco pinned this issue Mar 28, 2022
@pacoorozco pacoorozco added documentation and removed bug Something isn't working labels Mar 28, 2022
@Devenda
Copy link
Author

Devenda commented Mar 29, 2022

Hi @pacoorozco,

Sorry, I must have not read the docs thoroughly!

This is exactly what I needed and it is working perfectly.

Many thanks and thank you for this project!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants