Program to schedule unmounting and remounting of hard drives?

Bunny G

New member
Local time
6:04 PM
Messages
21
Because my data is important and part of my work, I'm nervous of loss.

Consequently, I have two backup drives which I set my backup schedule (via Cobian software) to backup to each on an alternative basis (with Sunday off).

I also daily backup my most crucial data to the Cloud.

Thing is, decent Ransomware scripts will infect not just the drive it's invoked on but will seek out other drives, including those on a network and infect those, also.

So, forgetting about the Cloud backup (which Ransomware can also infect) I was thinking that maybe I could somehow make whatever physical drive has just been backed up to by Cobian be unmounted until it is required again (after the alternative drive has been backed up to and unmounted), whereupon it would be remounted, prior to the backup taking place.

That way, I'd never have more than one day's backup infected, should an infection manage to bypass my security.

Any ideas, anyone, please? :)
 

My Computer My Computer

At a glance

Windows 7 Ultimate 32 bit
Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP Compaq Tower
OS
Windows 7 Ultimate 32 bit
First, you are to be commended for wanting to make sure your data is safe.

I'm gathering from your post that your backup drives are installed inside your computer or are otherwise connected to the computer at all times. If so, that is a bad idea. First, as you are already concerned about, malware can invade a drive that is permanently connected to a computer. Also, a drive that is connected to a power source is subject to damage from voltage and current spikes that blow through any surge protection you have (you are using surge arrestors, right?) or a failing power supply could fry everything inside a computer, also taking out your backups. If your backup drives are installed inside the computer, if a thief makes off with your computer, the backups will also go with the thief. The same goes for other disasters that can happen: physical damage from dropping, fire, flood, earthquake, etc. Even unmounted drives can be subject to damage.

Backups need to be kept on drives that are kept disconnected from the computer except when updating a backup. There is no practical, safe way to automate backups.

You are on the right track about having multiple backups. I've already discussed what is needed for backups in another thread that you commented in.
 

My Computer My Computer

At a glance

Win 7 Ultimate 64 bitIntel i7-3930KKingston HyperX Genesis 32GB Kit (8x4GB Modul...MSI R7850 Twin Frozr 2GD5/OC Radeon HD 7850 2...
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Win 7 Ultimate 64 bit
CPU
Intel i7-3930K
Motherboard
ASUS P9X79 WS
Memory
Kingston HyperX Genesis 32GB Kit (8x4GB Modules) 1600MHz DDR
Graphics Card(s)
MSI R7850 Twin Frozr 2GD5/OC Radeon HD 7850 2GB 256-bit GDDR
Sound Card
Asus Xonar Essence STX
Monitor(s) Displays
3x Asus VG248QE 24", Vizio 32" TV
Screen Resolution
1920 x 1080, ?
Hard Drives
Samsung 128GB 840 Pro SSD (1),
Samsung 4TB 850 EVO SSDs (4)
Samsung 4TB 850 EVO SSDs (16) external backup drives used in 2.5" hot swap bays in the computer.
PSU
Corsair HX750w
Case
Antec Two Hundred v2 (modified)
Cooling
Cooler Master GeminII S524 120mm (fan replaced with a 140mm)
Keyboard
Logitech G510s
Mouse
Logitech M525 (two in use)
Internet Speed
=< 32Mbps down, 8Mbps up
Antivirus
AVAST!, MBAM, SAS, Spybot S&D (all but MBAM free) Glary Util
Browser
IE11
Other Info
LSI 9211-8i HBA card (8 SATA III ports), 2.5" & 3.5" Hot Swap Bays, HooToo HT-CR001 PCI-E to USB 3.0 Internal Hub + 6 Slot Card Reader, and LG Model CH12LS28 BD-ROM Optical Drive. Also, ScanSnap S1500 ADF duplexing scanner, Canon 9000F flat bed scanner, Corsair SP2500 2.1 speakers, Samsung CLP 415nw laser color printer, Cyberpower PP2200SW UPS
Thanks for such a quick response.

I agree with all you say here, so shall take a closer look at the other thread you alluded to and read your posts, there.

Out of interest though (call me stubborn) IS there a program, or perhaps even a script, which would do what I was querying, to your knowledge? Such would prove useful where backup drives simply HAD to be permanently attached to a host PC system.

Thanks again. :)
 

