NexusFi: Find Your Edge


Home Menu

 





Backup best pratices


Discussion in Tech Support

Updated
      Top Posters
    1. looks_one Quick Summary with 1 posts (0 thanks)
    2. looks_two Linkon with 1 posts (0 thanks)
    3. looks_3 Big Mike with 1 posts (2 thanks)
    4. looks_4 matevisky with 1 posts (1 thanks)
    1. trending_up 1,624 views
    2. thumb_up 3 thanks given
    3. group 1 followers
    1. forum 2 posts
    2. attach_file 5 attachments




 
Search this Thread

Backup best pratices

  #1 (permalink)
 
matevisky's Avatar
 matevisky 
Nelson, New Zealand
 
Experience: Beginner
Posts: 470 since May 2013
Thanks Given: 633
Thanks Received: 1,533

It could be usefull all the starters, who you can easly backup/move your trading platform from one place to another. I am using NT as a platform, but it could be easly configured to another platform as well. My basic idea is that, to have the ability to setup all my data in no time, if I have to use any other computer, anywhere with a good internet connection ofc

I am managing my files via dropbox, it could be easly setup with any other provider like google drive, microsoft fileservice as well.

I made a pretty simple script on my PC which is copy all the data during the night to my dropbox folder, and keep it there safe. To do this i am using robocopy which is updating only the necessery and changed files (also delete if it is needed), so the cloud drive will be updated only the necessery information. I used to linked my trading platform files directly to my dropbox folder, but I have been realized that is not needed (I am not turing of my PC anyway, and it is only makes unnecessery file syncronizations), so the daily saves are more than enough.

So here is the howto:
- downlod robocopy and install. You can download it from microsoft. It is safe, and it is written by them, so no issue with it: Download robocopy.exe For Windows 2003 Server / XP / 7
- make a script libary somewhere in your home folder, here is mine: c:\users\Mate\Scripts

- create a script file, which will helps you to run batch scripts in the background and name it as invisible.vbs (mine is here: c:\Users\Mate\Scripts\invisible.vbs ). You can create this file as using notepad, and simply just copy past there the following command:
 
Code
CreateObject("Wscript.Shell").Run """" & WScript.Arguments(0) & """", 0, False
- create a folder in your dropbox/gdrive/microsoftdrive folder where you would like to put your backup data. In case of Ninjatrader you just have to save your Ninjatrader 7 folder in your home directory (not in the program files), in case of MT4 you can save the program files directory. Other platforms I dont know what have to be saved, so you have to find it your own. So my folder is like: "d:\!Dropbox\Dropbox\trading\backup\NinjaTrader 7"

- go back to your scripts folder, and create a backup script with the following commands call it ninjatrader.bat or as you want it:
 
Code
@echo off

robocopy "c:\Users\Mate\Documents\NinjaTrader 7" "d:\!Dropbox\Dropbox\trading\backup\NinjaTrader 7" /MIR
- Change the path information based on your path information, BUT BE ADVICE! it could delete all your files, if you are not using it right. Robocopy first paramater is the source, and the second paramater is the destination folder where you would like to create the save. robocopy will always mirror the 2 folder (first is the master, he will never change that, and second is the slave, it will be changed, but only with those files, which actually has been changed during the daily session)
- Cool you are almost there. You can test the script now simply just running it. If you have big folder than it could take time, but it will mirror the files into your dropbox/gdrive/microsoftdrive folder in no time. As a second run, it will be very quick, because most likely only some files will be changed.
- As a last step, you have to schedule the script. Simply just run windows "task scheduler" from the start menu, and setup a new schedule (action/create task). Give a name what you want to see (mine is ninjatrader). In the triggers, create a new trigger, to make it run during the night (settings: daily, recure daily). Actions tab: new action: start a program. program: wscript.exe add arguments: c:\Users\Mate\Scripts\invisible.vbs c:\Users\Mate\Scripts\ninjatrader.bat



- And done. Save it, and you can test it here as will simply just right click on the schedule, and hit run.

Hopes it helps everyone. You are ready with the save, and you are safe now

Máté
Full time trader Live journal here
Follow me on Twitter Visit my NexusFi Trade Journal Started this thread Reply With Quote
Thanked by:

Can you help answer these questions
from other members on NexusFi?
How to apply profiles
Traders Hideout
REcommedations for programming help
Sierra Chart
Trade idea based off three indicators.
Traders Hideout
MC PL editor upgrade
MultiCharts
ZombieSqueeze
Platforms and Indicators
 
  #3 (permalink)
 
Big Mike's Avatar
 Big Mike 
Manta, Ecuador
Site Administrator
Developer
Swing Trader
 
Experience: Advanced
Platform: Custom solution
Broker: IBKR
Trading: Stocks & Futures
Frequency: Every few days
Duration: Weeks
Posts: 50,463 since Jun 2009
Thanks Given: 33,236
Thanks Received: 101,658


For those interested you can also check out this thread on backups:



Mike

We're here to help: just ask the community or contact our Help Desk

Quick Links: Change your Username or Register as a Vendor
Searching for trading reviews? Review this list
Lifetime Elite Membership: Sign-up for only $149 USD
Exclusive money saving offers from our Site Sponsors: Browse Offers
Report problems with the site: Using the NexusFi changelog thread
Follow me on Twitter Visit my NexusFi Trade Journal Reply With Quote
Thanked by:




Last Updated on February 3, 2014


© 2024 NexusFi™, s.a., All Rights Reserved.
Av Ricardo J. Alfaro, Century Tower, Panama City, Panama, Ph: +507 833-9432 (Panama and Intl), +1 888-312-3001 (USA and Canada)
All information is for educational use only and is not investment advice. There is a substantial risk of loss in trading commodity futures, stocks, options and foreign exchange products. Past performance is not indicative of future results.
About Us - Contact Us - Site Rules, Acceptable Use, and Terms and Conditions - Privacy Policy - Downloads - Top
no new posts