1.0.1 • Published 6 years ago

file-backup v1.0.1

Weekly downloads
4
License
MIT
Repository
github
Last release
6 years ago

file-backup

Makes rotating file.0, file.1 ... backups in the same directory (node.js)

file_backup(file, levels, callback) ⇒ Promise

Makes rotating file.0, file.1 ... backups in the same directory

Kind: global function
Returns: Promise - Resolves on success, rejects on some fs-level error

ParamTypeDescription
filestringThe path to the file to back up
levelsnumberThe number of backups to keep
callbackfunctionStandard error-first, if that's how you roll