-
- Influencer
- Posts: 16
- Liked: 2 times
- Joined: Oct 02, 2012 11:34 am
- Full Name: Tomas Odehnal
- Contact:
Removing a single restorepoint
Hello,
please can anyone confirm the behavior of Remove-VBRRestorePoint command? I was playing with that command today - I selected restore points of one VM to a variable $a by Get-VBRBackupRestorePoint command, then referenced the first one by $a[0] (oldest vrb) and ran a Remove-VBRRestorePoint command on it. The command removed whole backup chain and not just that referenced restore point. Was it supposed to do that?
Thanks
T.
please can anyone confirm the behavior of Remove-VBRRestorePoint command? I was playing with that command today - I selected restore points of one VM to a variable $a by Get-VBRBackupRestorePoint command, then referenced the first one by $a[0] (oldest vrb) and ran a Remove-VBRRestorePoint command on it. The command removed whole backup chain and not just that referenced restore point. Was it supposed to do that?
Thanks
T.
-
- Product Manager
- Posts: 20413
- Liked: 2302 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Removing a single restorepoint
Hi, Tomas,
Can you provide the whole script body, please?
Thanks.
Can you provide the whole script body, please?
Thanks.
-
- Influencer
- Posts: 16
- Liked: 2 times
- Joined: Oct 02, 2012 11:34 am
- Full Name: Tomas Odehnal
- Contact:
Re: Removing a single restorepoint
Hello Vladimir,
the script was simple:
Before running the second line I checked $a[0] references the correct restorepoint.
the script was simple:
Code: Select all
$a = get-vbrbackup -name vmname | get-vbrrestorepoint
$a[0] | Remove-VBRRestorePoint
-
- Influencer
- Posts: 16
- Liked: 2 times
- Joined: Oct 02, 2012 11:34 am
- Full Name: Tomas Odehnal
- Contact:
Re: Removing a single restorepoint
I tried the command in another environment (also v7) and it behave the same. I also tried referencing specific restore point by oid and whole chain was deleted too.
In the corresponding section of Veeam Powershell User Guide I found examples, which refer to removal of specific check points. Am I the only one who tried this command? Or am I using wrong syntax to reference the restore point?
In the corresponding section of Veeam Powershell User Guide I found examples, which refer to removal of specific check points. Am I the only one who tried this command? Or am I using wrong syntax to reference the restore point?
-
- Product Manager
- Posts: 20413
- Liked: 2302 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Removing a single restorepoint
Hi, Tomas,
I've just tried the said commandlet in my environment. Everything worked in the exact way you described. Most likely, this command emulates the GUI functionality. It's not possible to delete specific restore point, using GUI, and the situation is the same with PS.
So, if you want to control the number of restore points kept on disk, the best option will be to use retention policy, rather than custom scripts.
As to the documentation, it seems to provide the wrong example.
Thanks.
I've just tried the said commandlet in my environment. Everything worked in the exact way you described. Most likely, this command emulates the GUI functionality. It's not possible to delete specific restore point, using GUI, and the situation is the same with PS.
So, if you want to control the number of restore points kept on disk, the best option will be to use retention policy, rather than custom scripts.
As to the documentation, it seems to provide the wrong example.
Thanks.
-
- Influencer
- Posts: 16
- Liked: 2 times
- Joined: Oct 02, 2012 11:34 am
- Full Name: Tomas Odehnal
- Contact:
Re: Removing a single restorepoint
Hello Vladimir,
so there is no difference between Remove-VBRBackup and Remove-VBRRestorePoint?
Are there any plans to implement removal of specific restore point? I know this could be possibly problematic. What I was looking for exactly was "enforcing" the restore points limit and deleting unneeded restore points without actually running the backup job.
Thanks.
so there is no difference between Remove-VBRBackup and Remove-VBRRestorePoint?
Are there any plans to implement removal of specific restore point? I know this could be possibly problematic. What I was looking for exactly was "enforcing" the restore points limit and deleting unneeded restore points without actually running the backup job.
Thanks.
-
- Product Manager
- Posts: 20413
- Liked: 2302 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Removing a single restorepoint
The difference is that using Remove-VBRBackup it's possible to remove backups from GUI only and leave them on disk in the meantime.So there is no difference between Remove-VBRBackup and Remove-VBRRestorePoint?
For now there are no plans to implement these settings either in GUI or in PS.Are there any plans to implement removal of specific restore point? I know this could be possibly problematic. What I was looking for exactly was "enforcing" the restore points limit and deleting unneeded restore points without actually running the backup job.
Thanks.
-
- Influencer
- Posts: 16
- Liked: 2 times
- Joined: Oct 02, 2012 11:34 am
- Full Name: Tomas Odehnal
- Contact:
Re: Removing a single restorepoint
Thanks for the response.
-
- Product Manager
- Posts: 20413
- Liked: 2302 times
- Joined: Oct 26, 2012 3:28 pm
- Full Name: Vladimir Eremin
- Contact:
Re: Removing a single restorepoint
You're welcome. Feel free to contact us, if any other help is needed. Thanks.
Who is online
Users browsing this forum: No registered users and 9 guests