Configure snapshot directory separately for each volume?

This is for discussing general topics about how to use VirtualBox.
Post Reply
rstarkov
Posts: 6
Joined: 21. Apr 2010, 10:22
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win7, WinXP, Ubuntu

Configure snapshot directory separately for each volume?

Post by rstarkov »

I've set up my virtual volumes on separate physical drives to reduce the chances of losing both if one host drive fails entirely.

Unfortunately I also require snapshots (in fact, the VM usually runs off a snapshot), and VirtualBox insists on saving the snapshots of all volumes in the Snapshot directory I configure.

Can I somehow tell it that the snapshot of a volume should go to a directory relative to where the volume is located? Or just specify a path explicitly for each volume?
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Configure snapshot directory separately for each volume?

Post by mpack »

No, VirtualBox has no such feature.

Why not just keep backups on an external drive?
rstarkov
Posts: 6
Joined: 21. Apr 2010, 10:22
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win7, WinXP, Ubuntu

Re: Configure snapshot directory separately for each volume?

Post by rstarkov »

Well that's a shame.

I do keep backups on a separate drive, but backups take a *heck* of a lot more space than snapshots. So I keep a small number of backups with a significant number of snapshots (two snapshots daily, merged automatically every night).
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Configure snapshot directory separately for each volume?

Post by mpack »

Conceptually, snapshots are taken of the VM, not of individual drives, though of course you and I both know that the underlying drive mechanism could be applied the way you suggest, it just so happens that it isn't (as of v4.1.2).
rstarkov wrote:I do keep backups on a separate drive, but backups take a *heck* of a lot more space than snapshots
On the contrary, a backup written to an external drive takes no space at all on the internal drive. You can't beat that with a snapshot scheme. You don't care about external storage because external storage space is infinite. The only appealing thing about snapshots is that they can be created quickly, plus the GUI provides a nice UI for it, but that isn't enough IMHO to justify the risk. Speaking of risk, I would also note that a snapshot is in no way a substitute for backups, snapshots are way too fragile for that - zap one early "backup" and you lose the lot. True backups don't have that problem. However, the fact that you merge the snapshots after a short interval should at least limit your exposure.
rstarkov
Posts: 6
Joined: 21. Apr 2010, 10:22
Primary OS: MS Windows 7
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Win7, WinXP, Ubuntu

Re: Configure snapshot directory separately for each volume?

Post by rstarkov »

mpack wrote:On the contrary, a backup written to an external drive takes no space at all on the internal drive.
My issue isn't how much space is taken on the internal drive; it's how much space is taken in total. I certainly don't have infinite external storage like you suggest :) Although since snapshots are taken during the day, the fact that they are quick is also an important factor...

I'll try running without the twice daily snapshots at all, relying just on the nightly backups and the mirroring to two physical host disks that I've set up.
mpack
Site Moderator
Posts: 39134
Joined: 4. Sep 2008, 17:09
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Mostly XP

Re: Configure snapshot directory separately for each volume?

Post by mpack »

rstarkov wrote:I certainly don't have infinite external storage like you suggest :)
Sure you do - anybody with a USB port or a DVD-R writer drive potentially has infinite external storage, meaning that your storage space is not limited by the hardware. Hence space taken on external storage is not very important - even if you wanted to keep VM backups forever, the cost of a new USB hdd is probably trivial compared to your time.
Post Reply