Multiple PC's, different locations: how to synchronise?

heart1010
Trader
Posts: 54
Joined: Wed Mar 30, 2016 8:33 pm

Multiple PC's, different locations: how to synchronise?

Post by heart1010 »

I made a new folder in my Dropbox (Dropbox\Daytrading\MQL4\*) and have now two scripts.
The first one copies all files from my pc (Experts\*.*, Indicators\*.*, Include\*.*, Libraries\*.*, Sounds\*.*, Scripts\*.*) to my Dropbox.
The second one copies all that files from Dropbox back to pc.

MT4CopyAll_from_PC_to_Dropbox.bat

Code: Select all

@echo off
chcp 1252

echo ***** Copy from PC to Dropbox *****

 echo.
echo ^=^> MQL4\Experts\*.*
xcopy /E /D /Y "C:\Users\Hermann\AppData\Roaming\MetaQuotes\Terminal\6757291BBE1793F2A78EDD4695819C20\MQL4\Experts\*.*" "C:\Users\Hermann\Dropbox\Daytrading\MQL4\Experts\"

 echo.
echo ^=^> MQL4\Indicators\*.*
xcopy /E /D /Y "C:\Users\Hermann\AppData\Roaming\MetaQuotes\Terminal\6757291BBE1793F2A78EDD4695819C20\MQL4\Indicators\*.*" "C:\Users\Hermann\Dropbox\Daytrading\MQL4\Indicators\"

 echo.
echo ^=^> MQL4\Include\*.*
xcopy /E /D /Y "C:\Users\Hermann\AppData\Roaming\MetaQuotes\Terminal\6757291BBE1793F2A78EDD4695819C20\MQL4\Include\*.*" "C:\Users\Hermann\Dropbox\Daytrading\MQL4\Include\"

 echo.
echo ^=^> MQL4\Libraries\*.*
xcopy /E /D /Y "C:\Users\Hermann\AppData\Roaming\MetaQuotes\Terminal\6757291BBE1793F2A78EDD4695819C20\MQL4\Libraries\*.*" "C:\Users\Hermann\Dropbox\Daytrading\MQL4\Libraries\"

 echo.
echo ^=^> MQL4\Sounds\*.*
xcopy /E /D /Y "C:\Users\Hermann\AppData\Roaming\MetaQuotes\Terminal\6757291BBE1793F2A78EDD4695819C20\MQL4\Sounds\*.*" "C:\Users\Hermann\Dropbox\Daytrading\MQL4\Sounds\"

 echo.
echo ^=^> MQL4\Scripts\*.*
xcopy /E /D /Y "C:\Users\Hermann\AppData\Roaming\MetaQuotes\Terminal\6757291BBE1793F2A78EDD4695819C20\MQL4\Scripts\*.*" "C:\Users\Hermann\Dropbox\Daytrading\MQL4\Scripts\"

 echo.
echo ***** FINISH!!! (Copy from PC to Dropbox) *****

 echo.
 echo.
pause
MT4CopyAll_from_Dropbox_to_PC.bat

Code: Select all

@echo off
chcp 1252

echo ***** Copy from Dropbox to PC *****

 echo.
echo ^=^> Dropbox\MQL4\Experts\*.*
xcopy /E /D /Y "C:\Users\Hermann\Dropbox\Daytrading\MQL4\Experts\*.*" "C:\Users\Hermann\AppData\Roaming\MetaQuotes\Terminal\6757291BBE1793F2A78EDD4695819C20\MQL4\Experts\"

 echo.
echo ^=^> Dropbox\MQL4\Indicators\*.*
xcopy /E /D /Y "C:\Users\Hermann\Dropbox\Daytrading\MQL4\Indicators\*.*" "C:\Users\Hermann\AppData\Roaming\MetaQuotes\Terminal\6757291BBE1793F2A78EDD4695819C20\MQL4\Indicators\"

 echo.
echo ^=^> Dropbox\MQL4\Include\*.*
xcopy /E /D /Y "C:\Users\Hermann\Dropbox\Daytrading\MQL4\Include\*.*" "C:\Users\Hermann\AppData\Roaming\MetaQuotes\Terminal\6757291BBE1793F2A78EDD4695819C20\MQL4\Include\"

 echo.
echo ^=^> Dropbox\MQL4\Libraries\*.*
xcopy /E /D /Y "C:\Users\Hermann\Dropbox\Daytrading\MQL4\Libraries\*.*" "C:\Users\Hermann\AppData\Roaming\MetaQuotes\Terminal\6757291BBE1793F2A78EDD4695819C20\MQL4\Libraries\"

 echo.
echo ^=^> Dropbox\MQL4\Sounds\*.*
xcopy /E /D /Y "C:\Users\Hermann\Dropbox\Daytrading\MQL4\Sounds\*.*" "C:\Users\Hermann\AppData\Roaming\MetaQuotes\Terminal\6757291BBE1793F2A78EDD4695819C20\MQL4\Sounds\"

 echo.
echo ^=^> Dropbox\MQL4\Scripts\*.*
xcopy /E /D /Y "C:\Users\Hermann\Dropbox\Daytrading\MQL4\Scripts\*.*" "C:\Users\Hermann\AppData\Roaming\MetaQuotes\Terminal\6757291BBE1793F2A78EDD4695819C20\MQL4\Scripts\"

 echo.
echo ***** FINISH!!! (Copy from Dropbox to PC) *****

 echo.
 echo.
pause

thomasmore
Trader
Posts: 269
Joined: Tue Nov 15, 2011 10:35 pm
Location: Knokke, Belgium

Multiple PC's, different locations: how to synchronise?

Post by thomasmore »

Thank you all for taking the time and effort for posting your solutions. What a wonderfull place this forum is.
Many thanks to all of you.
thomasmore
Bruster400
Trader
Posts: 192
Joined: Tue Sep 24, 2013 3:19 pm

Multiple PC's, different locations: how to synchronise?

Post by Bruster400 »

As you've seen in previous posts, this problem can be solved elegantly using scripts but if you're not familiar with coding then there are a number of software options that are freely available to do the job. I use one from 2BrightSparks called SyncBackFree. It does an excellent job with options for either sync or mirror. Multiple folders can be grouped into higher level tasks so that it's simply a single click to sync everything. It's also possible to set up a schedule or even run live in real time in the background so it's good for backups as well as synchronising. I've used it for many years now without issue on my local network but it also offers ftp for remote locations.

I haven't posted an external link but google knows where it can be found. I must state - I've no connection/link with this software, I can't offer help with using it and I'm not responsible if you mess up your files with it. :)
Post Reply

Return to “Know your MT4 platform”