Jump to content

Try to set a cron but getting error tar: Removing leading `/' from member name


Recommended Posts

I am getting an email with this error all the time when I run the cron script bellow this is the error/warning email I am getting :-

tar: Removing leading `/' from member names

 

This is the cron I am running :-

 

cd /home/user/access-logs 
rm -f /home/user/accesS_logs.tar.gz
tar -zcvf /home/user/accesS_logs.tar.gz /home/user/access-logs/*
cd /home/user/
mutt -a accesS_logs.tar.gz [email protected] -s "RAW Log Backup" -f /home/user/mail_body < /dev/null

 

I have removed my email address and username for security reasons

 

Any help would be most greatfull as I have been trying to solve this now for the past 10 hours!

 

Thanks all in advance :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.