Skip to content

refactor(admin): refine data directory write-up in troubleshooting chapter #14107

Merged
skjnldsv merged 2 commits intomasterfrom
jtr/refactor-troubleshooting-datadir-move
Apr 26, 2026
Merged

refactor(admin): refine data directory write-up in troubleshooting chapter #14107
skjnldsv merged 2 commits intomasterfrom
jtr/refactor-troubleshooting-datadir-move

Conversation

@joshtrichards
Copy link
Copy Markdown
Member

@joshtrichards joshtrichards commented Mar 5, 2026

☑️ Resolves

  • add an appropriate header
  • add context
  • refine steps / step clarity
  • improve formatting

🖼️ Screenshots

image

@joshtrichards
Copy link
Copy Markdown
Member Author

/backport to stable33

@joshtrichards joshtrichards changed the title refactor(admin): improve data directory move section in troubleshooting chapter refactor(admin): improve data directory move process write-up Mar 5, 2026
@joshtrichards

This comment was marked as resolved.

@joshtrichards joshtrichards changed the title refactor(admin): improve data directory move process write-up refactor(admin): refine data directory write-up in troubleshooting chapter Mar 7, 2026
@joshtrichards joshtrichards requested a review from CarlSchwan March 7, 2026 04:39
…ng chapter

Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
@skjnldsv skjnldsv force-pushed the jtr/refactor-troubleshooting-datadir-move branch from 2ae7b06 to 3acc1bc Compare April 26, 2026 10:53
@skjnldsv skjnldsv enabled auto-merge April 26, 2026 10:55
@skjnldsv skjnldsv merged commit 1aeac7d into master Apr 26, 2026
23 checks passed
@skjnldsv skjnldsv deleted the jtr/refactor-troubleshooting-datadir-move branch April 26, 2026 10:59

1. Make sure no cron jobs are running and, if using system cron, that the Nextcloud crontab entry is disabled.

2. Stop web/app server(s).
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
2. Stop web/app server(s).
2. Stop the web / app server(s).


2. Stop web/app server(s).

3. Move ``/data`` to the new location (ensure you also move hidden/dot files such as ``.ncdata``).
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
3. Move ``/data`` to the new location (ensure you also move hidden/dot files such as ``.ncdata``).
3. Move the entire ``/data`` firectory to the new location. Ensure you also move hidden/dot files such as ``.ncdata``.


3. Move ``/data`` to the new location (ensure you also move hidden/dot files such as ``.ncdata``).

4. Create a symlink from the original location to the new location.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

original location of /data to new location of /data?


4. Create a symlink from the original location to the new location.

5. Ensure permissions are still correct (including for any parent folders).
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
5. Ensure permissions are still correct (including for any parent folders).
5. Ensure the folder permissions are still correct, including parent folders.

Maybe also mention which permissions or add a link to the relevant section


5. Ensure permissions are still correct (including for any parent folders).

6. Restart web/app server(s).
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
6. Restart web/app server(s).
6. Restart the web / app server(s).

Comment on lines +432 to +434
This method is not supported and you risk breaking your database. Always make sure you
have up-to-date backups -- including your database -- and a working (tested) restore
process **before** attempting this.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Move this on top so it's before the unsupported datadir migration method instructions?


.. warning::
However this is not supported and you risk breaking your database.
For safely moving the data directory, the recommended actions are:
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
For safely moving the data directory, the recommended actions are:
For safely moving the data directory, the recommended steps are:

However this is not supported and you risk breaking your database.
For safely moving the data directory, the recommended actions are:

1. Make sure no cron jobs are running and, if using system cron, that the Nextcloud crontab entry is disabled.
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
1. Make sure no cron jobs are running and, if using system cron, that the Nextcloud crontab entry is disabled.
0. Create a backup of your system - files and database - and test your recovery process.
1. Make sure no cron jobs are running and, if using system cron, that the Nextcloud crontab entry is disabled.

@miaulalala
Copy link
Copy Markdown
Contributor

too fast @skjnldsv 🐎

@skjnldsv
Copy link
Copy Markdown
Member

too fast @skjnldsv 🐎

Follow-up?

@miaulalala
Copy link
Copy Markdown
Contributor

@joshtrichards could you check my comments in a follow up if you don't mind?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants