Seafile Migration (Ubuntu): Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(→Links) |
|||
(14 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 7: | Zeile 7: | ||
sudo systemctl stop seahub.service | sudo systemctl stop seahub.service | ||
sudo systemctl stop seafile.service | sudo systemctl stop seafile.service | ||
</pre> | |||
== Datenbanken restoren == | |||
<pre> | |||
mysql -u root -p ccnet_db < /<backup path>/seafile/sql/ccnet-db_last.sql | |||
mysql -u root -p seafile_db < /<backup path>/seafile/sql/seafile-db_last.sql | |||
mysql -u root -p seahub_db < /<backup path>/seafile/sql/seahub-db_last.sql | |||
</pre> | |||
== Datenverzeichnise restoren == | |||
<pre> | |||
cd /mnt/synology/web1/seafile/ | |||
sudo mv seafile-data/ seafile-data_orig | |||
sudo mv seahub-data/ seahub-data_org | |||
</pre> | |||
<pre> | |||
sudo cp -a /media/backup/web1/seafile/data/seahub-data/ seahub-data | |||
sudo cp -a /media/backup/web1/seafile/data/seafile-data/ seafile-data | |||
</pre> | |||
== Update Skripte == | |||
=== Update von 5.0.3 auf 7.1.4 === | |||
<pre> | |||
cd /opt/seafile/seafile-server-latest | |||
</pre> | |||
<pre> | |||
mysql -u root -p seafile_db < upgrade/sql/5.1.0/mysql/seafile.sql | |||
mysql -u root -p seahub_db < upgrade/sql/5.1.0/mysql/seahub.sql | |||
</pre> | |||
<pre> | |||
mysql -u root -p seahub_db < upgrade/sql/6.0.0/mysql/seahub.sql | |||
</pre> | |||
<pre> | |||
mysql -u root -p seahub_db < upgrade/sql/6.1.0/mysql/seahub.sql | |||
</pre> | |||
<pre> | |||
mysql -u root -p ccnet_db < upgrade/sql/6.2.0/mysql/ccnet.sql | |||
mysql -u root -p seahub_db < upgrade/sql/6.2.0/mysql/seahub.sql | |||
</pre> | |||
<pre> | |||
mysql -u root -p ccnet_db < upgrade/sql/6.3.0/mysql/ccnet.sql | |||
mysql -u root -p seafile_db < upgrade/sql/6.3.0/mysql/seafile.sql | |||
mysql -u root -p seahub_db < upgrade/sql/6.3.0/mysql/seahub.sql | |||
</pre> | |||
<pre> | |||
mysql -u root -p ccnet_db < upgrade/sql/7.0.0/mysql/ccnet.sql | |||
mysql -u root -p seafile_db < upgrade/sql/7.0.0/mysql/seafile.sql | |||
mysql -u root -p seahub_db < upgrade/sql/7.0.0/mysql/seahub.sql | |||
</pre> | |||
<pre> | |||
mysql -u root -p seahub_db < upgrade/sql/7.1.0/mysql/seahub.sql | |||
</pre> | </pre> | ||
Aktuelle Version vom 30. Juli 2020, 16:58 Uhr
Noch in Bearbeitung
Server stoppen
sudo systemctl stop seahub.service sudo systemctl stop seafile.service
Datenbanken restoren
mysql -u root -p ccnet_db < /<backup path>/seafile/sql/ccnet-db_last.sql mysql -u root -p seafile_db < /<backup path>/seafile/sql/seafile-db_last.sql mysql -u root -p seahub_db < /<backup path>/seafile/sql/seahub-db_last.sql
Datenverzeichnise restoren
cd /mnt/synology/web1/seafile/ sudo mv seafile-data/ seafile-data_orig sudo mv seahub-data/ seahub-data_org
sudo cp -a /media/backup/web1/seafile/data/seahub-data/ seahub-data sudo cp -a /media/backup/web1/seafile/data/seafile-data/ seafile-data
Update Skripte
Update von 5.0.3 auf 7.1.4
cd /opt/seafile/seafile-server-latest
mysql -u root -p seafile_db < upgrade/sql/5.1.0/mysql/seafile.sql mysql -u root -p seahub_db < upgrade/sql/5.1.0/mysql/seahub.sql
mysql -u root -p seahub_db < upgrade/sql/6.0.0/mysql/seahub.sql
mysql -u root -p seahub_db < upgrade/sql/6.1.0/mysql/seahub.sql
mysql -u root -p ccnet_db < upgrade/sql/6.2.0/mysql/ccnet.sql mysql -u root -p seahub_db < upgrade/sql/6.2.0/mysql/seahub.sql
mysql -u root -p ccnet_db < upgrade/sql/6.3.0/mysql/ccnet.sql mysql -u root -p seafile_db < upgrade/sql/6.3.0/mysql/seafile.sql mysql -u root -p seahub_db < upgrade/sql/6.3.0/mysql/seahub.sql
mysql -u root -p ccnet_db < upgrade/sql/7.0.0/mysql/ccnet.sql mysql -u root -p seafile_db < upgrade/sql/7.0.0/mysql/seafile.sql mysql -u root -p seahub_db < upgrade/sql/7.0.0/mysql/seahub.sql
mysql -u root -p seahub_db < upgrade/sql/7.1.0/mysql/seahub.sql
Server starten
sudo systemctl start seafile.service sudo systemctl start seahub.service
Links
https://download.seafile.com/published/seafile-manual/maintain/backup_recovery.md
https://forum.seafile.com/t/restore-unklar/5591/8
https://download.seafile.com/published/seafile-manual/upgrade/upgrade.md
Zurück zu Seafile