duplicity-talk
[Top][All Lists]
Advanced

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

Re: [Duplicity-talk] Re: Duplicity using more space than needed?


From: Fabiano Bonin
Subject: Re: [Duplicity-talk] Re: Duplicity using more space than needed?
Date: Thu, 28 Jun 2007 16:16:14 -0300

Look at this test case. I think it reproduces the problem.

First, run the script 'testcase_script.sh' attached to this message.
It will create the following files in /var/tmp/testcase:

snapshot1 (48MB)
snapshot2 (48MB)
snapshot1.sig (287KB)
snapshot2.delta (20MB)

Comment: for each block of 5000 bytes of snapshot1, i changed the last
25 bytes in snapshot2. All bytes where generated randomly.

snapshot2.delta is the uncompressed rdiff delta file between snapshot1
and snapshot2.

Then, run the following commands:

==============================
export PASSPHRASE=testcase

rm /var/tmp/testcase_source/* -rf
rm /var/tmp/testcase_destination/* -rf

cp snapshot1 /var/tmp/testcase_source/snapshot

duplicity /var/tmp/testcase_source file:///var/tmp/testcase_destination

du --max-depth 1 -h /var/tmp/testcase_destination
        
rm -f /var/tmp/testcase_source/snapshot

cp snapshot2 /var/tmp/testcase_source/snapshot

duplicity /var/tmp/testcase_source file:///var/tmp/testcase_destination

du --max-depth 1 -h /var/tmp/testcase_destination
==============================

Here, in the second pass, the destination size change is 47.9MB. The
last 'du' command will show the folder /var/tmp/testcase_destination
with 97MB.

Regards,

Fabiano.

Attachment: testcase_script.sh
Description: Bourne shell script


reply via email to

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