-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Package: duplicity
Version: 0.6.08b-1+b1
Severity: important


When the remote backup dir is on a read-only filesystem, duplicity does
not report any errors. It does not create the files (of course), but
reports success and exits with 0

However, if GPG is not used (--no-encryption), it does print warnings
and exits with 1.


Steps to reproduce:

On host 1:
    ~$ md /tmp/ro
    ~$ sudo mount -t tmpfs tmpfs /tmp/ro -o ro
    ~$ > /tmp/ro/foo
    bash: /tmp/ro/foo: Read-only file system
    ~$

On host 2:
    ~$ md -p /tmp/data/foo
    ~$ touch /tmp/data/foo/{1..9}
    ~$ duplicity --encrypt-key A3F6B1C4 /tmp/data scp://horst//tmp/ro
    Local and Remote metadata are synchronized, no sync needed.
    Last full backup date: none
    No signatures found, switching to full backup.
    --------------[ Backup Statistics ]--------------
    StartTime 1284478298.21 (Tue Sep 14 17:31:38 2010)
    EndTime 1284478298.24 (Tue Sep 14 17:31:38 2010)
    ElapsedTime 0.03 (0.03 seconds)
    SourceFiles 11
    SourceFileSize 8192 (8.00 KB)
    NewFiles 11
    NewFileSize 8192 (8.00 KB)
    DeletedFiles 0
    ChangedFiles 0
    ChangedFileSize 0 (0 bytes)
    ChangedDeltaSize 0 (0 bytes)
    DeltaEntries 11
    RawDeltaSize 0 (0 bytes)
    TotalDestinationSizeChange 1344 (1.31 KB)
    Errors 0
    -------------------------------------------------

    ~$ echo $?
    0
    ~$

On host 1:
    ~$ ll /tmp/ro/
    total 0
    ~$

However, on host 2:
    Synchronizing remote metadata to local cache...
    Copying duplicity-full-signatures.20100914T153132Z.sigtar to local
    cache.
    Remote file or directory does not exist in command='get "/tmp/ro
    /duplicity-full-signatures.20100914T153132Z.sigtar.gz"
    "/tmp/duplicity-TxAQKj-tempdir/mktemp-7f6hm0-2"'
    Running 'sftp  -oServerAliveInterval=15 -oServerAliveCountMax=1
    horst' failed (attempt #1)
    ...


Thanks,
Marian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkyPl5sACgkQyoukcaP2scSFVACgqEU6RAbNtEnkxZfW7LuYZ0n+
kBcAmwRd+swOHqKBYGrDptuDQgNdC22m
=Srs4
-----END PGP SIGNATURE-----



-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to