[Top][All Lists]

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

[Duplicity-talk] Backup fails only from cron

From: Adam Huffman
Subject: [Duplicity-talk] Backup fails only from cron
Date: Fri, 30 Jul 2010 12:08:13 +0100

I'm trying to setup automated backups via cron on a Fedora 13 system,
connecting to a Centos 5.5 server.

When I run the simple script interactively, it works fine, using an
SSH key to connect to the server.

When I schedule the script via cron it fails with the "Invalid SSH
password" error.

Here's the traceback:

Backend error detail: Traceback (most recent call last):
  File "/usr/bin/duplicity", line 1239, in <module>
  File "/usr/bin/duplicity", line 1232, in with_tempdir
  File "/usr/bin/duplicity", line 1133, in main
  File "/usr/bin/duplicity", line 910, in sync_archive
    remlist = globals.backend.list()
  File "/usr/lib64/python2.6/site-packages/duplicity/backends/sshbackend.py",
line 270, in list
    l = self.run_sftp_command(commandline, commands).split('\n')[1:]
  File "/usr/lib64/python2.6/site-packages/duplicity/backends/sshbackend.py",
line 197, in run_sftp_command
    raise BackendException("Error running '%s'" % commandline)

I've seen similar errors reported and there's
https://bugs.launchpad.net/duplicity/+bug/411145, though there's no
sign of a "Couldn't get handle" error in my case.

The problem occurs both with the current Fedora package 0.6.08b and
with a local build of the latest version 0.6.09.

Here's the redacted script:

# Script to backup $HOME

export PASSPHRASE="<passphrase>"

duplicity -v 9 --ssh-options="-oIdentityFile=/home/linda/.ssh/id_dsa"
/home/linda scp://linda@<remote server>//home2/linda


reply via email to

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