I created a DOS script that runs FFS. The main reason for using it is the need to send results (both OK or ERROR) by email with the log file attached. I will share the script with the community once I am happy with it. But I have got a question regarding retention period, i.e. "Last x days" parameter.
Preamble: I decided to define source and destination locations within the batch file and then call FFS with the command of shape:
"C:\Program Files\FreeFileSync\FreeFileSync.exe" %FFSProfile% -dirpair "%Source%" "%Destination%"
%Destination%\_modified\%Target%
Question 1: I want to be able to define retention period in the batch file. How can I pass last_x_days parameter to the FFS profile? I was trying to edit ffs_batch file in text editor with no success. Is there any other way?
If not possible, can I define retention period within FFS GUI and call the profile with the same command above? It didn't work for me either. I.e. I can't use "Last x days" feature if I call ffs_batch this way.
Question 2: Is there any way to predefine log file name or to know it after completion of backup operation? (currently I am running a DOS loop that finds the most recent file in logs folder)