Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

filesystem retoration and removal of files

Status
Not open for further replies.

absi

MIS
Sep 2, 2000
67
GB
hi all,
we have a filesystem backup in week by tar
command....this filesystem have app codes
which are usually updated frequently by programmers.
when we restore the backup the unneccessary
files remain there and only updated files are
overwritten.
Is there anyway to remove those files which are
not in backup tape automatically during resoration
by tar command.
At this time we first run rm -r command on fs
and then use tar -xvf command.
Help will be highly appreciated!!!!
Absi
 
Why not write a script based around the -t option tar to obtain a listing - then compare it against the directory; delete all files not in the list.

Just an idea.

Cheers.
Dave Vickers.
 
Why not write a script based around the -t option of tar to obtain a listing - then compare it against the directory; delete all files not in the list.

Just an idea.

Cheers.
Dave Vickers.
 
Why not write a script based around the -t option of tar to obtain a listing - then compare it against the directory. Delete all files not in the list.

Just an idea.

Cheers. :)
Dave Vickers.
 
Nice idea ...
i think it will work!!!!
But strangely why traditional unix tar command
does not provide any flag for that purpose.
Or there is some other command for this purpose?
Absi
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top