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

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?

Thanks.
-- 
  Colin Brace
  Amsterdam
  http://lim.nl