Make writing persistence.conf.bak more robust
Originally created by @intrigeri on #16568 (Redmine)
… as suggested on #16461 (comment 12566):
- I’ve checked and indeed, it would make sense to
sync
that file after copying. - The
chattr
part is not needed as long as 1. t-p-ssync
’s the file; 2. t-p-s is the only component that modifies that file (which is the case currently). But I guess it wouldn’t hurt and who knows, something else might start modifying that file at some point. Let’s do it.
Feature Branch: t-p-s:bugfix/16568-more-robust-backup, bugfix/16568-more-robust-backup
Parent Task: #10976 (closed)
Related issues
- Related to #14544 (closed)
- Related to #16461 (closed)
Edited by intrigeri