Makes a backup copy of the content file.

Before overwriting the existing content file, rename it
adding the .backup extension, but only if such content file
was read and validated.
This commit is contained in:
Andrea Mazzoleni 2014-06-13 18:23:24 +02:00
parent 68042d528d
commit da08ca4497
8 changed files with 49 additions and 16 deletions

7
TODO
View file

@ -5,13 +5,6 @@ This is the list of TODO items for SnapRAID.
- Next
* Keep backup copies of the content file.
Like snapraid.content.1, snapraid.content.2, snapraid.content.3 and so on.
Note that the rotation should happen only one time for each sync,
and not for intermediate sync write.
* Auto exclude lock files.
* Measures the time waited in blocking syscall for each disk,
and prints stats of the disk speeds when the command finish,
or when it's running.