Nextcloud, how to change data directory?

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
przemko
Posts: 70
Joined: Sun Mar 15, 2020 5:40 pm

Re: Nextcloud, how to change data directory?

Post by przemko »

That is:

Code: Select all

drwxr-xr-x  8 root     root     4096 mar 21 08:11 .
drwxr-xr-x 21 root     root     4096 mar 22 09:33 ..
lrwxrwxrwx  1 root     root       28 mar 20 21:45 dietpi_userdata -> /mnt/Toshiba/dietpi_userdata
drwxr-xr-x  2 root     root     4096 sty  7 23:35 ftp_client
drwxr-xr-x  2 root     root        0 lut 14  2019 Maly
drwxrwxrwx  1 root     root     8192 mar 20 19:38 My_Passport
drwxr-xr-x  2 root     root     4096 sty  7 23:35 nfs_client
drwxr-xr-x  2 root     root     4096 sty  7 23:35 samba
drwxr-xr-x  4 www-data www-data 4096 mar 20 21:45 Toshiba
User avatar
MichaIng
Site Admin
Posts: 2261
Joined: Sat Nov 18, 2017 6:21 pm

Re: Nextcloud, how to change data directory?

Post by MichaIng »

That is all correct. When changing the userdata location, a symlink is left behind, so the old path stays valid while the actual data is on the new drive.
przemko
Posts: 70
Joined: Sun Mar 15, 2020 5:40 pm

Re: Nextcloud, how to change data directory?

Post by przemko »

But I see that path i nextcloud web app and all my data sync with that location. So I have to delete my data from

Code: Select all

/mnt/dietpi_userdata/nextcloud_data/admin
?
User avatar
Joulinar
Posts: 2022
Joined: Sat Nov 16, 2019 12:49 am

Re: Nextcloud, how to change data directory?

Post by Joulinar »

Yes thats all correct. As you can see there is a symlinc from old to new location

Code: Select all

dietpi_userdata -> /mnt/Toshiba/dietpi_userdata
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
przemko
Posts: 70
Joined: Sun Mar 15, 2020 5:40 pm

Re: Nextcloud, how to change data directory?

Post by przemko »

OK, thanks. Now I install fail2ban on my Rpi4 and cannot open Nextcloud, Emby and ssh :/ Can You help with that? I will create another topic for that.
User avatar
MichaIng
Site Admin
Posts: 2261
Joined: Sat Nov 18, 2017 6:21 pm

Re: Nextcloud, how to change data directory?

Post by MichaIng »

Hmm, fail2ban should not be related to web access, especially not Nextcloud. By default it controls SSH access failures only and block access (completely) for a specific client when SSH access failed for, AFAIK 6 times, although might be 3 attempts only since each produces two log entries, AFAIK. Should be released after 600 seconds/10 minutes by default.

Were you able to access via SSH and web before installing fail2ban?
Post Reply