Langmeier Backup FAQ

No backup failure: Wake up drive before backup

It can happen that a drive should be "woken up" before the backup software can be used to back it up, for example because the drive is in sleep mode. The following VB script can be executed before a backup to "wake up" the drive. The drive letter of the backup drive must be specified under Path.

'->Declare input:

'-> 1st path e.g. Z:\ or \\server name\share name
Path = "D:\"
'-> 2. waiting time in seconds
Waiting time = 5
'Variables.
Dim fso
Dim f
Dim later
'Set objects.
Set WSHshell = CreateObject("WScript.Shell")
Set fso = CreateObject("Scripting.FileSystemObject")
'Open file.
Set f = fso.GetFolder(Path)
'Wait.
later = dateadd("s", waiting time, now)
do
loop until now > later

Note: Since Langmeier Backup Version 8.1.53 this script is no longer necessary. A NAS that is asleep is now woken up automatically.

About the author
Founder and CEO of Langmeier Software
I don't want to complicate anything. I don't want to develop the ultimate business software. I don't want to be listed in a top technology list. Because that's not what business applications are about. It's about making sure your data is seamlessly protected. And it's about making sure everything runs smoothly while you retain full control and can focus on growing your business. Simplicity and reliability are my guiding principles and inspire me every day.
 
Related articles

This article covers the topics:
Wake up drive
Wake up drive