Backup and Update Tool - Node.Js module for backuping, restoring and updating files with Yandex.Disk.
npm install esf-butsh
$ npm install esf-but
`Usage
1. Configure BUT with `butfile.json`.
- Configure 7-zip archiver:
- modify `zipExecutable` parameter to set custom path to 7-zip executable;
- on Windows live default to use bundled `vendor/7z/7za.exe`;
- remove `zipExecutable` parameter to use default node-7z setting: 7za has to be at PATH or at the same directory with package.json.
- Set paths to be back-upped, restored, updated to use according functionality and a temporary path.
- Set Yandex.Disk access token to use backup functionality.
2. Use API:| Command | Description |
|--- |--- |
|
`download` | Downloads files from locations, specified in `butfile.json` at `update.paths`. |
| `backup` | Backups files to Yandex.Disk, using settings, specified in `butfile.json` at `backup`. |
| `restore` | Restores backup files. |
| `sendFilesToYaDisk` | Sends files to Yandex.Disk from temporary directory, specified in `butfile.json` at `update.paths``, but without pre-archiving them. |