stevehopwoodforex.com
https://www.stevehopwoodforex.com/phpBB3/
Print view

Multiple PC's, different locations: how to synchronise?
https://www.stevehopwoodforex.com/phpBB3/viewtopic.php?t=5396
Page 2 of 2
Author:  heart1010 [ Thu Feb 15, 2018 1:13 pm ]
Post subject:  Multiple PC's, different locations: how to synchronise?

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

Author:  thomasmore [ Tue Feb 20, 2018 10:48 am ]
Post subject:  Multiple PC's, different locations: how to synchronise?

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
Author:  Bruster400 [ Tue Mar 13, 2018 2:12 pm ]
Post subject:  Multiple PC's, different locations: how to synchronise?

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. :)
All times are UTC Page 2 of 2