nodejs-backup-checker
v0.0.1
Published
Check your backup files
Readme
Node.js Backup Checker

Read-only verification: it does not change your backup content.
Installation
$ npm install -g nodejs-backup-checkerUsage
Generate the configuration file for an backup file:
$ nodejs-backup-checker generate /path/to/backup.tar.gzCompare backup file with expected content stored in configuration file:
$ nodejs-backup-checker compare /path/to/backup.jsonExample of configuration file:
{
"files": [
{
"access": "rwxrwxrwx",
"group": "pierre",
"path": "/home/pierre/backup.tar.gz",
"size": 100,
"user": "pierre",
"sha1": null
}
]
}| Field | Description | Required | Type | | :----: | -------------------------------- | :------: | :-----: | | access | Expected file access | true | string | | group | Expected owner group | true | string | | path | Absolute path to concerned file | true | string | | size | Minimum expected file size in Mo | false | integer | | user | Expected user name | true | string | | sha1 | TODO | false | string |
TODO
- sha1 for
comparecommand - Check config file integrity before compare
- Write log file to report compare
generatecommand must take-coption to provide configuration file path- Improve test isolation (related to filesystem)
