#!/bin/bash # Periodically synchronize NextCloud for externally modified files # # Copyleft 2017 by Ignacio Nunez Hernanz # GPL licensed (see end of file) * Use at your own risk! # # Usage: # # ./nc-scan-auto.sh # # See installer.sh instructions for details # More at: https://ownyourbits.com # ACTIVE_=no SCANINTERVAL_=60 DESCRIPTION="Periodically scan NC for externally modified files" INFOTITLE="Instructions for auto synchronization" INFO="Set the time in minutes in SCANINTERVAL. >>> If there are too many files this can greatly affect performance. <<<" install() { cat > /etc/systemd/system/nc-scan.service < /etc/systemd/system/nc-scan.timer <