In your origin server AGenerates the sql file:
mysqldump -u vichan -p vichan_db > vichan.sql, then transfer
vichan.sql to the target server B.
Server Bfollow the installation process at
https://comfy.guide/server/vichan/ then after "installation complete",
mysql -u vichan -p
[ENTER YOUR PASSWORD] then you enter the mysql prompt
use vichan_db;
DROP TABLE posts_b;
SOURCE /path/to/vichan.sql;
exit
Copy /img /src /thumb folders from server A to server Bassume the structure of your
/var/www folder of server B is:
- "chan.deep-swarm.xyz" (server B files)
- "dschandata" (copied from server A)
- "html" (other softwares)
manuallycd /var/www
cp -r dschandata/a/{img,src,thumb} chan.deep-swarm.xyz/a
cp -r dschandata/b/{img,src,thumb} chan.deep-swarm.xyz/b
cp -r dschandata/c/{img,src,thumb} chan.deep-swarm.xyz/c
...scriptOR directly use a script (before doing this click every boards in the mod.php page to make sure have generated folder-files of new boards):
for FOLDER_NAME in \* a b c g guestbook k lit m min t test; do
cp -r dschandata/$FOLDER_NAME/{img,src,thumb} chan.deep-swarm.xyz/$FOLDER_NAME
donePossible issues1. some files are not writable when "rebuild" so cause errors. Make sure grant permissions for
www-data:
for FOLDER_NAME in \* a b c g guestbook k lit m min t test; do
sudo chown -R www-data:www-data $FOLDER_NAME
done2. When reinstalling a "theme" (plugin) does not resolve the issues, try uninstalling it first and then installing it. "Themes" would cause issues, especially when files do not exist (such as catalogue.html), so making it impossible to overwrite that files.
3. There have been many more issues during the migration, but I am just recording some of them here. I guess if simply copy-paste all the files won't cause much issues. Just make sure the mysql database is sourced and connected.