Skip to main content

Backup and restore TheHive remotely

Project description

Backup and Restore TheHive

This tool can be used to back up and restore TheHive via its API.

It can also be used to migrate TheHive.

Install

pip install thehivebackup

Usage

# Backup a single day remotely
thehivebackup backup --host="thehive3.mycompany.com" --key="1234567890ABCDEF" --year 2020 --month 8 --day 1

# Migrate a backup from 3 to 4
thehivebackup migrate3to4 backup-2020-8-1-1608320637

# Clear the local TheHive
# THIS WILL REMOVE ALL CASES AND ALERTS, USE WITH CAUTION!
# thehivebackup clear --host="localhost:8080" --key="FEDCBA0987654321"

# Recover a backup locally
thehivebackup recover --host="localhost:8080" --key="FEDCBA0987654321" backup-2020-8-1-1608320637

For larger setups you might want to run this in the background:

nohup thehivebackup backup --host="thehive3.mycompany.com" --key="1234567890ABCDEF" &
tail -f nohup.out
nohup thehivebackup recover --host="localhost:8080" --key="FEDCBA0987654321" --no-ssl backup-full-1608335519 &

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

thehivebackup-0.1.5.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

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

thehivebackup-0.1.5-py3-none-any.whl (9.3 kB view details)

Uploaded Python 3

File details

Details for the file thehivebackup-0.1.5.tar.gz.

File metadata

  • Download URL: thehivebackup-0.1.5.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for thehivebackup-0.1.5.tar.gz
Algorithm Hash digest
SHA256 aa331addecc350c0ecff880856e444d4962efe999ad365be98197d74be1e5076
MD5 70fcbad3e9c3038984c2127a3db9e1eb
BLAKE2b-256 69e0bd515f15ee8085627dd5eab56d98872ef0f5c0ff47b827a3e6c7054aa50b

See more details on using hashes here.

File details

Details for the file thehivebackup-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: thehivebackup-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 9.3 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.2 importlib_metadata/4.8.1 pkginfo/1.7.1 requests/2.26.0 requests-toolbelt/0.9.1 tqdm/4.62.3 CPython/3.9.7

File hashes

Hashes for thehivebackup-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 ce9e5b321b5fd116333b729459a3cc597b07d124622e1ee5f69e55e3d7a02a15
MD5 09ced7fd6152f161d2a7007f39bd7189
BLAKE2b-256 d96e7e626ebd80d60cadb7e5945495809d8dd82978aeeb21feb90f350e5df07e

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