PDA

View Full Version : --strip-components when tarballing?


primefalcon
07-14-2009, 09:43 AM
assuming I run the command, when untarballing a tar ball

tar -cvvf $HOME/database_backups/.temp/Database_backups_`date '+%d-%m-%Y'`.tar $HOME/database_backups/.temp/

I know you can run --strip-components=<number> when untarballing to strip out all the lead folders but can you run something like this when actually tarballing so you don't get all the leading folders leading to that location/