backup-gitignored

1.2.0 • Public • Published

backup-gitignored

Small utility to back up .gitignored files (secrets, configs, keys, etc.) in zip archive. When anything else is an overkill.

Usage

Run npx backup-gitignored

npx backup-gitignored --help

Usage: backup-gitignored [options] [directory]

Small utility to back up .gitignored files

Arguments:
  directory                       Directory to get ignored files from, defaults to process.cwd()

Options:
  -v, --verbose                   Prints more information about what is being archived and where
  -o, --output <zipfile>          output archive name (default: "backup-ignored.zip")
  -i, --ignore-file <ignorefile>  File that contains minimatch patterns for files that should be ignored and not included in the backup. Put things like node_modules/ and dist/ here (default: ".backupignore")
  -d, --dry-run                   Does not create the actual archive
  -h, --help                      display help for command

Example of .backupignore file:

**/*.generated.*
**/__generated__
**/node_modules
**/Pods/
**/dist/
**/build/
**/.DS_Store
**/*.log

License

MIT

/backup-gitignored/

    Package Sidebar

    Install

    npm i backup-gitignored

    Weekly Downloads

    0

    Version

    1.2.0

    License

    MIT

    Unpacked Size

    7.2 kB

    Total Files

    4

    Last publish

    Collaborators

    • doomsower