5

Changing tar parameters

view full story
linux-howto

http://serverfault.com – I'd like to change the command I'm actualy using to put files in a tar archive in order to achieve this: 1) Remove directories tree from the archive (actually the .tar.gz file mantains the tree of the files. I want the files to be "parent"). 2) Remove the files used to create the archive and leave only the new .tar.gz BACKUP_DEST=/home/backup/db/`date +\%G-\%m-\%d` tar -czvf ${BACKUP_DEST}/files.tar.gz ${BACKUP_DEST} (HowTos)