Can you attach tar to specific direct and then tar files relative to this directory? All using one command (tar)?
For example, instead of executing
cd /home/test/backups; tar zvPcf backup.tar.gz ../data/
I could do something like
tar -g '/home/test/backups/' zvPcf backup.tar.gz ../data/
source
share