file-backup

1.0.1 • Public • Published

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

Param Type Description
file string The path to the file to back up
levels number The number of backups to keep
[callback] function Standard error-first, if that's how you roll

Readme

Keywords

Package Sidebar

Install

npm i file-backup

Weekly Downloads

0

Version

1.0.1

License

MIT

Unpacked Size

3.83 kB

Total Files

4

Last publish

Collaborators

  • echicken