0.3.5 • Published 10 years ago
rbak v0.3.5
rbak 
backup your files, respecting .gitignores
Rbak is a cumulative, time-based backup thingy which respects .gitignores so you don't end up with node_modules folders all over the place.
Can be used globally or required as a module
Installing
Stand alone
npm install -g rbakAs a module
npm install --save rbakUsage
Stand alone
rbak [command] [options]As a module
var rbak = require('rbak');
rbak.[command]({
[options]
});Commands
backuplistrestore
Options
--base - Where your backup lives--dir - Directory to backup or directory in backup to list/restore--ignore - Comma seperated list of files/directories to ignore globally--recursive - true/false, defaults to true--respect-gitignore - true/false, defaults to true
Examples
Backup DEV dir into a folder called backup ignoring a bunch of files
rbak backup --dir=DEV --base=backup --ignore=node_modules,.git,bower_components,.svn,*.exe,*.bin,*.dat,*.log,*.0,*.bvh,*.ddp,
Unreal*List contents of a backed up folder
rbak list --base=D:/backup --dir=github/rbakRestore files from a backed up folder
rbak restore --base=D:/backup --dir=github/rbak --out=D:/rbakKnown issues
Gets upset about really big files, make sure you ignore them