flaupretre / sysfunc

A sysadmin-oriented shell library
GNU Lesser General Public License v3.0
81 stars 17 forks source link

Implement a better file save mechanism #4

Closed flaupretre closed 10 years ago

flaupretre commented 10 years ago

Save every versions, not only one.

Save in a different directory (create a 'save' tree under /var, can contain metadata info on save date, etc...). Main reason is that saving file in its original directory can lead to problems (for instance when file is in a conf.d/yum.repos.d/php.d -like directory).

flaupretre commented 10 years ago

Implemented in version 1.1.23 (regular files and symlinks only, at the moment).

New save system records every versions, not just the 1st one, and maintains an index of saved files including file metadata (mtime, owner, mode...) + save time + data checksum. Wiil allow to display save history, restore files, check saved data integrity, and more...