Information on moving quassel-core config and chat log to another computer seems scarce. I couldn’t find much beyond a couple places talking about changing the config location on bug trackers.
This is what I did to move from Ubuntu 11.10 host with quassel-core 0.7.3 to Debian 7 host with quassel-core 0.8.0. (April 3 2016: This also worked for moving from Debian 7 to Debian 8.)
Install quassel-core on the new host.
newhost ~$ sudo apt-get install quassel-core
Quassel will auto-start, let’s stop it.
newhost ~$ sudo service quasselcore stop
Before copying chat log to new host, let’s shutdown quassel.
oldhost ~$ sudo service quasselcore stop
Copy the config and chat log to new host. On Ubuntu and Debian the config and chat log was stored in /var/lib/quassel/quasselcore.conf and /var/lib/quassel/quassel-storage.sqlite
You do not want to copy /var/lib/quassel/quasselCert.pem to the new host. It’s created at install time and copying it over made SSL stop working.
Because we need to copy the files as root on both hosts, copy to an intermediate location on the new host.
oldhost ~$ sudo scp /var/lib/quassel/quasselcore.conf /var/lib/quassel/quassel-storage.sqlite user@newhost:/home/user/
(The above is one command)
Remove the default conf and copy the new files into place. Removing the conf seems bad, but without replacing it quassel will ask you to create a new user. (I didn’t check what happens if create a new user.)
newhost ~$ sudo rm /var/lib/quassel/quasselcore.conf newhost ~$ sudo mv quasselcore.conf /var/lib/quassel/ newhost ~$ sudo mv quassel-storage.sqlite /var/lib/quassel/
Now fix the owner/group.
newhost ~$ sudo chown quasselcore:quassel /var/lib/quassel/quasselcore.conf newhost ~$ sudo chown quasselcore:quassel /var/lib/quassel/quassel-storage.sqlite
(The above is two commands.)
Now you can start quassel again.
newhost ~$ sudo service quasselcore start
Time to connect and make sure it works! After it seems to work you’ll probably want to remove quassel from the old host, so it doesn’t get started after a reboot.
oldhost ~$ sudo apt-get remove quassel-core
Done.
Leave a Reply