[Rdiff-Backup] Running Rdiff-Backup from Cron
Jason Piterak
Jason_Piterak@c-i-s.com
Thu, 18 Apr 2002 17:36:53 -0400
Dave,
I've also found that changing the first line of the rdiff-backup script
from:
#!/usr/bin/env python
to
#!/usr/bin/python (or wherever your python binary is...)
...clears up some problems.
---
Jason Piterak
System Analyst
CIS Technical Services
33 Main St., Suite 302
Nashua, NH 03064
(603) 889-4684 - FAX (603) 889-0534
> -----Original Message-----
> From: rdiff-backup-admin@keywest.Stanford.EDU
> [mailto:rdiff-backup-admin@keywest.Stanford.EDU]On Behalf Of
> Ben Escoto
> Sent: Wednesday, April 17, 2002 3:30 PM
> To: Dave Poirier; rdiff-backup@keywest.Stanford.EDU
> Subject: Re: [Rdiff-Backup] Running Rdiff-Backup from Cron
>
>
> Dave Poirier wrote:
> > We are trying to run a back up job from Cron. We get an
> error, Rdiff
> > shows defunct in Top and Python2 is still running. The
> error we get in
> > the log is as follows.....
> ...
> > Our entry in Crontab...
> > rdiff-backup -v5 root@parkrose.k12.or.us::/var/
> > /var/rdiff-backup/ms/mail/var/
> >
> > Running the same command from the command line runs perfectly.
> > Anyone had any experience with this?
>
> I don't know; I suppose if it works from the command line and
> not from
> cron there must be some difference between the two environments. The
> most common problem people seem to be having is that rdiff
> falls out of
> their PATH (cron's path is shorter) but I can't tell what the
> problem is
> here. Do you have the rest of the error message?
>
>
> --
> Ben Escoto
>
>
> _______________________________________________
> Rdiff-backup mailing list
> Rdiff-backup@keywest.Stanford.EDU
> http://keywest.Stanford.EDU/mailman/listinfo/rdiff-backup
>