Browse files

more cleanup (forgot to commit and push)

  • Loading branch information...
1 parent cf45245 commit 20b85b32f9d86d223650e0b73830a0e139647d2c System Administrator committed Oct 13, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 backup.py
View
6 backup.py
@@ -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') ):
@@ -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

0 comments on commit 20b85b3

Please sign in to comment.