Wrathchild
Technical User
tar tf test.tar | xargs -i cp -r -f {} backup
I am trying to copy files that match those in the test.tar file into the backup directory. There are subdirs with files also and these are designated properly within the tar file. The files all get copied to the proper locations in backup, HOWEVER they are all getting copied to the top-level backup dir in addition to their proper locations. Also the subdirs themselves are being replicated at the top-level backup dir. I'm close, can anyone see what's wrong with my command?
thanks!
I am trying to copy files that match those in the test.tar file into the backup directory. There are subdirs with files also and these are designated properly within the tar file. The files all get copied to the proper locations in backup, HOWEVER they are all getting copied to the top-level backup dir in addition to their proper locations. Also the subdirs themselves are being replicated at the top-level backup dir. I'm close, can anyone see what's wrong with my command?
thanks!