|
From: | Scott Classen |
Subject: | Re: [Duplicity-talk] cache problems |
Date: | Mon, 10 Apr 2017 11:42:16 -0700 |
Hello OK. I think the root (pun intended) of the problem is that I have both the distro python and my custom python installed. The cron env is: SHELL=/bin/sh USER=root PATH=/usr/bin:/bin PWD=/root LANG=en_US.UTF-8 SHLVL=1 HOME=/root LOGNAME=root The duplicity script uses: #!/usr/bin/env python which, in the limited cron environment is picking up python 2.6 (the default system version). I've changed this to: #!/usr/bin/env /usr/local/bin/python which now uses my custom installed python 2.7.13 I'm hoping that this will fix the cache issue.
This is the full output of the command that I run in crontab. sh-4.1# /usr/bin/duply /etc/duply/home_a pre_full_purgeFull_post --force --preview Start duply v2.0.1, time is 2017-04-10 11:20:25. Using profile '/etc/duply/home_a'. Using installed duplicity version 0.7.12, python 2.7.13, gpg 2.0.14 (Home: ~/.gnupg), awk 'GNU Awk 3.1.7', grep 'grep (GNU grep) 2.20', bash '4.1.2(2)-release (x86_64-redhat-linux-gnu)'. Autoset found secret key of first GPG_KEY entry 'ABCDEFG' for signing. -- Run cmd -- Checking TEMP_DIR '/duplicity' is a folder and writable -- test -d '/duplicity' && test -w '/duplicity' 2>&1 -- Run cmd -- Test - Encrypt to 'ABCDEFG' & Sign with 'ABCDEFG' -- echo password123 | gpg --sign --default-key ABCDEFG --passphrase-fd 0 --batch -r ABCDEFG --status-fd 1 -o '/duplicity/duply.23401.1491848425_ENC' -e '/usr/bin/duply' 2>&1 -- Run cmd -- Test - Decrypt -- echo password123 | gpg --passphrase-fd 0 --batch -o '/duplicity/duply.23401.1491848425_DEC' -d '/duplicity/duply.23401.1491848425_ENC' 2>&1 -- Run cmd -- Test - Compare -- test "$(cat '/usr/bin/duply')" = "$(cat '/duplicity/duply.23401.1491848425_DEC')" 2>&1 Cleanup - Delete '/duplicity/duply.23401.1491848425_*'(FAILED) --- Start running command PRE at 11:20:25.775 --- /etc/duply/home_a/pre --- Finished state OK at 11:20:25.789 - Runtime 00:00:00.013 --- --- Start running command FULL at 11:20:25.799 --- TMPDIR='/duplicity' PASSPHRASE=password123 FTP_PASSWORD='PASSWORD' '/usr/local/bin/python' '/usr/bin/duplicity' full --archive-dir '/duplicity/.duply-cache' --name duply_home_a --encrypt-key ABCDEFG --sign-key ABCDEFG --verbosity '4' --volsize 500 --s3-use-rrs --asynchronous-upload --force --exclude-filelist '/etc/duply/home_a/exclude' '/home' 's3://amazonaws.com/swq/a' --- Finished state OK at 11:20:25.847 - Runtime 00:00:00.048 --- --- Start running command PURGEFULL at 11:20:25.857 --- TMPDIR='/home-old/duplicity' PASSPHRASE=password123 FTP_PASSWORD='PASSWORD' '/usr/local/bin/python' '/usr/bin/duplicity' remove-all-but-n-full 4 --archive-dir '/home-old/duplicity/.duply-cache' --name duply_home_a --encrypt-key ABCDEFG --sign-key ABCDEFG --verbosity '4' --volsize 500 --s3-use-rrs --asynchronous-upload --force 's3://amazonaws.com/swq/a' --- Finished state OK at 11:20:25.885 - Runtime 00:00:00.028 --- --- Start running command POST at 11:20:25.896 --- /etc/duply/home_a/post --- Finished state OK at 11:20:25.910 - Runtime 00:00:00.014 ---
|
[Prev in Thread] | Current Thread | [Next in Thread] |