[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: tarsnap, cron, shell



> Hi all,
>
> On my FreeBSD server, I have created a file under
> /usr/local/etc/periodic/daily to run tarsnap, with some commands like
> this:
>
> tarsnap --humanize-numbers -c -f etc-$(date "+%Y%m%d-%H%Mh") /etc
> /usr/local/etc
>
> When I run this command in root, it executes as expected. However, when
> cron runs it, I get an error message in the daily log:
>
> tarsnap: Sequence number mismatch: Run --fsck
> tarsnap: Error creating new archive
>
> I thought this might be a bash issue, as I was running this cron job
> with /bin/sh, but the same error occurs with /usr/local/bin/bash.
>
> Any ideas about what might be going wrong here?

I think I got the same error when I had more than one cachedir on the same
machine. Now I use the same cachedir everytime I run tarsnap on the same
machine and things work fine.


Best regards,

David Eriksson, http://www.divideandconquer.se/