Pyinotify not working when using rsync?
Changes don't seem to update when I change files using rsync. I have a rsync script:
DEST1="/home/user/odoo8/addons"
DEST2="/home/user/odoo8/addons-bckp"
SRC="/home/user/odoo8/source/***/*"
for DEST in $DEST1 $DEST2; do
rsync -av --exclude='.git' $SRC $DEST
done
I am starting the Odoo server with an option --auto-reload
that allows the python and xml files to be updated without restarting the server. If I change the files internally /home/user/odoo8/addons/
, it gets updated even if I don't restart the server. But if I change the anti-virus in the directory source
then rsync to push the changes to /home/user/odoo8/addons/
, the changes are not updated. And it only refreshes after server restart.
Is pyinotify not working if you overwrite files? For example, for example using rsync?
source to share
No one has answered this question yet
Check out similar questions: