I am trying to use the program to move files to a directory that is watched by an application which processes the files, and then deletes them. FreeFileSync then copies the deleted items back again causing the app to process them over again.
Is there a way to prevent that, and only copy new files added to the left?
Dont re-copy deleted items on right
- Posts: 4
- Joined: 3 Nov 2020
-
- Posts: 4867
- Joined: 11 Jun 2019
Depending how often the application processes the files, you can set a timespan. If the app processes and deletes everyday at noon, have the sync only include files from the previous day at noon through current day at noon. You could also run a post-sync command that moves them to a different folder for archival or delete them if you don't need them anymore.
- Posts: 4
- Joined: 3 Nov 2020
The files get processed in realtime. The app is a photo booth. Basically the DSLR uploads photos as they are shot to an FTP server. FileSync watches the share and copies new files to the photo booth watch folder, which processes them and then removes them. This workflow needs to happen as quickly as possible.Depending how often the application processes the files, you can set a timespan. If the app processes and deletes everyday at noon, have the sync only include files from the previous day at noon through current day at noon. You could also run a post-sync command that moves them to a different folder for archival or delete them if you don't need them anymore. xCSxXenon, 03 Nov 2020, 19:59
So TLDR, I need a way to only copy new files from the left folder, and to not ever copy those files over again.
-
- Posts: 4867
- Joined: 11 Jun 2019
How long after the pictures get uploaded to the FTP server until the next set of pictures get uploaded? Continuous uploading or in batches? You may be better off using a script that moves the pictures from ftp server to the photo booth folder, waits however long, then loops
- Posts: 4
- Joined: 3 Nov 2020
it is continuous upload. Sounds like I could use the RealTimeSync to run a custom script. Do you know how I would specify only new files in it?
-
- Posts: 4867
- Joined: 11 Jun 2019
You can't. FFS is for syncing, you are not syncing.
You may be better off using a script that moves the pictures from ftp server to the photo booth folder, waits however long, then loops
You may be better off using a script that moves the pictures from ftp server to the photo booth folder, waits however long, then loops
- Posts: 4
- Joined: 3 Nov 2020
I found a solution that works well. I have FileSync doing a two way sync. Once the watch folder gets cleared, FileSync clears the FTP folder (which has already been synced to another folder to store the originals).You can't. FFS is for syncing, you are not syncing.
You may be better off using a script that moves the pictures from ftp server to the photo booth folder, waits however long, then loops xCSxXenon, 05 Nov 2020, 15:42
-
- Posts: 4867
- Joined: 11 Jun 2019
Holy crap, that's actually genius...Trying to imagine your implementation was difficult, but I actually have a similar setup with 30-day data retention. I missed that the photo booth app deletes them after processing! My apologies, good work