My Computer My Computer

At a glance

Windows 7 Ultimate 32 bit
Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP Compaq Tower
OS
Windows 7 Ultimate 32 bit
There may be but I never needed or wanted one so I never looked for one. There are hardware solutions that will allow you to shut the power off of drives in a computer but, again, I very STRONGLY recommend against it; the risks are just too high.

to give you an idea how seriously I take my backups, I have a set of four backup drives for every drive (three right now but I'm adding a fourth one soon) installed in my computer. Two of each set are kept at home in a drawer and the other two of each set are kept in my safe deposit box at my credit union. I swap out the onsite and offsite backups at least one a month to keep the offsite backups as up to date as possible. Since any files I add or change after I put the offsite backups in my safe deposit box will not be included in the offsite backup for as long as a month, I also have a Carbonite.com account to fill that gap. The cloud backup will also backup new and changed data until I get around to running the onsite backups.

Do I recommend that extreme of a backup scheme for everyone. Heck no! I have data that would be expensive or impossible to replace. Pretty much my whole life is digitized. Most people would do just fine with an onsite and an offsite backup for each drive in their computer (also two or more smaller drives can be backed up on one onsite and one offsite backup drive as long as the backup drives are large enough to hold all the data on the smaller drives).
 

My Computer My Computer

At a glance

Win 7 Ultimate 64 bitIntel i7-3930KKingston HyperX Genesis 32GB Kit (8x4GB Modul...MSI R7850 Twin Frozr 2GD5/OC Radeon HD 7850 2...
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Win 7 Ultimate 64 bit
CPU
Intel i7-3930K
Motherboard
ASUS P9X79 WS
Memory
Kingston HyperX Genesis 32GB Kit (8x4GB Modules) 1600MHz DDR
Graphics Card(s)
MSI R7850 Twin Frozr 2GD5/OC Radeon HD 7850 2GB 256-bit GDDR
Sound Card
Asus Xonar Essence STX
Monitor(s) Displays
3x Asus VG248QE 24", Vizio 32" TV
Screen Resolution
1920 x 1080, ?
Hard Drives
Samsung 128GB 840 Pro SSD (1),
Samsung 4TB 850 EVO SSDs (4)
Samsung 4TB 850 EVO SSDs (16) external backup drives used in 2.5" hot swap bays in the computer.
PSU
Corsair HX750w
Case
Antec Two Hundred v2 (modified)
Cooling
Cooler Master GeminII S524 120mm (fan replaced with a 140mm)
Keyboard
Logitech G510s
Mouse
Logitech M525 (two in use)
Internet Speed
=< 32Mbps down, 8Mbps up
Antivirus
AVAST!, MBAM, SAS, Spybot S&D (all but MBAM free) Glary Util
Browser
IE11
Other Info
LSI 9211-8i HBA card (8 SATA III ports), 2.5" & 3.5" Hot Swap Bays, HooToo HT-CR001 PCI-E to USB 3.0 Internal Hub + 6 Slot Card Reader, and LG Model CH12LS28 BD-ROM Optical Drive. Also, ScanSnap S1500 ADF duplexing scanner, Canon 9000F flat bed scanner, Corsair SP2500 2.1 speakers, Samsung CLP 415nw laser color printer, Cyberpower PP2200SW UPS
I will also suggest another, simpler, alternative to secure the backup drives while not in use.
First of all, mounting and unmounting drives in explorer is pure eye-candy, it changes absolutely nothing with respect of accessible drives (anyone can still access with \\server\share), so a virus just need to enumerate network shares to bypass your protection. A prime case of "security though obscurity", hence, no security at all.

Instead, make use of the security and permissions built-in into Windows. Make the backup drives read-only, with the backup program being the only able to write to it. To do this, change the Cobian Backup service to run under an exclusive user account of its own (I recommend using an NT Service account, but a regular one with a random password will do). Give that account read access to everything in need of backup. In the backup drives, give the users group read only access to the backups themselves, but give administrators group and the backup account read-write access.
That way only Cobian can modify the backups, but not you (or a virus). A nice side effect is that UAC will ask for elevation when doing a change to the backups, making accidental changes more difficult. Of course, make sure you're not running as administrator every time.

A second, stronger alternative is to migrate to a pull model for backups. Since you mentioned a network drive, I assume you have a server of some sort. So, delete Cobian from your system and forget about backups on it. Instead, install it on the server. Make the server backup from the network though shares on the main computer, reading all needed data (which must be read-only from shares) and store the backups in a non-shared location on the server. This way, should your computer be infected, the backups won't be even there and the virus will be unaware of their existence.

Cycling backup drives offsite is also a good option, as Lady Fitzgerald mentioned, as nothing of what I've said protects against power failures, hardware damage, theft or accidents.

And BTW, to achieve what you've asked, just use the pre-backup and post-backup events of Cobian Backup, issuing a "net use" command to mount before the backup and another to dismount afterwards.
 

My Computer My Computer

At a glance

Windows 7 Ultimate x64Intel Core i7-740QM8 GB DDR3NVIDIA GeForce 330GT
Computer type
Laptop
Computer Manufacturer/Model Number
Toshiba Sattelite A665-S6092
OS
Windows 7 Ultimate x64
CPU
Intel Core i7-740QM
Memory
8 GB DDR3
Graphics Card(s)
NVIDIA GeForce 330GT
Screen Resolution
1366x768
Hard Drives
Samsung 840 SSD 500GB
1TB USB3 external HD
Cooling
Coolermaster Notepal U3 notebook cooling pad
Internet Speed
3mbps ASDL
Antivirus
ClamWin 0.98.7
Browser
Opera 12.17 x86 (main), Firefox 38 (sec), IE11 (last resort)
I recommend an UPS [with or without using the built-in shutdown software] on this very good computer system :)
 

My Computer My Computer

At a glance

Windows 7 Professional 64-bitDesktop i5; Acers i5 & i7desktop 16GB; 1 Acer 8GB & 1 Acer 16GB
Computer type
PC/Desktop
Computer Manufacturer/Model Number
Antec desktop; Acer Aspire laptops
OS
Windows 7 Professional 64-bit
CPU
Desktop i5; Acers i5 & i7
Memory
desktop 16GB; 1 Acer 8GB & 1 Acer 16GB
Hard Drives
1TB split into 2 equal partitions [OS and data] usable by RJS
Internet Speed
AT&T DSL
Browser
FF, GChrome, msIE
Other Info
Windows 7 Firewall, Emsisoft AM/AV, MSE [scan-only], SpywareBlaster, Ruiware/BillP combine
I will also suggest another, simpler, alternative to secure the backup drives while not in use...............

Cycling backup drives offsite is also a good option, as Lady Fitzgerald mentioned, as nothing of what I've said protects against power failures, hardware damage, theft or accidents.

And BTW, to achieve what you've asked, just use the pre-backup and post-backup events of Cobian Backup, issuing a "net use" command to mount before the backup and another to dismount afterwards.

Excellent help and advice, so thank you. :)
 

My Computer My Computer

At a glance

Windows 7 Ultimate 32 bit
Computer type
PC/Desktop
Computer Manufacturer/Model Number
HP Compaq Tower
OS
Windows 7 Ultimate 32 bit
Back
Top