duplicity-talk
[Top][All Lists]
Advanced

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

Re: [Duplicity-talk] Auto ignores archive dir?


From: Chris Poole
Subject: Re: [Duplicity-talk] Auto ignores archive dir?
Date: Mon, 29 Nov 2010 17:00:35 +0000

In the end I've realised that the exclude-filelist way is the best way
for me to go anyway. But thanks! I'm using zsh with extended globbing,
so it could well have been messing things up. Although saying that, my
script was running under bash, so I'm not sure that's it.

Sideline issue:

I started a backup, with verbosity 5, and it went through so far with
A ... to add a load of files.

Then it uploaded vol1.difftar.gpg, then went to the next lump of
files, etc. All very well.

I had to cancel the backup though. Upon starting again, it told me it
was going to resume from block xxx of the last volume, very well, but
then listed all the files it's already been though with "A ... "
syntax (though not uploading them, just listing them).

This is normal, right? It's just saying that it's adding or added
them, and telling me. It feels like it should print "U ... " for files
it's already uploaded.

On Mon, Nov 29, 2010 at 9:33 AM,  <address@hidden> wrote:
> You would have to properly escape them like
>
> dirs="\"dir 1\" dir2 "
>
> or the other way around
>
> dirs="dir\ 1 dir2"
>
> ..ede/duply.net
>
>
> On 29.11.2010 09:42, Richard Scott wrote:
>>
>> ah, but what happens if you have a directory with a space in it...
>> this will break the "for dir" loop ;-)
>>
>> Rich
>>
>> On Mon, 29 Nov 2010 05:09:58 +0100, John Soros <address@hidden> wrote:
>>>
>>> By the way, just for the record:
>>> I have a working script running, but to do the same thing as you did i
>>> had to turn off the shell's globbing:
>>> ==snip==
>>> #disable filename globbing
>>> set -f
>>> #build up the list of files/directories to exclude
>>> if [ -z $EXCLUDECMD ]; then
>>> EXCLUDECMD=""
>>> fi
>>> for dir in $EXCLUDEDIRS; do
>>> EXCLUDECMD="${EXCLUDECMD} --exclude $dir/**"
>>> done
>>>
>>> duplicity incremental ...
>>>
>>> #re-enable filename globbing
>>> set +f
>>> ==snip==
>>>
>>> HTH
>>>
>>>
>>> On Wed, 24 Nov 2010 17:01:35 +0000
>>> Chris Poole <address@hidden> wrote:
>>>
>>>> Just one more thing then. I'm not sure why this isn't working,
>>>> perhaps you do?
>>>>
>>>> DRIVENAME='offsite1'
>>>> INCLUDES=''
>>>> EXCLUDES="--exclude ~/.cache --exclude ~/Library/Caches --exclude
>>>> ~/Dropbox --exclude ~/test --exclude ~/src --exclude ~/Downloads
>>>> --exclude ~/Public --exclude ~/Sites --exclude '**/.DS_Store'"
>>>>
>>>> duplicity $INCLUDES $EXCLUDES ~/
>>>> "file:///Volumes/$DRIVENAME/backup/"
>>>>
>>>> I get the message:
>>>>
>>>> Fatal Error: The file specification
>>>> ~/.cache
>>>> cannot match any files in the base directory
>>>> /Users/Chris
>>>>
>>>> Now, I can use the glob **, to give **/.cache in the EXCLUDES
>>>> variable, but then won't this match any .cache directory, regardless
>>>> of depth? (I just want to match the ~/.cache directory explicitly).
>>>>
>>>> Thanks.
>>>>
>>>> _______________________________________________
>>>> Duplicity-talk mailing list
>>>> address@hidden
>>>> http://lists.nongnu.org/mailman/listinfo/duplicity-talk
>>>
>>>
>>> _______________________________________________
>>> Duplicity-talk mailing list
>>> address@hidden
>>> http://lists.nongnu.org/mailman/listinfo/duplicity-talk
>>
>>
>> _______________________________________________
>> Duplicity-talk mailing list
>> address@hidden
>> http://lists.nongnu.org/mailman/listinfo/duplicity-talk
>
> _______________________________________________
> Duplicity-talk mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/duplicity-talk
>



reply via email to

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