Migration Owncloud to Nextcloud: Unterschied zwischen den Versionen
Zur Navigation springen
Zur Suche springen
(Die Seite wurde neu angelegt: „<pre> mysql -u root -p mysql> create database if not exists nextcloud; mysql> create user 'nextcloud'@'%' identified by '<password>'; mysql> grant all on nextc…“) |
|||
(5 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
Zeile 1: | Zeile 1: | ||
=== Leere Datenbank anlegen === | |||
<pre> | <pre> | ||
mysql -u root -p | mysql -u root -p | ||
Zeile 9: | Zeile 11: | ||
mysql> exit | mysql> exit | ||
</pre> | </pre> | ||
=== SQL-Dump einspielen === | |||
<pre> | <pre> | ||
mysql -u root -p nextcloud < /<backup path>/owncloud_dump.sql | mysql -u root -p nextcloud < /<backup path>/owncloud_dump.sql | ||
</pre> | </pre> | ||
=== Code herunterladen und checken === | |||
<pre> | <pre> | ||
Zeile 21: | Zeile 27: | ||
diff -s nextcloud-9.0.54.tar.bz2.md5 nextcloud-9.0.54.tar.bz2_own.md5 | diff -s nextcloud-9.0.54.tar.bz2.md5 nextcloud-9.0.54.tar.bz2_own.md5 | ||
</pre> | </pre> | ||
=== Code entpacken === | |||
<pre> | <pre> | ||
Zeile 26: | Zeile 34: | ||
sudo mv nextcloud /var/www/nextcloud | sudo mv nextcloud /var/www/nextcloud | ||
</pre> | </pre> | ||
=== Daten und Configs übertragen === | |||
<pre> | <pre> | ||
sudo cp -r --preserve=mode,timestamps /<backup path>/owncloud/data/ /var/www/nextcloud/ | sudo cp -r --preserve=mode,timestamps /<backup path>/owncloud/data/ /var/www/nextcloud/ | ||
sudo cp | sudo cp --preserve=mode,timestamps /<backup path>/owncloud/config/* /var/www/nextcloud/config/ | ||
</pre> | </pre> | ||
''' | === ''config.php'' anpassen === | ||
In der Datei ''/var/www/nextcloud/config/config.php'' Datenbank, Benutzer etc. anpassen: | |||
<pre> | |||
sudo vi /var/www/nextcloud/config/config.php | |||
</pre> | |||
=== Besitzer setzen === | |||
<pre> | <pre> | ||
sudo chown -R www-data:www-data /var/www/nextcloud | sudo chown -R www-data:www-data /var/www/nextcloud | ||
</pre> | </pre> | ||
=== Update starten === | |||
<pre> | <pre> | ||
Zeile 43: | Zeile 63: | ||
sudo -u www-data php occ config:system:set maintenance --value=false --type=boolean | sudo -u www-data php occ config:system:set maintenance --value=false --type=boolean | ||
</pre> | </pre> | ||
== Links == | |||
[https://help.nextcloud.com/t/migrating-from-owncloud-to-nextcloud/551 https://help.nextcloud.com/t/migrating-from-owncloud-to-nextcloud/551] | |||
Zurück zu [[ | Zurück zu [[Nextcloud (Linux)|Nextcloud]] |
Aktuelle Version vom 3. Oktober 2016, 22:47 Uhr
Leere Datenbank anlegen
mysql -u root -p mysql> create database if not exists nextcloud; mysql> create user 'nextcloud'@'%' identified by '<password>'; mysql> grant all on nextcloud.* to 'nextcloud'@'%'; mysql> create user 'nextcloud'@'localhost' identified by '<password>'; mysql> grant all on nextcloud.* to 'nextcloud'@'localhost'; mysql> flush privileges; mysql> exit
SQL-Dump einspielen
mysql -u root -p nextcloud < /<backup path>/owncloud_dump.sql
Code herunterladen und checken
wget https://download.nextcloud.com/server/releases/nextcloud-9.0.54.tar.bz2 wget https://download.nextcloud.com/server/releases/nextcloud-9.0.54.tar.bz2.md5 md5sum nextcloud-9.0.54.tar.bz2 > nextcloud-9.0.54.tar.bz2_own.md5 diff -s nextcloud-9.0.54.tar.bz2.md5 nextcloud-9.0.54.tar.bz2_own.md5
Code entpacken
tar xjf nextcloud-9.0.54.tar.bz2 sudo mv nextcloud /var/www/nextcloud
Daten und Configs übertragen
sudo cp -r --preserve=mode,timestamps /<backup path>/owncloud/data/ /var/www/nextcloud/ sudo cp --preserve=mode,timestamps /<backup path>/owncloud/config/* /var/www/nextcloud/config/
config.php anpassen
In der Datei /var/www/nextcloud/config/config.php Datenbank, Benutzer etc. anpassen:
sudo vi /var/www/nextcloud/config/config.php
Besitzer setzen
sudo chown -R www-data:www-data /var/www/nextcloud
Update starten
cd /var/www/nextcloud sudo -u www-data php occ upgrade sudo -u www-data php occ config:system:set maintenance --value=false --type=boolean
Links
https://help.nextcloud.com/t/migrating-from-owncloud-to-nextcloud/551
Zurück zu Nextcloud