mysql - OwnCloud: How to synchronyze the FileSystem with the DB -
i have "insert" lot of files owncloud server (8.2). user give me usb key files , tell me copy of them owncloud data files repository.
do know if possible ? possible synchronyze owncloud data filesystem owncloud database?
my environment linux centos7 (apache 2.4, mysql 5.6, php 5.6)
thanks,
owncloud brings command line utility allows manually trigger tasks. among files:scan
function re-scans users file system.
so can import files following these steps: 1. copy files physical file system of user(s) inside ownclouds data folder 2. fire command line utility re-scan files. takes care update database according files found.
this example manual trigger:
sudo -u www-data php occ files:scan <user name>
here <user name>
has replaced. account name sudo
command switches depends on linux distribution , setup. command has started inside ownclouds base folder. command can called in loop different user names, can done means of standard scripting.
here documentation of utility: https://doc.owncloud.org/server/8.0/admin_manual/configuration_server/occ_command.html
i made try myself using owncloud-8.2 installation , succeeded.
Comments
Post a Comment