Hi,
i use fetchmail to pop my mail and would have liked to archive it each month
so i added a cron that runs each 1st of the month to backup that large mail file.
the bash script looks like this :
----------
mariko:~# cat mail_archive.sh
#!/bin/bash
date=`date +_%d_%m_%Y`
#echo $date
tar cvf /home/benjamin/mail_backup/mail"$date".tar.gz /var/mail/benjamin
-----------
the file /var/mail/benjamin is my fetchmail file that contains all the mail.
when i check the dir /home/benjamin/mail_backup/ it contains a neat file with the date an all.
problem is i cant untar it
if i execute tar zxf mail_18_02_2006.tar.gz it says :
mariko:/home/benjamin/mail_backup# tar zxf mail_18_02_2006.tar.gz
gzip: stdin: not in gzip format
tar: Child returned status 1
tar: Error exit delayed from previous errors
Hope you guys can help me out
thx in advance