-
Notifications
You must be signed in to change notification settings - Fork 183
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Backup not backing up archives, evidence, templates #373
Comments
This is the intended behavior, but we can look into adding functionality to backup volume data. Ghostwriter CLI runs the PostgreSQL In the meantime, I'll update the help text to mention volume data is not backed up (current help text is: "Creates a backup of the PostgreSQL database"). |
Hi @chrismaddalena, that sounds good. My intention was to setup a weekly backup on our production server using the Ghostwriter CLI The |
This issue has been labeled as |
This issue is closed because it has been inactive for 14 days since being labeled |
This issue has been labeled as |
This issue is closed because it has been inactive for 14 days since being labeled |
Describe the bug
The
ghostwriter-cli backup
command currently only backs up the postgres database.To Reproduce
To transfer to another server, run these commands:
On Server 1
ghostwriter-cli backup
to backup the postgres database and download the.tar.gz
file from/var/lib/docker/volumes/ghostwriter_production_postgres_data_backups/_data/
.env
to keep the admin passwords etc.ssl/
folder/var/lib/docker/volumes/ghostwriter_production_data/_data/
On Server 2
5. Upload the
.env
file to the root of theGhostwriter/
directory6. Upload the
ssl/
folder to the root of theGhostwriter/
directory7. Run
ghostwriter-cli install
(Unsure if this is necessary as restoring data but did it anyway)8. Upload the copy of the
ghostwriter_production_data
from the old server to/var/lib/docker/volumes/ghostwriter_production_data/_data/
on this server9. Upload the backup of the postgres database to
/var/lib/docker/volumes/ghostwriter_production_postgres_data_backups/_data/
and runghostwriter-cli restore
to restore the postgres database from the old serverExpected Behavior
The
ghostwriter-cli backup
command should backup more of the required files than the postgres database and potentially place a copy in the current working directory rather than having to extract it from the/var/lib/docker/volumes/
folderScreenshots
N/A
Server Specs:
N/A
Additional context
N/A
The text was updated successfully, but these errors were encountered: