PowerShell script exchange
Post Reply
woifgaung
Veeam Software
Posts: 79
Liked: 22 times
Joined: Oct 15, 2015 2:57 pm
Full Name: Wolfgang Scheer
Contact:

Immutable.until not changed in file-attibute when running Set-VBRImmutabilityLockExpirationDate

Post by woifgaung »

Just played around with PowerShell command Set-VBRImmutabilityLockExpirationDate. When I change immutable period with this command, GUI and PowerShell commands show the changed date. But when I run

Code: Select all

getfattr VM02.vm-6058D2021-09-11T220637_E65E.vbk -n user.immutable.until
in shell, the un-changed date is still shown. Just wondering if this is a bug or by design? Is this the place where the original date is saved?
Wolfgang | CEMEA Solutions Architect | vnote42.net
Mildur
Product Manager
Posts: 9847
Liked: 2606 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Immutable.until not changed in file-attibute when running Set-VBRImmutabilityLockExpirationDate

Post by Mildur »

There should be a file (.veeam.N.lock) on the system with the time of immutability. Is the time correct in there?

https://helpcenter.veeam.com/docs/backu ... ml?ver=110
Veeam Backup & Replication creates .veeam.N.lock file with the information about immutability time period of each backup file in the active chain. Files .veeam.N.lock are stored on a Linux host.
Product Management Analyst @ Veeam Software
woifgaung
Veeam Software
Posts: 79
Liked: 22 times
Joined: Oct 15, 2015 2:57 pm
Full Name: Wolfgang Scheer
Contact:

Re: Immutable.until not changed in file-attibute when running Set-VBRImmutabilityLockExpirationDate

Post by woifgaung » 1 person likes this post

Good point Fabian! Date there was changed. It looks like, it also gets a different tag: /ExtendedImmutableTillUtc instead of /ImmutableTillUtc. This seems to be new in v11a.
Wolfgang | CEMEA Solutions Architect | vnote42.net
Mildur
Product Manager
Posts: 9847
Liked: 2606 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Immutable.until not changed in file-attibute when running Set-VBRImmutabilityLockExpirationDate

Post by Mildur »

Could be. Need to find some time to test it myself.
But at the moment, time is luxury :)
Product Management Analyst @ Veeam Software
woifgaung
Veeam Software
Posts: 79
Liked: 22 times
Joined: Oct 15, 2015 2:57 pm
Full Name: Wolfgang Scheer
Contact:

Re: Immutable.until not changed in file-attibute when running Set-VBRImmutabilityLockExpirationDate

Post by woifgaung » 1 person likes this post

Think so too. Otherwise this information would be lost when VBR database is gone for good.
sleep is luxury too :?
Wolfgang | CEMEA Solutions Architect | vnote42.net
Mildur
Product Manager
Posts: 9847
Liked: 2606 times
Joined: May 13, 2017 4:51 pm
Full Name: Fabian K.
Location: Switzerland
Contact:

Re: Immutable.until not changed in file-attibute when running Set-VBRImmutabilityLockExpirationDate

Post by Mildur »

I don‘t think veeam will store that information only in the database.
In the database, it can be manipulated. :)

Who needs sleep? (need to be awake in 4 hours xD)
Product Management Analyst @ Veeam Software
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 669 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Immutable.until not changed in file-attibute when running Set-VBRImmutabilityLockExpirationDate

Post by oleg.feoktistov »

Yes, correct. <ExtendedImmutableTillUtc /> tag was added to 11a to contain the date you adjust with Set-VBRImmutableLockExpirationDate cmdlet and support the requirement to reset lock to original value if legal hold is not needed anymore. Thanks!
woifgaung
Veeam Software
Posts: 79
Liked: 22 times
Joined: Oct 15, 2015 2:57 pm
Full Name: Wolfgang Scheer
Contact:

Re: Immutable.until not changed in file-attibute when running Set-VBRImmutabilityLockExpirationDate

Post by woifgaung »

Thanks Oleg for your answer!
And is it correct, file-attribute user.immutable.until stays unchanged to keep the information about original expiration-date?
Wolfgang | CEMEA Solutions Architect | vnote42.net
Gostev
Chief Product Officer
Posts: 31804
Liked: 7298 times
Joined: Jan 01, 2006 1:01 am
Location: Baar, Switzerland
Contact:

Re: Immutable.until not changed in file-attibute when running Set-VBRImmutabilityLockExpirationDate

Post by Gostev »

That's right.

BTW this attribute is nothing but an additional failsafe, which can never be manipulated as it is a part of immutable file.
It's value is checked in addition only when the "main" logic allows immutability flag to be removed.

However, the main actor is the lock file. This one can be extended after it was set, which enables additional features.
woifgaung
Veeam Software
Posts: 79
Liked: 22 times
Joined: Oct 15, 2015 2:57 pm
Full Name: Wolfgang Scheer
Contact:

Re: Immutable.until not changed in file-attibute when running Set-VBRImmutabilityLockExpirationDate

Post by woifgaung »

Thanks for clarification! This helps for understanding!
Wolfgang | CEMEA Solutions Architect | vnote42.net
woifgaung
Veeam Software
Posts: 79
Liked: 22 times
Joined: Oct 15, 2015 2:57 pm
Full Name: Wolfgang Scheer
Contact:

Re: Immutable.until not changed in file-attibute when running Set-VBRImmutabilityLockExpirationDate

Post by woifgaung »

One final question: could it be that is is not possible to reset expiration date to original on a restore point that was extended in v11 (prior v11a)? Tried this but it did not change immutability date.
Wolfgang | CEMEA Solutions Architect | vnote42.net
Gostev
Chief Product Officer
Posts: 31804
Liked: 7298 times
Joined: Jan 01, 2006 1:01 am
Location: Baar, Switzerland
Contact:

Re: Immutable.until not changed in file-attibute when running Set-VBRImmutabilityLockExpirationDate

Post by Gostev »

This is quite likely, because the ability to reset is the new 11a feature.
oleg.feoktistov
Veeam Software
Posts: 2010
Liked: 669 times
Joined: Sep 25, 2019 10:32 am
Full Name: Oleg Feoktistov
Contact:

Re: Immutable.until not changed in file-attibute when running Set-VBRImmutabilityLockExpirationDate

Post by oleg.feoktistov »

Yes, that's precisely the case.
Post Reply

Who is online

Users browsing this forum: Semrush [Bot] and 11 guests