https://github.com/doomsower/backup-gitignored
Small utility to back up .gitignored files (secrets, configs, keys, etc.) in zip archive. When anything else is an overkill.
https://github.com/doomsower/backup-gitignored
backup git gitignore ignore secrets
Last synced: about 2 months ago
JSON representation
Small utility to back up .gitignored files (secrets, configs, keys, etc.) in zip archive. When anything else is an overkill.
- Host: GitHub
- URL: https://github.com/doomsower/backup-gitignored
- Owner: doomsower
- License: mit
- Created: 2021-08-30T12:22:01.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2021-10-11T07:23:40.000Z (over 4 years ago)
- Last Synced: 2025-08-09T02:22:33.769Z (11 months ago)
- Topics: backup, git, gitignore, ignore, secrets
- Language: JavaScript
- Homepage:
- Size: 107 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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`
```bash
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 output archive name (default: "backup-ignored.zip")
-i, --ignore-file 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