Backup-chan CLI
This is the command-line interface program for interacting with a Backup-chan server.
Installing
# The easy way
pip install backupchan-cli
# Installing from source
git clone https://github.com/Backupchan/cli.git backupchan-cli
cd backupchan-cli
pip install .
# Run directly from source, no installing even needed
./cli.py
Configuring
The CLI has to first be configured before you can use it. Run:
# Interactive configuration.
backupchan config new -i
# Non-interactive configuration.
backupchan config new -H "http://host" -p 5050 -a "your api key"
Run backupchan --help to see all the commands you can use.
Example usage
$ backupchan target list
Showing page 1
1. | Classified documents
| Alias: classified
| ID: f81d4fae-7dec-11d0-a765-00a0c91e6bf6
| Type: Multiple files
| Recycle criteria: After 5 copies
| Recycle action: Recycle
| Location: /var/backups/classified_documents
| Name template: Classified-Documents-$I
| Deduplication off
=========
$ backupchan target new -n Journal -t single -c none -l /var/backups/journal -m 'journal-$D' -d --alias 'journal'
Created a new target. ID: aed76092-0052-4255-a83b-b4dbc3b2b281
$ backupchan backup upload journal ~/Documents/journal.txt
Backup uploaded.
Metadata
Release files for backupchan-cli 0.14.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| backupchan_cli-0.14.2.tar.gz | 13.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| backupchan_cli-0.14.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 29.1 kB
Release files / backupchan_cli-0.14.2.tar.gz
| Download URL | backupchan_cli-0.14.2.tar.gz |
|---|---|
| Size | 13.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
5e364ba2b2b5845c9c97e2279fa958457a4edebeca481ed0b94adaf45f6ee7ba
|
|
BLAKE2b-256 checksum How to use checksums |
1312d5dd8c3d502951728cee416fbbfe30eef584c5692c131db154767280ad2c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|
Release files / backupchan_cli-0.14.2-py3-none-any.whl
| Download URL | backupchan_cli-0.14.2-py3-none-any.whl |
|---|---|
| Size | 15.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
63a825db674ee2d9351940d0c77a77b4ebf492afd8af54ecf35af18ab8817c54
|
|
BLAKE2b-256 checksum How to use checksums |
a6dfc64212910eea3bc74cdd50739eeb95e00af7abc4976ff44302b9c098e896
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.1.0 CPython/3.13.5
|