Compare commits
1 Commits
98a1c12067
...
bef42bd312
Author | SHA1 | Date | |
---|---|---|---|
|
bef42bd312 |
22
README.md
22
README.md
|
@ -12,3 +12,25 @@ Au premier lancement, assurez-vous que :
|
|||
- Changez ses permissions à `600`
|
||||
|
||||
C'est dans ce fichier que seront conservés tous les certificats générés par Traefik.
|
||||
|
||||
### Migration des données
|
||||
|
||||
1. Mettre nextcloud en mode maintenance :
|
||||
```
|
||||
sudo -u www-data php occ maintenance:mode --on
|
||||
```
|
||||
2. Faire un dump de la bdd
|
||||
```
|
||||
sudo -u postgres pg_dump -Fc nc > nc.dump
|
||||
```
|
||||
3. Sauver les données du dossier nextcloud
|
||||
```
|
||||
mkdir /var/lib/backuppc/migration
|
||||
tar caf /var/lib/backuppc/migration/nextcloud.tar.xz /srv/nextcloud/
|
||||
```
|
||||
4. Sauver le fichier de configuration de nextcloud
|
||||
```
|
||||
# par précaution, ne devrait pas être utile
|
||||
cp /var/www/nextcloud/public_html/config/config.php /var/lib/backuppc/migration
|
||||
```
|
||||
|
||||
|
|
|
@ -31,7 +31,7 @@ $CONFIG = array (
|
|||
'dbport' => '',
|
||||
'dbtableprefix' => 'oc_',
|
||||
'dbuser' => 'nc',
|
||||
'dbpassword' => 'tavnuenRo',
|
||||
'dbpassword' => '__POSTGRES_PASSWORD__',
|
||||
'installed' => true,
|
||||
'logfile' => '/var/log/nextcloud/nextcloud.log',
|
||||
'log_type' => 'file',
|
||||
|
@ -43,7 +43,7 @@ $CONFIG = array (
|
|||
'redis' =>
|
||||
array (
|
||||
'host' => '/redis',
|
||||
'password' => '',
|
||||
'password' => '__REDIS_PASSWORD__',
|
||||
'port' => 6379,
|
||||
),
|
||||
'default_phone_region' => 'FR',
|
||||
|
@ -58,5 +58,5 @@ $CONFIG = array (
|
|||
'integrity.check.disabled' => false,
|
||||
'ldapUserCleanupInterval' => '10',
|
||||
'ldapProviderFactory' => 'OCA\\User_LDAP\\LDAPProviderFactory',
|
||||
'maintenance' => false,
|
||||
'maintenance' => true,
|
||||
);
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
POSTGRES_PASSWORD=MOT_DE_PASSE_POSTGRES
|
||||
POSTGRES_PASSWORD=__POSTGRES_PASSWORD__
|
||||
POSTGRES_DB=nc
|
||||
POSTGRES_USER=nc
|
||||
POSTGRES_HOST=nextcloud-db
|
||||
username=nextcloud
|
||||
password=MOT_DE_PASSE_COLLABORA
|
||||
password=__COLLABORA_PASSWORD__
|
||||
|
|
Loading…
Reference in New Issue
Block a user