Hello,

Usually if the data folder is empty, the sync clients should show a
warning dialog "do you really want to delete all files ?".
If there you pick "keep files", it should reupload the files to
ownCloud, assuming that the user still exists on that instance.

It would still be good to have regular backups of the database and data
directory to cover for the case where your data folder is lost.
This is better than expecting the clients to be the backup.

If I understand well you are trying to trick the sync client to make it
think that the files changed locally to force it to upload ? I think
calling "touch" on all files recursively should work. To reupload a
folder you'd need to touch all files inside that folder, not the folder
itself.

Cheers,

Vincent

On 09/02/2014 11:27 AM, Benjamin Seclier wrote:
> Hello Vincent,
> I agree with you, it's a bad idea to modify files directly inside the "data" 
> directory (although it can be useful for restoring data).
>
> I disabled the "filesystem_check_changes" because we think that it could be 
> dangerous (if someone hacks our server and delete data folder => data are 
> gone server-side AND client-side).
>
> So my question was : if my data folder get empty, is it possible to push data 
> from the client to the server ? As I said, it's possible with files (by 
> changing the "last modification" value) but I didn't find how doing it with 
> folders.
>
> Thanks for your answer
> Kind regards
>
>
> ----- Mail original -----
>> Hi Benjamin,
>>
>> Do you mind explaining your use case in more detail so we can understand
>> what you are trying to achieve ?
>>
>> I think in general it's not a good idea to modify files directly inside
>> the "data" directory. It is better to either use the desktop sync client
>> to push data, or use the WebDAV interface (for example using a davfs mount).
>>
>> For what purpose did you disable "filesystem_check_changes" ? Performance ?
>>
>> Cheers,
>>
>> Vincent
>>
>> On 09/01/2014 04:50 PM, Benjamin Seclier wrote:
>>> Hi,
>>> I have this configuration in my Owncloud server :
>>> 'filesystem_check_changes' => 0,
>>> It results that if I delete a file directly from the filesystem, this file
>>> won't be deleted in my computer client.
>>>
>>> Here is my question :
>>> If I empty the entire data folder (directly from the filesystem), how can I
>>> push data (which are still on my computer) into the server ?
>>> With a single file, I can do it with the "touch" command, but I don't know
>>> if it's possible to do it with all the data.
>>> (a kind of "console.php files:scan" but client-side).
>>>
>>> Thanks a lot.
>>> Regards
>>>
>> _______________________________________________
>> User mailing list
>> [email protected]
>> http://mailman.owncloud.org/mailman/listinfo/user
>>

_______________________________________________
User mailing list
[email protected]
http://mailman.owncloud.org/mailman/listinfo/user

Reply via email to