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)
Built Distribution
Close
Hashes for thehivebackup-0.1.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | ce9e5b321b5fd116333b729459a3cc597b07d124622e1ee5f69e55e3d7a02a15 |
|
MD5 | 09ced7fd6152f161d2a7007f39bd7189 |
|
BLAKE2b-256 | d96e7e626ebd80d60cadb7e5945495809d8dd82978aeeb21feb90f350e5df07e |