boramalper / magnetico

Autonomous (self-hosted) BitTorrent DHT search engine suite.
http://labs.boramalper.org/magnetico/
GNU Affero General Public License v3.0
3.06k stars 344 forks source link

Can you tell magnetico where the db is? [moving db] #152

Closed blimeybloke closed 7 years ago

blimeybloke commented 7 years ago

Logged into my vm today to see that /root was out of harddrive space due to the magnetico db being 17gb. Can I move the db to /home and tell magnetico via command where the db is?

boramalper commented 7 years ago

Hey @blimeybloke,

you should be able to find the database.sqlite3 file under ~/.local/share/magneticod/ directory. If there are database.sqlite3-shm database.sqlite3-wal files as well, I'd suggest you to use the command line sqlite3 tool to open & close the database.sqlite3, so that the log files can be properly handled, lest you might have a data loss/corruption I'm afraid (though I think you can also copy all three to a new directory).

Best, Bora