https://github.com/fpierre/nodejs-backup-checker
Easily verify your backup files
https://github.com/fpierre/nodejs-backup-checker
backup cli filesystem javascript nodejs
Last synced: 8 months ago
JSON representation
Easily verify your backup files
- Host: GitHub
- URL: https://github.com/fpierre/nodejs-backup-checker
- Owner: FPierre
- License: mit
- Created: 2017-11-29T16:44:36.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2017-12-08T15:08:13.000Z (over 8 years ago)
- Last Synced: 2025-03-28T14:39:23.780Z (12 months ago)
- Topics: backup, cli, filesystem, javascript, nodejs
- Language: JavaScript
- Homepage:
- Size: 121 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Node.js Backup Checker [](https://travis-ci.org/FPierre/nodejs-backup-checker) [](https://coveralls.io/r/fpierre/nodejs-backup-checker/?branch=master)
Read-only verification: it does not change your backup content.
## Installation
```bash
$ npm install -g nodejs-backup-checker
```
## Usage
Generate the configuration file for an backup file:
```bash
$ nodejs-backup-checker generate /path/to/backup.tar.gz
```
Compare backup file with expected content stored in configuration file:
```bash
$ nodejs-backup-checker compare /path/to/backup.json
```
Example of configuration file:
```json
{
"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 `compare` command
* Check config file integrity before compare
* Write log file to report compare
* `generate` command must take `-c` option to provide configuration file path
* Improve test isolation (related to filesystem)