Best recovery options from snapshot

Clash 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.
shell solaris cp snapshot
add a comment |Â
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.
shell solaris cp snapshot
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
add a comment |Â
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.
shell solaris cp snapshot
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.
shell solaris cp snapshot
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
add a comment |Â
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
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
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
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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