summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2010-07-11 11:37:57 +1200
committerLars Wirzenius <liw@liw.fi>2010-07-11 11:37:57 +1200
commit1f21a4f9cd951e5f73ba9a0edd771d6ad793fc42 (patch)
tree958edb919384d5b8906a899e987c4ad935c159d7
parentfba60112786781c6d334f5fcc56d352fd45e1141 (diff)
downloadobnam-1f21a4f9cd951e5f73ba9a0edd771d6ad793fc42.tar.gz
Fix backup plugin to use bytes_written.
-rw-r--r--obnamlib/plugins/backup_plugin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/obnamlib/plugins/backup_plugin.py b/obnamlib/plugins/backup_plugin.py
index b6cde4c4..ba18b539 100644
--- a/obnamlib/plugins/backup_plugin.py
+++ b/obnamlib/plugins/backup_plugin.py
@@ -93,13 +93,13 @@ class BackupPlugin(obnamlib.ObnamPlugin):
self.app.hooks.call('error-message',
'Could not back up %s: %s' %
(pathname, e.strerror))
- if storefs.written >= self.app.config['checkpoint']:
+ if storefs.bytes_written >= self.app.config['checkpoint']:
logging.debug('Making checkpoint')
self.backup_parents('.')
self.store.commit_host(checkpoint=True)
self.store.lock_host(hostname)
self.store.start_generation()
- storefs.written = 0
+ storefs.bytes_written = 0
self.backup_parents('.')