Product
Socket Now Supports uv.lock Files
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Intuitive lightweight tool for easy and seamless backup of your files into Git repository
Gbck is an intuitive lightweight tool for an easy and seamless backup of your files e.g. various config files. It's built to be an easy and flexible as possible. All you have to do is just to create the config file containing all files (and/or commands' stdouts) you desire to back up.
👉 Read gbck— an easy way how to back up your dotfiles on Medium.com
npm i -g gbck
Requirement: You need to have Node 7.5+ and Git installed on your machine
Usage: gbck [projects]
Options:
-i, --init Create new project
-f, --force Along with -i create new project even if already exists
-l, --list List all project sorted by its latest updates
-v, --version Print version
-h, --help Show this help
--auto-commit Don't ask for commit message and use default one
Note: gbck stores every information under ~/.gbck
For a creation of a new project just run gbck --init
.
You project will be saved inside ~/.gbck/<project-name>/
config
README.md
.vsc
- the actual Git repository folderIf you use --force
or -f
option you will be able to rewrite already existing project.
Now it's time to configure it, so open a ~/.gbck/<project-name>/config
and go on.
Check out this example configuration 💪
config
has to be valid JSON:
url: string
, readme: string
, entities: Array
are mandatory.syncConfig: boolean
is optional and defaults to true.branch: string
is optional and defaults to "master".next, entities
has to be an array:
If the item is type of string it has to point to file or directory if so the file or directory will by backed up.
If the item is a type of array, the first item of that array is the final file name and the second item is the command which will be run and its stdout will be backed up into this file.
If the item is a type of object. The i:string
and o:string
property are mandatory, i
is input file / folder, o
is output name. There could be also options: object
property defined. Possible options are:
symlinks: boolean
, defaults to trueexclude: Array<glob>
defaults to []include: Array<glob>
defaults to []{
"url": "git@github.com:jukben/dotfiles.git",
"readme": "README.md",
"syncConfig": false,
"entities": [
{
"i": "~/.config/fish",
"o": ".config/fish",
"options": {
"symlinks": false,
"exclude": ["fishd.dca90476d2cf"]
}
},
{
"i": "~/Library/Application Support/Code/User/settings.json",
"o": "vscode/settings.json"
},
"~/.tmux.conf",
"~/.gitignore",
"~/.vimrc",
["brew-cask.txt", "brew cask list"]
]
}
Run gbck --list
to see a list of available projects even with information when where lastly updated.
For back up all project just simply run gbck
. If you want to back up particular project run e.g. gbck dotfiles private-dotfiles
If you run this command along with --auto-commit
you won't be asked for a commit message. This could be good for some types of automatization.
Do you miss something? Open an issue, I'd like to hear more about your use case. You can also fork this repository run yarn
and send a PR! ❤️
Currently, tests are missing. 😥 But you can help me to fix this!
The MIT License (MIT) 2018 - Jakub Beneš
FAQs
Intuitive lightweight tool for easy and seamless backup of your files into Git repository
The npm package gbck receives a total of 5 weekly downloads. As such, gbck popularity was classified as not popular.
We found that gbck demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.
Security News
PEP 770 proposes adding SBOM support to Python packages to improve transparency and catch hidden non-Python dependencies that security tools often miss.