Hello,
I have created a scheduled routine to create a weekly snapshot of a VM(Using Task Scheduler and VBoxManage).
Over time a long snapshot chain is being kept.
I want to save the last 4 snapshots (a month) every time, what would be the command for that? (this can also be a PowerShell Script)
Your help is highly appreciated,
Rotem
Keeping only 4 last snapshots of a scheduled basis snapshot chain
-
- Site Moderator
- Posts: 27329
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: Keeping only 4 last snapshots of a scheduled basis snapshot chain
Since the Snapshot feature is a user-initiated one, I suggest you create a scheduled routine to merge older snapshots.devPRO wrote:I have created a scheduled routine to create a weekly snapshot of a VM
Remember that 1) Snapshots are *not* backups, 2) Snapshots work at the disk-sector level, not at the file level, 3) a backup isn't a backup until a successful restore has been attempted.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
-
- Site Moderator
- Posts: 39134
- Joined: 4. Sep 2008, 17:09
- Primary OS: MS Windows 10
- VBox Version: PUEL
- Guest OSses: Mostly XP
Re: Keeping only 4 last snapshots of a scheduled basis snapshot chain
Why? You do realize that a well placed shot of corruption, at the second snapshot let's say, would lose you the entire snapshot chain? Snapshots are not backups, in fact they increase the probability of losing data. Backups are backups.devPRO wrote:Hello,
I have created a scheduled routine to create a weekly snapshot of a VM(Using Task Scheduler and VBoxManage).
Over time a long snapshot chain is being kept.
-
- Site Moderator
- Posts: 27329
- Joined: 22. Oct 2010, 11:03
- Primary OS: Mac OS X other
- VBox Version: PUEL
- Guest OSses: Win(*>98), Linux*, OSX>10.5
- Location: Greece
Re: Keeping only 4 last snapshots of a scheduled basis snapshot chain
Actually mpack's post reminded me that I should have pointed you to the "Snapshot basics" post. Make sure you read it thoroughly and understand why:
socratis wrote:1) Snapshots are *not* backups
mpack wrote:Snapshots are not backups ... Backups are backups.
Do NOT send me Personal Messages (PMs) for troubleshooting, they are simply deleted.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.
Do NOT reply with the "QUOTE" button, please use the "POST REPLY", at the bottom of the form.
If you obfuscate any information requested, I will obfuscate my response. These are virtual UUIDs, not real ones.