Suppose I have three files on disk as f1,f2,f3 and one folder is present and in my archive only f4,f5 files are present. So after untar operation I wanted f1,f2,f3 files to be removed/deleted as they are not present in archive and with same time some files/folders need to be excluded and only f4,f5 files with test folder should be there on disk/file system. Is that possible?
Local disk f1,f2,f3,/testfolder In tar archive f4,f5 After untar f4,f5,/testfolder this should present(while doing untar have to exclude folder from disk and delete files which are not present in archive) Please provide solution as this is on high priority. Thank you.