No backup mishap: wake up drive before backing up

It can happen that a drive should be "woken up" before backing up to it with the backup software because the drive is in sleep mode for example. The following VB script can be run before a backup and thus "wakes up" the drive. Under path you have to specify the drive letter of the backup drive.

'->Declaring input:

'-> 1. Path ex. Z:\ or \\server name\share name
path = "D:\"
'-> 2. Wait time in seconds
Wait 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 has fallen asleep is now automatically woken up.

About the Author , Founder and CEO of Langmeier Software GmbH
Urs Langmeier Urs Langmeier is founder and CEO of Langmeier Software GmbH and thus responsible for the strategic further development of Langmeier software solutions.
 

Articles relevant to the topic
Langmeier Backup Version 10 is here
FAT32 or NTFS? Which format is better for backup?
Expert Tips: What is backup? Good Data Backup


Post a comment here...

This article covers:
Wake up drive
Wake up drive
Interesting:
Backup software for a tape drive
USB drive is not displayed
Network drives in Langmeier Backup
Tape Drive Alternative