[CentOS] tar exclude question

Tue Mar 15 13:09:37 UTC 2011
Les Mikesell <lesmikesell at gmail.com>

On 3/15/11 4:25 AM, Rainer Traut 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
>
> This always sends me an unwanted email with:
>
> tar: Removing leading `/' from member names
>
> I consider this a bug because this informal message is printed to error out?

Cd into the top directory and back up '.'.  Or above it and use the name without 
the leading /.  Absolute paths are a bad idea in backups and tar is correct in 
telling you that you made an error.

-- 
   Les Mikesell
    lesmikesell at gmail.com