diff options
author | Lars Wirzenius <liw@liw.fi> | 2015-07-10 13:39:26 +0300 |
---|---|---|
committer | Lars Wirzenius <liw@liw.fi> | 2015-07-10 13:39:26 +0300 |
commit | 7166cf31347cdaa6bc333ccde1273c477235d6f8 (patch) | |
tree | 67cbf02ba7147a723698795b42080b65e75a70c0 | |
parent | 33afd1fd235158f4128559338ed9ebd963fca5ee (diff) | |
download | obnam-7166cf31347cdaa6bc333ccde1273c477235d6f8.tar.gz |
Backup metadata before backing up file content
This is in addition to backing it up after the file content. It's
necessary to back it up afterwards so that the whole file checksum is
set. Backing metadata up before the file content is necessary so that
the file type is set before a checkpoint generation happens, due to
changes required by Green Albatross.
-rw-r--r-- | obnamlib/plugins/backup_plugin.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/obnamlib/plugins/backup_plugin.py b/obnamlib/plugins/backup_plugin.py index 5f9d694c..8acd8f98 100644 --- a/obnamlib/plugins/backup_plugin.py +++ b/obnamlib/plugins/backup_plugin.py @@ -569,6 +569,7 @@ class BackupPlugin(obnamlib.ObnamPlugin): # thinking. self.progress.backed_up_count += 1 + self.backup_metadata(pathname, metadata) if stat.S_ISREG(metadata.st_mode): assert metadata.md5 is None metadata.md5 = self.backup_file_contents(pathname, metadata) |