locked
How to make a backup start as soon as a laptop comes back on to the network RRS feed

  • Question

  • I have a couple of laptops on my home network that are taken to work and left there for a few days.  When they are brought back to the house and turned on, my WHS will back them up but only during the normal backup time frame that has been set.

    Is there any way to make WHS start the backup immediately after the laptop connects to the network? I know it can be started manually but can the immediate backup be started automatically.
    Tuesday, January 20, 2009 6:14 PM

Answers

  • No, there is no supported way to force a backup to start immediately. It's possible (but unsupported) to create e.g. a batch file that would be run as a scheduled task on startup of the computer and force a backup immediately. There is no way to force a backup as soon as the computer connects to a particular network, however.
    I'm not on the WHS team, I just post a lot. :)
    • Marked as answer by jmw45 Tuesday, January 20, 2009 9:30 PM
    Tuesday, January 20, 2009 7:10 PM
    Moderator
  • Hi,
    you could create a batch file and run it as scheduled task. Content of the cmd file similar like following lines:

    @echo off
    if exist
    \\server\software "c:\program files\Windows Home Server\backupengine.exe" -a

    This will check, if your server is there (put your real server name there, you could also login somewhere else, so the check excludes to start in in other networks or disconnected) and start the backup.
    You could schedule this for computer start (maybe add some delay) or put it into the startup group.
    Better would be a manual execution, because if you start the laptop multiple times one day, backup is done every time.
    If you send your laptop only to hibernate, backup is not done that way (but still by the normal mechanics).
    You could also create a loop in the batch if the server not can be found, so that all 10 minutes or so the check is repeated.
    So it all depends.
    Best greetings from Germany
    Olaf
    • Marked as answer by jmw45 Tuesday, January 20, 2009 9:30 PM
    Tuesday, January 20, 2009 7:17 PM
    Moderator

All replies

  • No, there is no supported way to force a backup to start immediately. It's possible (but unsupported) to create e.g. a batch file that would be run as a scheduled task on startup of the computer and force a backup immediately. There is no way to force a backup as soon as the computer connects to a particular network, however.
    I'm not on the WHS team, I just post a lot. :)
    • Marked as answer by jmw45 Tuesday, January 20, 2009 9:30 PM
    Tuesday, January 20, 2009 7:10 PM
    Moderator
  • Hi,
    you could create a batch file and run it as scheduled task. Content of the cmd file similar like following lines:

    @echo off
    if exist
    \\server\software "c:\program files\Windows Home Server\backupengine.exe" -a

    This will check, if your server is there (put your real server name there, you could also login somewhere else, so the check excludes to start in in other networks or disconnected) and start the backup.
    You could schedule this for computer start (maybe add some delay) or put it into the startup group.
    Better would be a manual execution, because if you start the laptop multiple times one day, backup is done every time.
    If you send your laptop only to hibernate, backup is not done that way (but still by the normal mechanics).
    You could also create a loop in the batch if the server not can be found, so that all 10 minutes or so the check is repeated.
    So it all depends.
    Best greetings from Germany
    Olaf
    • Marked as answer by jmw45 Tuesday, January 20, 2009 9:30 PM
    Tuesday, January 20, 2009 7:17 PM
    Moderator
  • Thank you very much for your prompt replies. I think I will try to setup a scheduled task to do that.
    Tuesday, January 20, 2009 9:31 PM