Backup
Tools
We use mongodump and mongorestore to backup and restore the database.
Using mongodump to backup the whole database
mongodump --uri=mongodb://<username>:<password>@localhost:<port> -d=metahkg -o=./metahkg-backup
Store the folder ./metahkg-backup in a SECURE LOCATION!
Shred
Shred the backup if you no longer need it.
Install secure-delete
sudo apt install secure-delete
# ubuntu
pacman -Sy secure-delete
# arch (with blackarch installed)
Use srm
srm -r ./metahkg-backup
It overwrites 38 times so might take some time.