0.1.3 • Published 11 years ago
backy v0.1.3
Synopsis
This is a simple node package to backup your project's files to a .tar.gz archive, excluding files based on the project's .gitignore. Comments in the .gitignore file are ignored as well. Useful for projects using Composer, Bower or other package managers.
Installation
Note: the tar utility must be available on the host OS in additon to Node / NPM.
sudo npm install backy -gUsage
In a terminal in the root of your project, run:
backy
# RESULTS: {project}-{timestamp}.tar.gzExample
In the case of running the backy command in /home/awesomeonius/project all files/directories listed in the .gitignore:
> cd /home/awesomeonius/project
> backy
# RESULTS: /home/awesomeonius/project/project-{timestamp}.tar.gzOptions
The options below can be combined as required.
Show help
backy [ --help | -h | -? ]Specify the archive name:
backy archive-name.tar.gzPass paramaters to Tar command via json array
backy [ --config=[json array] | -c=[json array] ]Example:
backy -c='["--no-recursion", "--exclude-cache"]'Use escape quotes for complicated parameters:
backy -c='[ "--exclude-cache", "--exclude-tag=\".sass-sache\""]'Disable Gzip
backy [ --nogzip | -nz ]Force Overwriting of Backup Archive
backy [ --force | -f ]Test run without archiving
backy [ --test | -t ]Get version
backy [ -- version | -v ]License
Licensed under the MIT License (MIT)
Copyright (c) 2014 Brandon Fenning