-
Notifications
You must be signed in to change notification settings - Fork 225
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #821 from fkie-cad/database-migration
Database migration
- Loading branch information
Showing
380 changed files
with
9,950 additions
and
8,475 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -72,6 +72,7 @@ | |
'pymongo', | ||
'requests', | ||
'si_prefix', | ||
'sqlalchemy', | ||
'ssdeep', | ||
'tlsh', | ||
'werkzeug', | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,6 +16,7 @@ Contents | |
:maxdepth: 1 | ||
|
||
main | ||
migration | ||
|
||
|
||
.. toctree:: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
Upgrading FACT from 3 to 4 | ||
========================== | ||
|
||
With the release of FACT 4.0, the database was switched from MongoDB to PostgreSQL. | ||
To install all dependencies, simply rerun the installation:: | ||
|
||
$ python3 src/install.py | ||
|
||
Existing analysis and comparison results from your old FACT installation have to be migrated to the new database. | ||
First you need to start the database:: | ||
|
||
$ mongod --config config/mongod.conf | ||
|
||
Then you can start the migration script:: | ||
|
||
$ python3 src/migrate_db_to_postgresql.py | ||
|
||
After this, you should be able to start FACT normally and should find your old data in the new database. | ||
When the migration is complete, FACT does not use MongoDB anymore and you may want to uninstall it:: | ||
|
||
$ python3 -m pip uninstall pymongo | ||
$ sudo apt remove mongodb # or mongodb-org depending on which version is installed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
helperFunctions.data_conversion module | ||
====================================== | ||
|
||
.. automodule:: helperFunctions.data_conversion | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
...helperFunctions.mongo_task_conversion.rst → ...dules/helperFunctions.task_conversion.rst
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
helperFunctions.mongo_task_conversion module | ||
helperFunctions.task_conversion module | ||
============================================ | ||
|
||
.. automodule:: helperFunctions.mongo_task_conversion | ||
.. automodule:: helperFunctions.task_conversion | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
helperFunctions.virtual_file_path module | ||
======================================== | ||
|
||
.. automodule:: helperFunctions.virtual_file_path | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.