Iām not clear about your description regarding the owncloud.db but I think what you are looking for is a system mounted folder that is linked to an external location. What comes to mind is using bindfs in /etc/fstab to mount a folder where you need it, giving it the property permissions when mounting.
What this would achieve is having the actual files in the external location, but providing access to those files via another location. Whatever activity happens in the mounted folder, alters the files in the external location.
Thanks for reply
actually OC is installed on my nas(build with 128G ssd).so I try define the data files of OC to my extra 8t hard disk. but I found the owncloud.db and owncloud.log is always runing.it cause 8t hard driver canāt be stoped runing(normal hard disk will be stop running after 30m).the owncloud log can be disabled.
I tried use symbolic link to solve it.it works.but after the 8t hard disk wake up again (OC restart).the owncloud.db will restore from 128G ssd to origin location (8t location)
Do you have to use SQLite3 as database? If you use MySQL/MariaDB or PostgreSQL the database will not be stored in the datafolder.
The location of owncloud.log can be set to a path outside the datafolder as well: Logging Configuration
This is actually defined via the php.ini configuration file. session.save_handler and session.save_path are the parameters defining how usersā sessions should be handled.
@pako81
hello,I tried set session.save_path to one of following ,but nothing change on ā/srv/dev-disk-by-uuid-058c230e-6790-478b-8248-4134436d3dda/files/sessionsā,still got sess* files on my external hard disk of nas (omv),