Norrox Posted January 14, 2020 Share Posted January 14, 2020 (edited) You move the files to your user/files folder in your owncloud data folder. then you run this command in the unraid terminal window. docker exec -u www-data name_of_your_owncloud_docker php occ files:scan --all then it should scan for all the files you moved to owncloud and add them to the database. much faster than if you had to download the files from another software and then try to sync them to owncloud, can be buggy and take long when there are alot of small files. Hope this help someone, took me ages to figure it out since i'm new to this kind of stuff Edit: for nextcloud docker exec -it nextcloud_container_name occ list Edited October 7, 2021 by Norrox 2 Quote Link to comment
m0larmechanic Posted August 15, 2020 Share Posted August 15, 2020 This was super helpful, thank you! 1 1 Quote Link to comment
dlandon Posted August 15, 2020 Share Posted August 15, 2020 You can also have ownCloud scan for manually added files in the background by setting the following in the confg.php file: /** * Define how often filesystem changes are detected * Specifies how often the local filesystem (the ownCloud data/ directory, and * NFS mounts in data/) is checked for changes made outside ownCloud. This * does not apply to external storages. * * 0 -> Never check the filesystem for outside changes, provides a performance * increase when it's certain that no changes are made directly to the * filesystem * * 1 -> Check each file or folder at most once per request, recommended for * general use if outside changes might happen. */ 'filesystem_check_changes' => 0, 1 Quote Link to comment
Prashant Posted September 7, 2020 Share Posted September 7, 2020 On 1/14/2020 at 4:21 PM, Norrox said: You move the files to your user/files folder in your owncloud data folder. then you run this command in the unraid terminal window. docker exec -u www-data name_of_your_owncloud_docker php occ files:scan --all then it should scan for all the files you moved to owncloud and add them to the database. much faster than if you had to download the files from another software and then try to sync them to owncloud, can be buggy and take long when there are alot of small files. Hope this help someone, took me ages to figure it out since i'm new to this kind of stuff Can you please provide similar commands for nextcloud? 1 Quote Link to comment
sjaak Posted September 7, 2020 Share Posted September 7, 2020 10 hours ago, Prashant said: Can you please provide similar commands for nextcloud? docker exec -it nextcloud_container_name occ list 1 Quote Link to comment
Prashant Posted September 16, 2020 Share Posted September 16, 2020 Thank you very much. It really helped me. I love unraid because of all you supporting members. 1 Quote Link to comment
Kees Fluitman Posted September 8, 2022 Share Posted September 8, 2022 (edited) On 8/15/2020 at 1:51 PM, dlandon said: You can also have ownCloud scan for manually added files in the background by setting the following in the confg.php file: /** * Define how often filesystem changes are detected * Specifies how often the local filesystem (the ownCloud data/ directory, and * NFS mounts in data/) is checked for changes made outside ownCloud. This * does not apply to external storages. * * 0 -> Never check the filesystem for outside changes, provides a performance * increase when it's certain that no changes are made directly to the * filesystem * * 1 -> Check each file or folder at most once per request, recommended for * general use if outside changes might happen. */ 'filesystem_check_changes' => 0, maybe an old topic. but I used this, and it scans properly, the folders are just of a different ownership. But Icant get the occ working if I go to my owncloud console, to my /config/www/owncloud and then use php occ. Maybe you know a quick answer, I cant seem to find out what Im doing wrong here. maybe my user is not www-data? edit: it's abc. thanks. Edited September 8, 2022 by Kees Fluitman Quote Link to comment
dlandon Posted September 8, 2022 Share Posted September 8, 2022 12 minutes ago, Kees Fluitman said: maybe an old topic. but I used this, and it scans properly, the folders are just of a different ownership. But Icant get the occ working if I go to my owncloud console, to my /config/www/owncloud and then use php occ. Maybe you know a quick answer, I cant seem to find out what Im doing wrong here. maybe my user is not www-data? Be sure it has execute permission: 'chmod +x occ'. To execute it: 'sudo -u abc ./occ'. Quote Link to comment
rutherford Posted December 29, 2023 Share Posted December 29, 2023 I'm also curious about this. I'm moving my nextcloud install to a new server (Nextcloud Hub 7 (28.0.1) ). I'm also changing the database connection over from mariadb/mysql to postgresql15. I decided not to bother with the database migration, and am just going to rebuild. I have three users: admin, ruth, and ann. I figured I'd create the users, then point the entire storage directory over at my /mnt/user/nextcloud share. Not sure what the hell will happen with permissions there - I need the ruth files to be there for ruth, ann files for ann, etc. <throws hands in air> Let's mess around and find out! Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.