[CentOS] tar exclude question

Tue Mar 15 11:37:36 UTC 2011
Nico Kadel-Garcia <nkadel at gmail.com>

On Tue, Mar 15, 2011 at 5:25 AM, Rainer Traut <tr.ml at gmx.de> wrote:
> Hi List,
>
> hope this is not too offtopic, but this bothers me and my backup.
>
> My backups are tar jobs in cron, eg:
>
> 20 23 * * *     tar -zcf /mnt/backupInternalHosts/backup/backup.tar.gz
> /etc /root /home && touch /tmp/state_backup-backup

Try this:

     20 23 * * *     tar -zcf
/mnt/backupInternalHosts/backup/backup.tar.gz -C / etc root/home &&
touch /tmp/state_backup-backup