Per-folder CLI triggered folder rescans


Recommended Posts

Hi all,

(Take this as a feature request should it not be possible currently.)

I have a requirement to manually (programmatically) trigger folder rescans from the CLI.  I currently have Sync on FreeBSD with many folders.  My instance of Sync runs on a bastion host and has NFS shares back to the internal network.  If the bastion host gets hacked the damage is limited to those files on the NAS.

Anyway, because these are NFS shares Sync cannot detect a file creation/update/deletion and so relies solely on periodic re-scans.

Further, some folders are large (100GB+, lots of files) but are seldom updated, while others are small with frequent updates, so I have tried to find a balance in the Sync-wide rescan interval.

I guess I have two asks: 1) per-folder re-scan intervals and 2) the ability to trigger a re-scan of a folder through the CLI (something like rslsync --folder x --rescan)

Because the NAS can be set up to act on file changes, I could get the NAS to trigger a re-scan, essentially mimicking the behaviour on local filesystems.

Thanks,

Scott

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.