Comment 6 for bug 1638948

Revision history for this message
Gediminas Paulauskas (menesis) wrote :

To move everything to another server, you only need to copy /var/lib/schooltool/Data.fs and the /var/lib/schooltool/blobs/ directory. Cannot access? Prefix the command with sudo.

Example:
sudo tar cJf schooltool-data.tar.xz /var/lib/schooltool/Data.fs /var/lib/schooltool/blobs

# copy to another server, for example
scp schooltool-data.tar.xz another-server:/path

# login to another server, extract
tar xJf schooltool-data.tar.xz
# delete old data
sudo rm -rf /var/lib/schooltool
# move new data
sudo mv var/lib/schooltool /var/lib/
sudo chown schooltool.schooltool /var/lib/schooltool

Remember to stop schooltool before and start after changing data.