Best recovery options from snapshot

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP











up vote
0
down vote

favorite












I have a situation where I started the deletion of a valid NetApp qtree (don't ask) containing 18TB of user files. The job was stopped, but after the system had about 5 minutes of deleting data. I've got a list of deleted files from the previous snapshot (diff against the live filesystem), but the main way that I can think of to recover these is using cp -rp@ to do recursive (or it doesn't copy directories) and preserve permissions and timestamps.



The problem with that approach is that the first thing listed is a directory. That gets recursively recovered then every file inside that directory gets recovered as well, so I'm going to end up with about 150,000 recovers which may run multiple times across files which are now valid. I've narrowed down a lot of it manually already, I'm just sure that there has to be a more efficient way of doing it than I'm using right now.



This is being recovered from a Solaris box, though many of the files are Windows files with Windows permissions.



Thanks in advance.







share|improve this question



















  • Maybe gnu tar (gtar) with the --no-recursion (and --verbatim-files-from) option can create an archive that has what you want.
    – Mark Plotnick
    Jun 15 at 12:47














up vote
0
down vote

favorite












I have a situation where I started the deletion of a valid NetApp qtree (don't ask) containing 18TB of user files. The job was stopped, but after the system had about 5 minutes of deleting data. I've got a list of deleted files from the previous snapshot (diff against the live filesystem), but the main way that I can think of to recover these is using cp -rp@ to do recursive (or it doesn't copy directories) and preserve permissions and timestamps.



The problem with that approach is that the first thing listed is a directory. That gets recursively recovered then every file inside that directory gets recovered as well, so I'm going to end up with about 150,000 recovers which may run multiple times across files which are now valid. I've narrowed down a lot of it manually already, I'm just sure that there has to be a more efficient way of doing it than I'm using right now.



This is being recovered from a Solaris box, though many of the files are Windows files with Windows permissions.



Thanks in advance.







share|improve this question



















  • Maybe gnu tar (gtar) with the --no-recursion (and --verbatim-files-from) option can create an archive that has what you want.
    – Mark Plotnick
    Jun 15 at 12:47












up vote
0
down vote

favorite









up vote
0
down vote

favorite











I have a situation where I started the deletion of a valid NetApp qtree (don't ask) containing 18TB of user files. The job was stopped, but after the system had about 5 minutes of deleting data. I've got a list of deleted files from the previous snapshot (diff against the live filesystem), but the main way that I can think of to recover these is using cp -rp@ to do recursive (or it doesn't copy directories) and preserve permissions and timestamps.



The problem with that approach is that the first thing listed is a directory. That gets recursively recovered then every file inside that directory gets recovered as well, so I'm going to end up with about 150,000 recovers which may run multiple times across files which are now valid. I've narrowed down a lot of it manually already, I'm just sure that there has to be a more efficient way of doing it than I'm using right now.



This is being recovered from a Solaris box, though many of the files are Windows files with Windows permissions.



Thanks in advance.







share|improve this question











I have a situation where I started the deletion of a valid NetApp qtree (don't ask) containing 18TB of user files. The job was stopped, but after the system had about 5 minutes of deleting data. I've got a list of deleted files from the previous snapshot (diff against the live filesystem), but the main way that I can think of to recover these is using cp -rp@ to do recursive (or it doesn't copy directories) and preserve permissions and timestamps.



The problem with that approach is that the first thing listed is a directory. That gets recursively recovered then every file inside that directory gets recovered as well, so I'm going to end up with about 150,000 recovers which may run multiple times across files which are now valid. I've narrowed down a lot of it manually already, I'm just sure that there has to be a more efficient way of doing it than I'm using right now.



This is being recovered from a Solaris box, though many of the files are Windows files with Windows permissions.



Thanks in advance.









share|improve this question










share|improve this question




share|improve this question









asked Jun 15 at 10:54









StuWhitby

222




222











  • Maybe gnu tar (gtar) with the --no-recursion (and --verbatim-files-from) option can create an archive that has what you want.
    – Mark Plotnick
    Jun 15 at 12:47
















  • Maybe gnu tar (gtar) with the --no-recursion (and --verbatim-files-from) option can create an archive that has what you want.
    – Mark Plotnick
    Jun 15 at 12:47















Maybe gnu tar (gtar) with the --no-recursion (and --verbatim-files-from) option can create an archive that has what you want.
– Mark Plotnick
Jun 15 at 12:47




Maybe gnu tar (gtar) with the --no-recursion (and --verbatim-files-from) option can create an archive that has what you want.
– Mark Plotnick
Jun 15 at 12:47















active

oldest

votes











Your Answer







StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
convertImagesToLinks: false,
noModals: false,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);








 

draft saved


draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f449979%2fbest-recovery-options-from-snapshot%23new-answer', 'question_page');

);

Post as a guest



































active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes










 

draft saved


draft discarded


























 


draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f449979%2fbest-recovery-options-from-snapshot%23new-answer', 'question_page');

);

Post as a guest













































































Popular posts from this blog

Peggy Mitchell

Palaiologos

The Forum (Inglewood, California)