Skip to content
Snippets Groups Projects
Verified Commit 64380f0f authored by nfontrod's avatar nfontrod
Browse files

README.qmd: update

parent b8223998
No related branches found
No related tags found
No related merge requests found
......@@ -185,8 +185,9 @@ Not: if gblk pre-co says that you might lose data compared to the saved version
Git hooks are commands that can be automatically executed before and after some git commands. They are defined in the repository `.git/hooks`.
gblk can create two hooks:
* `post-commit` hook that executes `gblk commit` after every git commit
* `post-checkout` hook that execute:
- `post-commit` hook that executes `gblk commit` after every git commit
- `post-checkout` hook that execute:
1. `git co` to revert back to the last commit as a pre-checkout hooks doesn't exits.
2. `gblk pre-co` to be sure to not lose any data before the actual chekout
3. `git checkout` do the actual chekout
......@@ -572,8 +573,8 @@ gblk config add <KEY> <VALUE> [--global]
```
Where `KEY` corresponds to a `prune` command argument. You can choose from:
- keep_within, keep_last, keep_minutely, keep_hourly, keep_daily
- keep_weekly, keep_monthly, keep_yearly, prefix, glob_archives, save_space
- `keep_within`, `keep_last`, `keep_minutely`, `keep_hourly`, `keep_daily`, `keep_weekly`, `keep_monthly`, `keep_yearly`, `prefix`, `glob_archives`, `save_space`
And `VALUE` corresponds to the value to associate with the key
Check [borg documentation](https://borgbackup.readthedocs.io/en/stable/usage/prune.html) to know what those arguments do. You can also run the command `gblk prune --help` to see a description of those arguments.
......@@ -676,6 +677,7 @@ The way of duplicating and storing an archive folder is not the way borg was int
## Remotes
In order to be able to share your archived results in the `.borg` folder, you use remotes like in git. Remotes can be defined *globally* or *locally*:
- *local* remotes are only defined for a given project
- *global* remotes are available for any gblk projects. It can be usefull if you often want to store your gblk results on a same location.
......@@ -885,7 +887,7 @@ Here are the steps that the pull command execute:
8. Removes borg manifest timestamp and the cache associated to the current project archive folder.
::: {.callout-note}
The pull command saves the inital content of the `.borg` folder inside the `.tmp` directory. **Remember to delte it if the pull is sucessful
The pull command saves the inital content of the `.borg` folder inside the `.tmp` directory. **Remember to delete it if the pull is sucessful**
:::
# Gblk restore command
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment