Re: (no subject)

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

 



well, first of all, the entries don't look correct.  if you're using
crontab, the fields from left to right are:
  minute         0-59
  hour           0-23
  day of month   1-31
  month          1-12 (or names, see below)
  day of week    0-7 (0 or 7 is Sun, or use names)
  command

right now, your command lines are trying to execute 'root' which
probably is not what you want.  The usage of a username in front of
the command is for /etc/cron.d/FILE entries only.  man 5 crontab for
more specifics.

Note also, that everything MUST be on one line.  I'm betting that you
line-wrapped the lines.  Join them back together, and thigns will be
happier.

   - Kevin

On Wed, 18 Aug 2004 15:56:42 +0100, Jim Higson <jh@xxxxxxx> wrote:
> I'm adding backups to my crontab with crontab -e called as root. This brought up the editor and I entered:
> 
> 30 05 * * * root pdumpfs /home/jim /mnt/backup-hdd/home/jim >/mnt/backup-hdd/homejim.log 2>/mnt/backup-hdd/homejim.errlog
> 00 06 * * * root pdumpfs /etc /mnt/backup-hdd/etc >/mnt/backup-hdd/etc.log 2>/mnt/backup-hdd/etc.errlog
> 
> I'm trying to backup my home dir daily at 5:30am and /etc at 6am
> 
> When I save+exit from the editor crontab says:
> 
> crontab: installing new crontab
> "/tmp/crontab.3410":2: bad day-of-month
> errors in crontab file, can't install.
> Do you want to retry the same edit?
> 
> I can't see the problem here. In both cases I have '*' as the day-of-month
> 
> --
> fedora-list mailing list
> fedora-list@xxxxxxxxxx
> To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
>



[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux