Skip to content

Commit

Permalink
more cleanup (forgot to commit and push)
Browse files Browse the repository at this point in the history
  • Loading branch information
System Administrator committed Oct 13, 2010
1 parent cf45245 commit 20b85b3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions backup.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ def Run( self, recursed = False ):

option_string = []
for e in self.exclude:
option_string += [ '--exclude', e ]
option_string.append( '--exclude=%s' % e )
if ( self.shortFilenames ):
option_string.append( '--short-filenames' )
if ( self.backup.config.has_key('duplicity_args') ):
Expand All @@ -139,9 +139,9 @@ def Run( self, recursed = False ):
# additional difficulty: can only do this if the directory is actually in the path
if ( tempdir.find( self.root ) != -1 ):
if ( tempdir is None ):
option_string += [ '--exclude', '/tmp' ]
option_string.append( '--exclude=/tmp' )
else:
option_string += [ '--exclude', tempdir ]
option_string.append( '--exclude=%s' % tempdir )

cmd = [ self.backup.duplicity, backup_type, '--asynchronous-upload' ]
cmd += option_string
Expand Down

0 comments on commit 20b85b3

Please sign in to comment.