Comprehensive data protection for all workloads
Post Reply
pesos
Expert
Posts: 206
Liked: 17 times
Joined: Nov 12, 2014 9:40 am
Full Name: John Johnson
Contact:

how to delete from hardened repo?

Post by pesos »

I've read through a number of articles and posts but can't figure out how to actually enter hardened repo backup folders and check/delete files. I am in as sudo and can go into /mnt/veeamrepo and if I ls there I can see a dozen or so backup job folders. but attempting to cd into any of them gives me no such file or directory. how do i get in there to act on the files? thanks!
rovshan.pashayev
Veeam Software
Posts: 260
Liked: 42 times
Joined: Jul 03, 2023 12:44 pm
Full Name: Rovshan Pashayev
Location: Czechia
Contact:

Re: how to delete from hardened repo?

Post by rovshan.pashayev »

Hello,

In order modify, change, delete immutable files in Linux, first you need to remove immutable flag.
Either from files or directories, with following commands, respectively:

Code: Select all

chattr -i filename
chattr -R -i directory_name
Check immutable flag (letter "i") before and after changes with lsattr command.

Rovshan
Rovshan Pashayev
Analyst
Veeam Agent for Linux, Mac, AIX & Solaris
pesos
Expert
Posts: 206
Liked: 17 times
Joined: Nov 12, 2014 9:40 am
Full Name: John Johnson
Contact:

Re: how to delete from hardened repo?

Post by pesos »

I can’t get into the folder so I can’t lsattr anything within
rovshan.pashayev
Veeam Software
Posts: 260
Liked: 42 times
Joined: Jul 03, 2023 12:44 pm
Full Name: Rovshan Pashayev
Location: Czechia
Contact:

Re: how to delete from hardened repo?

Post by rovshan.pashayev »

Hello,

What error do you get exactly?
What is the result of "ls -lhrt" command on top of the folder which you try to access?

Rovshan
Rovshan Pashayev
Analyst
Veeam Agent for Linux, Mac, AIX & Solaris
pesos
Expert
Posts: 206
Liked: 17 times
Joined: Nov 12, 2014 9:40 am
Full Name: John Johnson
Contact:

Re: how to delete from hardened repo?

Post by pesos »

pesos
Expert
Posts: 206
Liked: 17 times
Joined: Nov 12, 2014 9:40 am
Full Name: John Johnson
Contact:

Re: how to delete from hardened repo?

Post by pesos »

have tried it both as root and repouser
rovshan.pashayev
Veeam Software
Posts: 260
Liked: 42 times
Joined: Jul 03, 2023 12:44 pm
Full Name: Rovshan Pashayev
Location: Czechia
Contact:

Re: how to delete from hardened repo?

Post by rovshan.pashayev »

Hello,
That sounds like a technical issue. Please provide a support case ID for this issue, as requested when you click New Topic.

Without case number, the topic will eventually be deleted by moderators.

Best regards,
Rovshan
Rovshan Pashayev
Analyst
Veeam Agent for Linux, Mac, AIX & Solaris
SAFA_IT
Enthusiast
Posts: 43
Liked: 12 times
Joined: Jun 22, 2020 1:08 pm
Full Name: David Thomson
Contact:

Re: how to delete from hardened repo?

Post by SAFA_IT »

I had to do this once. During initial configuration you probably added repouser to the sudo group temporarily. Do this again (temporarily) and you should be able to delete files after changing the immutability bit.
rovshan.pashayev
Veeam Software
Posts: 260
Liked: 42 times
Joined: Jul 03, 2023 12:44 pm
Full Name: Rovshan Pashayev
Location: Czechia
Contact:

Re: how to delete from hardened repo?

Post by rovshan.pashayev »

Hello,

Also, do not forget hidden ".lock" file.

Rovshan
Rovshan Pashayev
Analyst
Veeam Agent for Linux, Mac, AIX & Solaris
pesos
Expert
Posts: 206
Liked: 17 times
Joined: Nov 12, 2014 9:40 am
Full Name: John Johnson
Contact:

Re: how to delete from hardened repo?

Post by pesos »

SAFA_IT wrote: Aug 07, 2023 10:20 am I had to do this once. During initial configuration you probably added repouser to the sudo group temporarily. Do this again (temporarily) and you should be able to delete files after changing the immutability bit.
Thank you - yes this sounds familiar - will give that a try. Working on opening a case with veeam as well, I’ve just run into some non-work delays this week.
pesos
Expert
Posts: 206
Liked: 17 times
Joined: Nov 12, 2014 9:40 am
Full Name: John Johnson
Contact:

Re: how to delete from hardened repo?

Post by pesos »

case #06226772
pesos
Expert
Posts: 206
Liked: 17 times
Joined: Nov 12, 2014 9:40 am
Full Name: John Johnson
Contact:

Re: how to delete from hardened repo?

Post by pesos »

Thank you Safa, that was the key (temp adding repouser to sudo).
Post Reply

Who is online

Users browsing this forum: Bing [Bot], jie.yan, Semrush [Bot] and 117 guests