Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

more cleanup (forgot to commit and push)

  • Loading branch information...
commit 20b85b32f9d86d223650e0b73830a0e139647d2c 1 parent cf45245
System Administrator authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 backup.py
6 backup.py
View
@@ -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
Please sign in to comment.
Something went wrong with that request. Please try again.