1
vote
2answers
371 views

Is it possible to exclude empty directories when creating a tar?

I have a backup command which looks like this: tar cvpzf /backup/incremental-$now.tar.gz --after-date='1 day ago' -C / etc/ home/ root/ --exclude-from=/root/exclusion_list.txt ...
1
vote
2answers
137 views

Run command to untar file in timestamped folder?

I have a .tar file that is transferred to our server every night by one of our client management systems. The file is a compressed .sql file which I need to uncompress and dump into our database. The ...
1
vote
1answer
155 views

update tar archive in the relative directory

when I want to create a tar archive in a relative path, I can do this: tar cf archiveName.tar -C relative/path someDirectory but when I want to update the archive, this tar uf archiveName.tar -C ...
6
votes
3answers
4k views

Un-tar a specific directory inside of a tar

I have the Wordpress tar, latest.tar.gz. Within it is the following structure /wordpress/dirtories/files When I do the following command I would prefer if I could have it unpack starting at ...