Skip to content

node module for easily packing and extracting folders as tarballs, for web servers or local filesystem usage

License

Notifications You must be signed in to change notification settings

max-mapper/folder-backup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

folder-backup

NPM

Easily pack and extract folders as tarballs, for web servers or local filesystem usage.

var fbackup = require('folder-backup')

##API

fbackup.clone(remoteURL, options, cb)

makes HTTP request to remoteURL (which should be fbackup.serve and/or the .tar.gz of a fbackup.pack) and unpacks into options.path. default path is process.cwd()

you can also specify options.showProgress as either true or false (default is false) if you want to print progress messages to stdout

fbackup.unpack

the extract method exposed from the internal instance of the tar-fs module

fbackup.serve(dir, httpResponse, [cb])

function for mounting this module in an http API. streams fbackup.pack of dir to the httpResponse, calls optional cb when done

fbackup.pack

the pack method exposed from the internal instance of the tar-fs module

license

BSD

About

node module for easily packing and extracting folders as tarballs, for web servers or local filesystem usage

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published