Skip to main content

Command-line interface for interacting with Backup-chan.

Project description

Backup-chan CLI

PyPI - License PyPI - Python Version PyPI - Version

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

backupchan_cli-0.2.0.tar.gz (10.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

backupchan_cli-0.2.0-py3-none-any.whl (12.1 kB view details)

Uploaded Python 3

File details

Details for the file backupchan_cli-0.2.0.tar.gz.

File metadata

  • Download URL: backupchan_cli-0.2.0.tar.gz
  • Upload date:
  • Size: 10.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for backupchan_cli-0.2.0.tar.gz
Algorithm Hash digest
SHA256 95d2699fc64f5fc36cef3b9dbfa83b8950ffca8c753bc7c9bd42c3e36753b6de
MD5 a38606c7f8836f981633f4199699f37f
BLAKE2b-256 a892715360bce188bc27534e3f03e278e2b138550d702b39fd583a747655029b

See more details on using hashes here.

File details

Details for the file backupchan_cli-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: backupchan_cli-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 12.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.3

File hashes

Hashes for backupchan_cli-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 d28f2fcc7d68af75ea3471217d3fcf532503f0ac435c3e3a596e7a87671c60af
MD5 6bd75ad9562c9d0eb6038de801e104d9
BLAKE2b-256 65c51c1f3e2951b44b7016451fdfe73cd2c5662c9aa85fd887b860d4e3172342

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page