duplicity-talk
[Top][All Lists]
Advanced

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

Re: [Duplicity-talk] (Option to) Cache retrieved volumes between (fetchi


From: Tim Riemenschneider
Subject: Re: [Duplicity-talk] (Option to) Cache retrieved volumes between (fetching/restoring) runs locally?!
Date: Fri, 19 Nov 2010 12:12:33 +0100
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.15) Gecko/20101030 Iceowl/1.0b1 Icedove/3.0.10

Am 19.11.2010 11:25, schrieb address@hidden:
> On 18.11.2010 21:38, Daniel Hahler wrote:
>
>
>>
>>> Indeed it doesn't. I always expected duplicity to work with
>>> exclude/include also on restoring. It doesn't. Currently you can
>>> obviously only restore all or one file/folder. For the latter. It is
>>> the folder only without it's contents ;).
>>
>>
>> While I have not verified it (and don't know if you're joking), but it
>> seemed like the contents of a folder gets restored completely - at least
>> the files contained therein.
>
> _I tried it and the resultr was an empty folder_. No joke here.
Was that with duply or duplicity itself? With duplicity, it works as
expected:

address@hidden:/tmp$ mkdir test-source
address@hidden:/tmp$ mkdir test-source/foldera
address@hidden:/tmp$ mkdir test-source/folderb
address@hidden:/tmp$ mkdir test-source/folderb/suba
address@hidden:/tmp$ mkdir test-source/folderb/subb
address@hidden:/tmp$ echo "Testfile" > test-source/foldera/test1
address@hidden:/tmp$ echo "Testfile" > test-source/foldera/test2
address@hidden:/tmp$ echo "Testfile" > test-source/foldera/test3
address@hidden:/tmp$ echo "Testfile" > test-source/foldera/test4
address@hidden:/tmp$ echo "Testfile" > test-source/folderb/test1
address@hidden:/tmp$ echo "Testfile" > test-source/folderb/suba/test1
address@hidden:/tmp$ echo "Testfile" > test-source/folderb/suba/test2
address@hidden:/tmp$ echo "Testfile" > test-source/folderb/suba/test3
address@hidden:/tmp$ echo "Testfile" > test-source/folderb/subb/test1
address@hidden:/tmp$ echo "Testfile" > test-source/folderb/subb/test2
address@hidden:/tmp$ echo "Testfile" > test-source/folderb/subb/test3
address@hidden:/tmp$ duplicity --no-encryption test-source
file:///tmp/test-backup
Local and Remote metadata are synchronized, no sync needed.
Last full backup date: none
No signatures found, switching to full backup.
--------------[ Backup Statistics ]--------------
StartTime 1290164682.70 (Fri Nov 19 12:04:42 2010)
EndTime 1290164682.72 (Fri Nov 19 12:04:42 2010)
ElapsedTime 0.02 (0.02 seconds)
SourceFiles 16
SourceFileSize 20579 (20.1 KB)
NewFiles 16
NewFileSize 20579 (20.1 KB)
DeletedFiles 0
ChangedFiles 0
ChangedFileSize 0 (0 bytes)
ChangedDeltaSize 0 (0 bytes)
DeltaEntries 16
RawDeltaSize 99 (99 bytes)
TotalDestinationSizeChange 401 (401 bytes)
Errors 0
-------------------------------------------------

address@hidden:/tmp$ duplicity list-current-files file:///tmp/test-backup
Local and Remote metadata are synchronized, no sync needed.
Last full backup date: Fri Nov 19 12:04:42 2010
Fri Nov 19 12:01:26 2010 .
Fri Nov 19 12:01:59 2010 foldera
Fri Nov 19 12:01:56 2010 foldera/test1
Fri Nov 19 12:01:57 2010 foldera/test2
Fri Nov 19 12:01:58 2010 foldera/test3
Fri Nov 19 12:01:59 2010 foldera/test4
Fri Nov 19 12:02:13 2010 folderb
Fri Nov 19 12:02:22 2010 folderb/suba
Fri Nov 19 12:02:20 2010 folderb/suba/test1
Fri Nov 19 12:02:21 2010 folderb/suba/test2
Fri Nov 19 12:02:22 2010 folderb/suba/test3
Fri Nov 19 12:03:21 2010 folderb/subb
Fri Nov 19 12:03:19 2010 folderb/subb/test1
Fri Nov 19 12:03:20 2010 folderb/subb/test2
Fri Nov 19 12:03:21 2010 folderb/subb/test3
Fri Nov 19 12:02:13 2010 folderb/test1
address@hidden:/tmp$ mkdir test-restore
address@hidden:/tmp$ duplicity restore --file-to-restore=folderb
file:///tmp/test-backup test-restore/
Local and Remote metadata are synchronized, no sync needed.
Last full backup date: Fri Nov 19 12:04:42 2010
address@hidden:/tmp$ ls -l test-restore/
insgesamt 12
drwxr-xr-x 2 tim tim 4096 19. Nov 12:02 suba
drwxr-xr-x 2 tim tim 4096 19. Nov 12:03 subb
-rw-r--r-- 1 tim tim    9 19. Nov 12:02 test1
address@hidden:/tmp$ ls -lR test-restore/
test-restore/:
insgesamt 12
drwxr-xr-x 2 tim tim 4096 19. Nov 12:02 suba
drwxr-xr-x 2 tim tim 4096 19. Nov 12:03 subb
-rw-r--r-- 1 tim tim    9 19. Nov 12:02 test1

test-restore/suba:
insgesamt 12
-rw-r--r-- 1 tim tim 9 19. Nov 12:02 test1
-rw-r--r-- 1 tim tim 9 19. Nov 12:02 test2
-rw-r--r-- 1 tim tim 9 19. Nov 12:02 test3

test-restore/subb:
insgesamt 12
-rw-r--r-- 1 tim tim 9 19. Nov 12:03 test1
-rw-r--r-- 1 tim tim 9 19. Nov 12:03 test2
-rw-r--r-- 1 tim tim 9 19. Nov 12:03 test3
address@hidden:/tmp$






reply via email to

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