Migrate From Windows to Linux
This tutorial show you how to migrate Seafile form Windows(using SQLite) to Linux.
1. Deploying Seafile Under Linux
First, you should Deploy Seafile with SQLite. And we assume that you deploy Seafile under /home/haiwen/ directory.
2. Replace Config Files And Databases
Delete config files and databases in Linux
rm /home/haiwen/seahub_settings.py
rm /home/haiwen/seahub.db
rm -r /home/haiwen/seafile-data
cp /home/haiwen/ccnet/seafile.ini /home/haiwen/seafile.ini
rm -r /home/haiwen/ccnet
Note:
seafile.iniis used to record the path toseafile-data, we will use it later, so we just copy it out, not delete it.
Copy config files and databases to Linux
copy file
seahub_settings.pyfrom Windows seafile-server to Linux/home/haiwen/;copy file
seahub.dbfrom Windows seafile-server to Linux/home/haiwen/;copy sub-directory
seafile-datafrom Windows seafile-server to Linux/home/haiwen/;copy sub-directory
ccnetfrom Windows seafile-server to Linux/home/haiwen/;copy
/home/haiwen/seafile.inito new Linux ccnet directory.
Start Seafile
./seafile.sh start
./seahub.sh start