Hi, I'm writing a script that can tar any given folder and place it in my home/bkp. the script will read like this,
tar czvf /home/me/bkp/`basename $1`.tar.gz $1
well now, to use it.,
backup-script.sh /home/me/folder/sub/to-be-backed-up/
Well and good.
Now when I untar it, it creates home/me/folder/sub/to-be-backed-up/*files*
I just want to-be-backed-up/*files*
Is there any option while creating the tar files that i compress it relatively ?