Sync with last changes in backup_rsync.py

This commit is contained in:
Jérémie Courrèges-Anglas 2015-05-15 12:16:14 +02:00
parent 8711610053
commit e3e58d8963

View File

@ -200,8 +200,8 @@ class backup_rsync_btrfs(backup_generic):
elif (returncode == 23): elif (returncode == 23):
self.logger.warning("[" + self.backup_name + "] unable so set uid on some files") self.logger.warning("[" + self.backup_name + "] unable so set uid on some files")
elif (returncode != 0): elif (returncode != 0):
self.logger.error("[" + self.backup_name + "] shell program exited with error code ") self.logger.error("[" + self.backup_name + "] shell program exited with error code ", str(returncode))
raise Exception("[" + self.backup_name + "] shell program exited with error code " + str(returncode), cmd) raise Exception("[" + self.backup_name + "] shell program exited with error code " + str(returncode), cmd, log[-512:])
else: else:
print cmd print cmd