Dear forum members,
I would like to mirror two directories, either at regular intervals or when a change is made.
Updating works great. I have created the batch file and integrated it into Realtimesync, copied everything into the start folder and it works great.
But it is only updating. Mirroring does not work for me.
What have I done wrong?
Mirroring a directory
- Posts: 8
- Joined: 20 Mar 2025
- Posts: 162
- Joined: 5 Jan 2024
Hi,
The default setting I think is to mirror from the left side to the right side. If you in the program click on the little arrow pointing to the right directly to the left of the synchronized button you can change it from Mirror to two-way and that way changes made on either side we'll get replicated to the other there's two way mirror and update and what you want is two-way.
The default setting I think is to mirror from the left side to the right side. If you in the program click on the little arrow pointing to the right directly to the left of the synchronized button you can change it from Mirror to two-way and that way changes made on either side we'll get replicated to the other there's two way mirror and update and what you want is two-way.
- Posts: 8
- Joined: 20 Mar 2025
Thank you very much for your help.
My problem is that I want to automate the mirroring. That doesn't work for me. I can mirror manually, but I would like to have this done automatically via a batch file.
My problem is that I want to automate the mirroring. That doesn't work for me. I can mirror manually, but I would like to have this done automatically via a batch file.
- Posts: 162
- Joined: 5 Jan 2024
Once the synchronization is set to two-way you need to resave the job as a new real-time sync batch job.
Here are the online instructions that you need to follow.
https://freefilesync.org/manual.php?topic=schedule-batch-jobs
Here are the online instructions that you need to follow.
https://freefilesync.org/manual.php?topic=schedule-batch-jobs
- Posts: 8
- Joined: 20 Mar 2025
That's what I did. When I use update, my files are updated if I have made a change in the left directory. But since I want that when I delete files in the left directory, they are also deleted in the right directory, I want to use mirror.
However, I have not been able to get this process to automate itself...
However, I have not been able to get this process to automate itself...
- Posts: 162
- Joined: 5 Jan 2024
Ok, I just reproduced what you're trying to do and I think I know the problem. The documentation tells you to run the app not the real-time sync program. Here is what I did that works. I did it from the command line but you can put it in the auto start.
C:\Program Files\FreeFileSync\realtimesync.exe P:\TechSupport\FreeFileSync\testab.ffs_batch
When I delete a file on the left side or add a file on the left side a few seconds later realtimesync kicks in and makes the changes.
After you run the program you should be able to go into your system tray and see the red real time Sync icon if you right click on it you can adjust the settings. The default is for it to kick in 10 seconds after the system is idle.
Try this and see if it works better for you.
C:\Program Files\FreeFileSync\realtimesync.exe P:\TechSupport\FreeFileSync\testab.ffs_batch
When I delete a file on the left side or add a file on the left side a few seconds later realtimesync kicks in and makes the changes.
After you run the program you should be able to go into your system tray and see the red real time Sync icon if you right click on it you can adjust the settings. The default is for it to kick in 10 seconds after the system is idle.
Try this and see if it works better for you.
- Posts: 8
- Joined: 20 Mar 2025
John1234, great...
I still need help to integrate the two command lines into auto start.
How do I do that? (I am not an IT expert ;-) )
I still need help to integrate the two command lines into auto start.
How do I do that? (I am not an IT expert ;-) )
- Posts: 162
- Joined: 5 Jan 2024
Right now I have work that I have to do but in an hour or so I will post some additional information.
You can put the command in a batch file and run it automatically when Windows starts.
You can put the command in a batch file and run it automatically when Windows starts.
- Posts: 8
- Joined: 20 Mar 2025
Thank you very much...I am waiting for you...
- Posts: 8
- Joined: 20 Mar 2025
I had created a new shortcut in the Autostart folder with the line:
“c:\programs\freefilesync\realtimesync.exe” ”c:\users\norbert\documents\batchrun.ffs_batch”
Realtimesync is found correctly, but the batch file is not, although I have created a new one and the path is also correct.
“c:\programs\freefilesync\realtimesync.exe” ”c:\users\norbert\documents\batchrun.ffs_batch”
Realtimesync is found correctly, but the batch file is not, although I have created a new one and the path is also correct.
- Posts: 162
- Joined: 5 Jan 2024
Ahh,
Now I see your problem. It is not two commands. It is one command with the executable first and the batch file second don't run them as two separate commands put the second one on the first line with a space between them.
The executable runs the batch file with the funky extension on the end.
Give that a try first and if it doesn't help I will post instructions on how to use the method that I use which is through the task scheduler to run the batch file at Windows login.
Now I see your problem. It is not two commands. It is one command with the executable first and the batch file second don't run them as two separate commands put the second one on the first line with a space between them.
The executable runs the batch file with the funky extension on the end.
Give that a try first and if it doesn't help I will post instructions on how to use the method that I use which is through the task scheduler to run the batch file at Windows login.
- Posts: 8
- Joined: 20 Mar 2025
I have already made the entry in one line. It just doesn't look like that here because of the line break.
Everything seems to work so far. But I get the error message that the batch file is not found or cannot be opened.
Everything seems to work so far. But I get the error message that the batch file is not found or cannot be opened.
-
- Posts: 2946
- Joined: 22 Aug 2012
Did you follow the RealTimeSync manual page 1 and manual page 2, or watch the RealTimeSync tutorial.
- Posts: 8
- Joined: 20 Mar 2025
Good morning John1234 and Plerry,
the error was that the batch file was under the users directory. Now I have moved this file to another location, created a new shortcut and it is running.
Thank you very much for your help.
Have a nice and sunny weekend
the error was that the batch file was under the users directory. Now I have moved this file to another location, created a new shortcut and it is running.
Thank you very much for your help.
Have a nice and sunny weekend