You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
How to sort two-way sync between owncloud server and any instance of containers?
At the moment I mount the "files" directory of each user, which is clearly is a one-way sync. Anything copied/uploaded to this directory should go through either the server or the client, so that it is journaled in the database.
How about an inotify script to a folder in the container?
This will watch a certain folder for any changes, does the sync, waits for 3s, then keeps watching
USER=tmp_oneuser
DIR=/home/$USER
TARGET=http://compare.vo.elte.hu/owncloud/remote.php/webdav/
inotifywait -m $DIR -e create -e moved_to --exclude ".csync_journal.db"|
while read path action file; do
echo "The file '$file' appeared in directory '$path' via '$action'"
# do something with the file
owncloudcmd --user $USER --password userpass $DIR $TARGET
sleep 3
done
Is there any drawback using a script like that?
The text was updated successfully, but these errors were encountered:
How to sort two-way sync between owncloud server and any instance of containers?
At the moment I mount the "files" directory of each user, which is clearly is a one-way sync. Anything copied/uploaded to this directory should go through either the server or the client, so that it is journaled in the database.
How about an inotify script to a folder in the container?
This will watch a certain folder for any changes, does the sync, waits for 3s, then keeps watching
Is there any drawback using a script like that?
The text was updated successfully, but these errors were encountered: