Files
test-repo/patrick-nextcoud.md

31 lines
1004 B
Markdown
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

CRÉER UNE VERSION DE NEXTCLOUD POUR TESTER LUPGRADE (NEXTCLOUD2)
1) créer dans FREENOM un DNS “nextcloud2”
2) copier le répertoire “nextcloud” :
sudo cp -r /home/www/ml.faivre/nextcloud/ /home/www/ml.faivre/nextcloud2
3) créer une nouvelle base :
mysql -u root -p
CREATE DATABASE IF NOT EXISTS `nextcloud2` DEFAULT CHARACTER SET utf8 COLLATE utf8_unicode_ci;
puis créer un nouvel utilisateur et lui donner tous les privilèges sur cette nouvelle base :
GRANT ALL ON nextcloud2.* TO 'nextcloud2'@'localhost' IDENTIFIED BY 'mon_mot_de_passe;
FLUSH PRIVILEGES;
quitter MYSQL
4) copier la base nextcloud.sql.gz en nextcloud2 :
cd /var/lib/mysql/
zcat webtrees-old.sql.gz | sudo mysql nextcloud2
RESTAURATION DE NEXTCLOUD ET DE SA BASE :
sudo rsync -e ssh -avz /mnt/backup1/damia-mountpoint/daily-04/www/ml.faivre/nextcloud/ /home/www/ml.faivre/nextcloud
gunzip < /mnt/backup1/damia-mountpoint/daily-04/mysql/nextcloud.sql.gz | mysql -u root -p"my-password" nextcloud