Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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 (over 3 years ago)
- Default Branch: master
- Last Pushed: 2021-10-11T07:23:40.000Z (about 3 years ago)
- Last Synced: 2024-08-11T10:52:10.324Z (5 months ago)
- Topics: backup, git, gitignore, ignore, secrets
- Language: JavaScript
- Homepage:
- Size: 107 KB
- Stars: 0
- Watchers: 2
- 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 --helpUsage: 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