duplicity-talk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Duplicity-talk] how to do the oauth2 interactive authentication whe


From: Kenneth Loafman
Subject: Re: [Duplicity-talk] how to do the oauth2 interactive authentication when run from cron (backup to google drive)?
Date: Wed, 2 May 2018 14:47:27 -0500

Which OS/version?  Which duplicity/version?  What is your command line?

The backend will normally save a .file in the user's home directory.  If you do "sudo duplicity ...", that will use your home dir, not root's.  To fix this, do "$ sudo -i duplicity ..." to login as root and use root's home dir.  Or, you can find the .file and copy it to /root.  You may need to chown it to root.

Hope that helps!

...Ken


On Wed, May 2, 2018 at 10:03 AM, Andreas Schuldei via Duplicity-talk <address@hidden> wrote:
i did a test run for my backup script from the command line (as root) and did the offline access type authentication where you paste a code from the webbrowser to the commandline. That backup went fine.

now from cron the script runs as root, too, and demands the same kind of authentication again. it does not so that when running from the command line. 

how do i solve this?

kind regards,

Andreas

_______________________________________________
Duplicity-talk mailing list
address@hidden
https://lists.nongnu.org/mailman/listinfo/duplicity-talk



reply via email to

[Prev in Thread] Current Thread [Next in Thread]