Share data with my family

You need to share the files and/or folders with those you wish to also access it.

1 Like

I might suggest you create a group folder for the share, then it isn’t limited by user quotas, rather than sharing one of your folders with them.

1 Like

Hello @Kostas_Fidantsis.
Last year I have installed my own NC and for share photos with my wife and my sons I decided to create a family user beside other users.
In that way, other single user can have his/her “private” photos.

1 Like

I have found the settings that i need for now but i need first to make a better server with bigger disc to start from beginning.
This maybe will take some time so until then, thank you all for the informations

1 Like

ok i have installed ubuntu server on another pc with 128gb nvme for system and 2tb hdd for data
i am now realise that my nextcloud folder is over 120gb and i can’t move it to the system disk
can you think of any solution to redirect the folder to the 2nd drive or i have to start again after i buy a bigger nvme for system?

In config/config.php you can find:

  'datadirectory' => '/path/to/data', (on 128gb)

You can copy or rsync all data to

/path/to/data2 (on 2tb hdd)

Set all files to www-data:ww-data the webserver/Nextcloud-user/group:

sudo chown -R www-data:www-data /path/to/data2

Then you must change the setting in config/config.php

'datadirectory' => '/path/to/data2',

After that you must re-scan all files:

sudo -u www-data php occ files:scan --all

documentation occ files

1 Like

Ok i have to do this on my previous computer and then when i add the nextcloud folder to the new pc is this steel gonna work?

Edit
I have connected the old drive to this new pc and i am moving now the data folder to the 2tb hdd

After that i will copy the rest of the nextcloud folder to the new pc www/html folder

I have not fully understand the second step
( Set all files to www-data:ww-data the webserver/Nextcloud-user/group:

sudo chown -R www-data:www-data /path/to/data2)

Then i have to backup and restore the database to the new hdd because i forget to do that first and modify the config file

Then i have to run this command?
sudo -u www-data php occ files:scan --all

I don’t think i will make it but i will try

Edit again

Is it posible now that i have the old drive connected to the new pc as second drive to somehow take the database and copy to the new system disk or i have to boot with the old pc and do that with the old system booted?

sudo chown -R www-data:www-data /path/to/data2

where you mount your new 2Tb disk in this example “/path/to/data2” you need to make sure the user and group permissions are set to the user www-data. With above command this is done but adjust the path to your own.

It is best to start up the old computer again and get a valid SQL backup. Copying this over disk 2 disk is not advised.

This is the command that will check if any files that are there (or not there) are (not) in the database or visa versa

1 Like

Ok i think i got it
I will try all that and i hope i will do it right
Thank you very much

i have been stuck on database backup
looks like i have forget the password or i am not doing it right
i get this error
mysqldump: Got error: 1045: “Access denied for user ‘kotsos’@‘localhost’ (using password: YES)” when trying to connect

i am triyng this command
$ mysqldump --single-transaction -h localhost -u My_username -p My_password nextcloud > nextcloud-sqlbkp_date +"%Y%m%d".bak

if i have forget the password, is it possible to find it?

edit
ok i think i find it
now where i can find this backup file?

edit egain
i have found it

when i restore database i have this error
ERROR 1101 (42000) at line 1707: BLOB, TEXT, GEOMETRY or JSON column ‘events’ can’t have a default value

I have start new installation from scratch ubuntu 22.04.3 and nextcloud
Its working until i move the directory to my 2tb drive
I have add the new path to the config file and i have run the crown command withe new path
I have make the maintenance mode back to false and i have this error when i try to connect

Your data directory is invalid. Ensure there is a file called “.ocdata” in the root of the data directory