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.1.1.tar.gz (9.8 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.1.1-py3-none-any.whl (11.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: backupchan_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 9.8 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.1.1.tar.gz
Algorithm Hash digest
SHA256 bc6f4417d59141d3738ff17d5948c952219f622df4d3ef0e5323a0bc70912e6a
MD5 c1b542d55e3a7f9d9b0ff5412187f195
BLAKE2b-256 32639dc46e4dae35e9faae7ab07ea33af5087c8a792fe3bc46c2d19721df7116

See more details on using hashes here.

File details

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

File metadata

  • Download URL: backupchan_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 11.5 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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 17a4f293513475466b84d5cc9bd8139f80cc00a135947b8f28caf032ad78fed9
MD5 ee0fa5348427f12562f643cd674cceec
BLAKE2b-256 1b3efc8da33655292207705b5eb352893f4e602e0e0f60a69dc20212ca86eb23

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