I want to make a backup of a directory using tar and xz, but I have a problem. When I open the file, all the files and directories begin with ./ and I don't want this to happen.file.tar.xz    |---- ./directory        |---- ./file1.txt    |---- ./file2.txt            |---- ./file3.txtThis is the code I'm using:tar -cf - -C $dir --absolute-names . | xz -c > $output/$name.$date.txzWhat I need to change to avoid this?
Avoid the contents of a .tar begin with './'
filenames;tar;archive