|
From: | Andreas Schuldei |
Subject: | Re: [Duplicity-talk] how to do the oauth2 interactive authentication when run from cron (backup to google drive)? |
Date: | Fri, 04 May 2018 07:19:00 +0000 |
apt-cache policy duplicityduplicity:Installed: 0.7.17-0ubuntu0ppa1353~ubuntu18.04.1Candidate: 0.7.17-0ubuntu0ppa1353~ubuntu18.04.1Version table:*** 0.7.17-0ubuntu0ppa1353~ubuntu18.04.1 100100 /var/lib/dpkg/status0.7.11-1 500500 http://ftp.debian.org/debian stretch/main armel Packagesi build that package from source, using (and slightly adjusting) the ubuntu package, so it builds on debian.cat /etc/debian_version9.0you say it creates a .file in $HOME. actually there is a file with the funny name "<filename to cache credentials>" ("<" and ">" as part of the filename. there is no ".file", though. the backup runs as user root, though. I added further debugging and copied the funny file (which does contain google authentication credentials) to ".file". lets see if that works tomorrow night when the backup is supposed to run.On Wed, May 2, 2018 at 9:47 PM Kenneth Loafman <address@hidden> wrote: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!...KenOn 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
[Prev in Thread] | Current Thread | [Next in Thread] |