I would like to compress backup directory, but not saving all path of data. After unpack i want have only destination directory. How Can I do this?
This command save all path:
$tar -czf /home/user/backup/www_`date +%Y-%m-%d`.tar.gz /home/user/www
$ tar -xvf redmine_www_2018-03-02.tar.gz
home/user/www/