I am trying to make a tar file. I have 2 folders that I need to tar. let me clear my question.
folder 1. /temp1 folder 2. /temp1
now I want my tar output to be such that when i untar it i get
/temp1/* (stuff of temp1) /temp1/temp2/* (temp2 and subdirectories inside temp1).
Right now I am copying temp2 into temp1 and than tarring it. Can anyone suggest me to do in a way that I don't have to copy the stuff, As if I kill the process in between I will be left some of temp2's stuff inside temp1.