Aller au contenu principal

How to get a prompt before starting backup

Thread needs solution

Hi,

I am using True Image 2013 to set up a backup of my laptop to my NAS. However I only want the backup to run when my laptop is attached to my 1Gb wired Lan and not to the wirless lan. Else its going to run for ever!

I have seen various tricks to check that an external drive is attached but thats not going to work in this case as I can access the NAS over both the wireless and wired networks.

I guess that I can quite easily add in a batch file to the start up of the backup that ask me if I am on the wired network but I am not sure how I then get it to cancel the backup if the answer is No?

Is there a specific return code etc from the batch file that stops the backup carrying on?

Thanks

0 Users found this helpful

Mike wrote:
Is there a specific return code etc from the batch file that stops the backup carrying on?

There is a checkable option inside the Pre/Post command option. During the edit function of adding the batch file path to the PRE option, there is such a checkbox to abort the task if the user command fails. Unfortunately, this was reported broken many months ago and to the best of my knowledge, the problem was never fixed. Whether the function works now would require extensive checking.

Perhaps a better choice might be to have a standalone batch file to determine your connection and then based on the response, then either start or not start the backup file. This could be done by placing the backup task as "not scheduled" and have Window Task Scheduler to run a batch to to check if the connection is correct,. The Windows scheduler could initiate the backup via a desktop shortcut easily created from any task by having the TI to create the shortcut.