Clibato: CLI Backup Tool
Clibato is a simple backup/restore tool. I created it to backup and restore
my .dot files, and to have fun with Python 🐍.
The name Clibato stands for (CLI) (ba)ckup (to)ol.
Quick start
pip install clibato # Installation
clibato init --config=~/.clibato.yml
vim ~/.clibato.yml # Configuration (required)
clibato backup # Perform backup
clibato restore # Restore last backup
Installation
Clibato can easily be installed using pip.
pip install clibato
Once installed, you can run it as clibato or python -m clibato.
Configuration
To use the tool, start by creating a configuration file. The ~/.clibato.yml
will automatically be detected so, it is the recommended location. However,
you can place your configuration anywhere.
clibato init --config=~/.clibato.yml
The generated file contains comments to help you with the configuration.
Auto-detection
If --config is not specified, the following locations will be searched:
- The directory from which the command was issued, i.e.
./.clibato.yml. - The user's home directory, i.e.
~/.clibato.yml.
If your configuration is not in one of those locations, you can use the
--config flag with other clibato commands.
Suggestions
- Place your config in
~/.clibato.yml.- This way, you don't have to specify
--configall the time.
- This way, you don't have to specify
- Include your
.clibato.ymlin your backup.
Usage
After you've installed and configured the tool, here's how you use it.
Backup
To perform a backup, run the following command:
clibato backup
Restore
To restore the last backup, run the following command:
clibato restore
Examples
For detailed documentation, and more examples, see .clibato.example.yml.
Backup to a directory
contents:
.bashrc:
.clibato.yml:
destination:
type: 'directory'
path: '~/backup/clibato'
Backup to a Git repository
contents:
.bashrc:
.clibato.yml:
destination:
type: 'repository'
path: '~/backup/clibato'
remote: 'git@gitlab.com:jigarius/dotfiles.git'
branch: 'main'
Metadata
Release files for clibato 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| clibato-1.0.1.tar.gz | 7.0 kB | Without provenance | Details for clibato-1.0.1.tar.gz |
Release files / clibato-1.0.1.tar.gz
| Download URL | clibato-1.0.1.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
f5af145f4881322dc0ba81db33823b573aab1ccb835aee2df618365badc1dda7
|
|
BLAKE2b-256 checksum How to use checksums |
69ebaf6382bbcba7b9fdfcfed4652fd5c03c20888da86d9e9b341d29546325e9
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/53.0.0 requests-toolbelt/0.9.1 tqdm/4.57.0 CPython/3.7.10
|
Security for clibato 1.0.1
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.