duplicity-tracker
[Top][All Lists]
Advanced

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

[Duplicity-tracker] [patch #6790] Add --exclude-if-exists


From: Cristian KLEIN
Subject: [Duplicity-tracker] [patch #6790] Add --exclude-if-exists
Date: Thu, 26 Mar 2009 08:32:41 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; fr; rv:1.9.0.7) Gecko/2009030422 Ubuntu/8.10 (intrepid) Firefox/3.0.7

Follow-up Comment #2, patch #6790 (project duplicity):

First, sorry for the bad indents. I relied on Python's pickiness to make sure
indentation matched. :D

Related to the patch, it has the same purpose as the „--exclude-if-present
filename” from rdiff-backup. (Why the name changed from „present” to
„exists” has to do something with my memory degradation and is not
deliberate.)

The idea is the following: instead of maintaining an exclude / include list
with all the things you want to back up, just place a file (say
„.nobackup”) in every folder you don't want to back up, then run
„duplicity --exclude-if-exists .nobackup”.

This patch integrates very naturally in the include / exclude framework of
duplicity. When --exclude-if-exists is parsed on the command-line, a selection
function is added in the usual manner. For every path it receives as input,
the selection function will check whether „path.append(filename).exists()”
is true. If so, the path will be excluded.


    _______________________________________________________

Reply to this item at:

  <http://savannah.nongnu.org/patch/?6790>

_______________________________________________
  Message posté via/par Savannah
  http://savannah.nongnu.org/





reply via email to

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