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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

Supported by

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