Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
moving_nextcloud_data [2022/03/01 18:42] warmachine |
moving_nextcloud_data [2022/03/01 19:09] (current) warmachine |
||
|---|---|---|---|
| Line 18: | Line 18: | ||
| < | < | ||
| - | ' | + | ' |
| change the location in the database: | change the location in the database: | ||
| Line 25: | Line 25: | ||
| < | < | ||
| - | | + | dbpassword=$(awk -F\' "/' |
| - | mysql -u$dbuser -p$dbpassword</ | + | mysql -u$dbuser -p$dbpassword</ |
| + | | ||
| Inside the MySQL console: | Inside the MySQL console: | ||
| - | | + | |
| - | update oc_storages set id=' | + | < |
| - | quit;</ | + | use < |
| - | Again outside the MySQL console | + | update oc_storages set id=' |
| - | < | + | quit; |
| </ | </ | ||
| - | < | + | |
| - | < | + | Again outside the MySQL console |
| - | < | + | |
| - | < | + | < |
| - | < | + | |
| + | turn maintenance mode off: | ||
| + | |||
| + | < | ||
| + | |||
| + | After that, carefully test Nextcloud, the files inside web ui, shares, tags, comments etc. If everything is working fine and Nextcloud indeed handles the files on the new location, you could remove the backups: | ||
| + | |||
| + | < | ||
| + | rm / | ||
Last modified: le 2022/03/01 18:42
