My goal is to sync only the latest files from device A to device B (that does not have sufficient space to hold the complete dataset). Until Syncthing gets additional ignore settings (#2491) in the future, I decided to put together a script as a workaround. So far it does:
create list of recently changed files (device A)
.stignore file (device B)
start scan via API (device B) - needed to reload
start scan via API (device A)
.stignore file looks like this
!FileA !FileB !FileC *
over time it changes to
!FileB !FileC !FileD !FileE *
There is one problem: as
FileA is removed from the list, it is ignored by
But it should automatically be removed from device B or the disk will fill up over time.
Any ideas how to solve this? Thanks!