2.0.2 • Published 2 years ago

sqlite3-incremental-backup v2.0.2

Weekly downloads
-
License
GPL-3.0-or-later
Repository
github
Last release
2 years ago

sqlite3-incremental-backup

This Module can be used to incrementally backup your database which will reduce the needed Backup size.

Installation

For Installation Please Use npm command as follows: npm install sqlite3-incremental-backup

Example

For Simple use case, use as follows :

import {backup, restore} from './sqlite3-incremental-backup';
const srcFile = 'source.db';
const targetFile = 'target.db';
const objectDirectory = "objects"
const snapshotName = 'snapshot1.txt'; //Can be any arbitrary name. MUST BE UNIQUE FOR EACH SNAPSHOT OTHERWISE THE PREVIOUS WILL BE LOST
backup(srcFile, snapshotName, objectDirectory); // For Backup
restore(snapshotName, targetFile, objectDirectory); // For Restoration
backup(srcFile, snapshotName, objectDirectory, () => restore(snapshotName, targetFile, objectDirectory)); // For Backup and immediate restoration, only for testing

Note : Both backup and restore functions are asynchronous.

2.0.2

2 years ago

2.0.1

2 years ago

2.0.0

2 years ago

1.1.1

3 years ago

1.1.0

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago