logo       

Re: rsnapshot hangs when run from cron: msg#00006

sysutils.backup.rsnapshot.general

Subject: Re: rsnapshot hangs when run from cron

Quoting "Steve Wegner":

> (snip)
>
> But when it runs from a cron job, it does not finish. It just stops at
> an arbitrary point. No process is left running either. Its done and gone.
>
> crontab looks like:
>
> # DO NOT EDIT THIS FILE - edit the master and reinstall.
> # (/tmp/crontab.7767 installed on Thu Aug 3 15:34:01 2006)
> # (Cron version -- $Id: crontab.c,v 2.13 1994/01/17 03:20:37 vixie Exp $)
> # 40 * * * * /usr/local/bin/rsnapshot -V hourly
> @daily /usr/local/bin/rsnapshot -V daily
> @weekly /usr/local/bin/rsnapshot -V weekly
> @monthly /usr/local/bin/rsnapshot -V monthly
>
> (snip)

As a diagnostic aid, you could try capturing the output from the crontab
commands into a log file.

Example:

@daily /usr/local/bin/rsnapshot -V daily >>/tmp/rsnapshot.log 2>&1

By the way, what is the "@" in "@daily" for? I haven't seen that before.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise