Backups in cron not running

I'm trying to run rsnapshot through cron to automate my backups but it's not actually running rsnapshot for some reason . Here's my crontab:
brian@brian-laptop:/var/log$ sudo crontab -l
# DO NOT EDIT THIS FILE MANUALLY!! USE crontab -e INSTEAD.
# <minute> <hour> <day> <month> <dow> <command>
01 * * * * /usr/sbin/run-cron /etc/cron.hourly
02 00 * * * /usr/sbin/run-cron /etc/cron.daily
22 00 * * 0 /usr/sbin/run-cron /etc/cron.weekly
42 00 1 * * /usr/sbin/run-cron /etc/cron.monthly
00 * * * * pacman -Sy
00 00 * * * rsnapshot sync && rsnapshot daily
30 23 * * 0 rsnapshot weekly
00 23 1 * * rsnapshot monthly
And here's one of my logs:
14-Sep-2009 00:02 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
14-Sep-2009 01:00 FILE /var/spool/cron/root USER root pid 12703 cmd pacman -Sy
14-Sep-2009 01:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
14-Sep-2009 01:01 FILE /var/spool/cron/root USER root pid 12859 cmd /usr/sbin/run-cron /etc/cron.hourly
14-Sep-2009 02:00 FILE /var/spool/cron/root USER root pid 21677 cmd pacman -Sy
14-Sep-2009 02:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
14-Sep-2009 02:01 FILE /var/spool/cron/root USER root pid 21817 cmd /usr/sbin/run-cron /etc/cron.hourly
14-Sep-2009 03:00 FILE /var/spool/cron/root USER root pid 30278 cmd pacman -Sy
14-Sep-2009 03:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
14-Sep-2009 03:01 FILE /var/spool/cron/root USER root pid 30442 cmd /usr/sbin/run-cron /etc/cron.hourly
14-Sep-2009 04:00 FILE /var/spool/cron/root USER root pid 6681 cmd pacman -Sy
14-Sep-2009 04:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
14-Sep-2009 04:01 FILE /var/spool/cron/root USER root pid 6818 cmd /usr/sbin/run-cron /etc/cron.hourly
14-Sep-2009 05:00 FILE /var/spool/cron/root USER root pid 15516 cmd pacman -Sy
14-Sep-2009 05:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
14-Sep-2009 05:01 FILE /var/spool/cron/root USER root pid 15671 cmd /usr/sbin/run-cron /etc/cron.hourly
14-Sep-2009 06:00 FILE /var/spool/cron/root USER root pid 24200 cmd pacman -Sy
14-Sep-2009 06:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
14-Sep-2009 06:01 FILE /var/spool/cron/root USER root pid 24342 cmd /usr/sbin/run-cron /etc/cron.hourly
14-Sep-2009 07:00 FILE /var/spool/cron/root USER root pid 400 cmd pacman -Sy
14-Sep-2009 07:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
14-Sep-2009 07:01 FILE /var/spool/cron/root USER root pid 547 cmd /usr/sbin/run-cron /etc/cron.hourly
14-Sep-2009 08:00 FILE /var/spool/cron/root USER root pid 9408 cmd pacman -Sy
14-Sep-2009 08:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
14-Sep-2009 08:01 FILE /var/spool/cron/root USER root pid 9546 cmd /usr/sbin/run-cron /etc/cron.hourly
14-Sep-2009 09:00 FILE /var/spool/cron/root USER root pid 18144 cmd pacman -Sy
14-Sep-2009 09:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
14-Sep-2009 09:01 FILE /var/spool/cron/root USER root pid 18284 cmd /usr/sbin/run-cron /etc/cron.hourly
14-Sep-2009 10:00 FILE /var/spool/cron/root USER root pid 27364 cmd pacman -Sy
14-Sep-2009 10:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
14-Sep-2009 10:01 FILE /var/spool/cron/root USER root pid 27503 cmd /usr/sbin/run-cron /etc/cron.hourly
14-Sep-2009 11:00 FILE /var/spool/cron/root USER root pid 3767 cmd pacman -Sy
14-Sep-2009 11:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
14-Sep-2009 11:01 FILE /var/spool/cron/root USER root pid 3908 cmd /usr/sbin/run-cron /etc/cron.hourly
14-Sep-2009 12:00 FILE /var/spool/cron/root USER root pid 12373 cmd pacman -Sy
14-Sep-2009 12:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
14-Sep-2009 12:01 FILE /var/spool/cron/root USER root pid 12523 cmd /usr/sbin/run-cron /etc/cron.hourly
14-Sep-2009 13:00 FILE /var/spool/cron/root USER root pid 20993 cmd pacman -Sy
14-Sep-2009 13:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
14-Sep-2009 13:01 FILE /var/spool/cron/root USER root pid 21135 cmd /usr/sbin/run-cron /etc/cron.hourly
14-Sep-2009 14:00 FILE /var/spool/cron/root USER root pid 29677 cmd pacman -Sy
14-Sep-2009 14:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
14-Sep-2009 14:01 FILE /var/spool/cron/root USER root pid 29846 cmd /usr/sbin/run-cron /etc/cron.hourly
14-Sep-2009 15:00 FILE /var/spool/cron/root USER root pid 6484 cmd pacman -Sy
14-Sep-2009 15:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
14-Sep-2009 15:01 FILE /var/spool/cron/root USER root pid 6642 cmd /usr/sbin/run-cron /etc/cron.hourly
14-Sep-2009 16:00 FILE /var/spool/cron/root USER root pid 15169 cmd pacman -Sy
14-Sep-2009 16:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
14-Sep-2009 16:01 FILE /var/spool/cron/root USER root pid 15313 cmd /usr/sbin/run-cron /etc/cron.hourly
14-Sep-2009 17:00 FILE /var/spool/cron/root USER root pid 23857 cmd pacman -Sy
14-Sep-2009 17:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
14-Sep-2009 17:01 FILE /var/spool/cron/root USER root pid 24008 cmd /usr/sbin/run-cron /etc/cron.hourly
14-Sep-2009 18:00 FILE /var/spool/cron/root USER root pid 32527 cmd pacman -Sy
14-Sep-2009 18:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
14-Sep-2009 18:01 FILE /var/spool/cron/root USER root pid 32665 cmd /usr/sbin/run-cron /etc/cron.hourly
14-Sep-2009 19:00 FILE /var/spool/cron/root USER root pid 9080 cmd pacman -Sy
14-Sep-2009 19:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
14-Sep-2009 19:01 FILE /var/spool/cron/root USER root pid 9224 cmd /usr/sbin/run-cron /etc/cron.hourly
14-Sep-2009 20:00 FILE /var/spool/cron/root USER root pid 17660 cmd pacman -Sy
14-Sep-2009 20:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
14-Sep-2009 20:01 FILE /var/spool/cron/root USER root pid 17804 cmd /usr/sbin/run-cron /etc/cron.hourly
14-Sep-2009 21:00 FILE /var/spool/cron/root USER root pid 26715 cmd pacman -Sy
14-Sep-2009 21:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
14-Sep-2009 21:01 FILE /var/spool/cron/root USER root pid 26856 cmd /usr/sbin/run-cron /etc/cron.hourly
14-Sep-2009 22:00 FILE /var/spool/cron/root USER root pid 3354 cmd pacman -Sy
14-Sep-2009 22:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
14-Sep-2009 22:01 FILE /var/spool/cron/root USER root pid 3505 cmd /usr/sbin/run-cron /etc/cron.hourly
14-Sep-2009 23:00 FILE /var/spool/cron/root USER root pid 12142 cmd pacman -Sy
14-Sep-2009 23:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
14-Sep-2009 23:01 FILE /var/spool/cron/root USER root pid 12305 cmd /usr/sbin/run-cron /etc/cron.hourly
15-Sep-2009 00:00 FILE /var/spool/cron/root USER root pid 20952 cmd pacman -Sy
15-Sep-2009 00:00 FILE /var/spool/cron/root USER root pid 20953 cmd rsnapshot sync && rsnapshot daily
15-Sep-2009 00:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
15-Sep-2009 00:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
15-Sep-2009 00:01 FILE /var/spool/cron/root USER root pid 21098 cmd /usr/sbin/run-cron /etc/cron.hourly
15-Sep-2009 00:02 FILE /var/spool/cron/root USER root pid 21246 cmd /usr/sbin/run-cron /etc/cron.daily
15-Sep-2009 00:02 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
15-Sep-2009 01:00 FILE /var/spool/cron/root USER root pid 29584 cmd pacman -Sy
15-Sep-2009 01:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
15-Sep-2009 01:01 FILE /var/spool/cron/root USER root pid 29724 cmd /usr/sbin/run-cron /etc/cron.hourly
15-Sep-2009 02:00 FILE /var/spool/cron/root USER root pid 5588 cmd pacman -Sy
15-Sep-2009 02:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
15-Sep-2009 02:01 FILE /var/spool/cron/root USER root pid 5731 cmd /usr/sbin/run-cron /etc/cron.hourly
15-Sep-2009 03:00 FILE /var/spool/cron/root USER root pid 13934 cmd pacman -Sy
15-Sep-2009 03:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
15-Sep-2009 03:01 FILE /var/spool/cron/root USER root pid 14077 cmd /usr/sbin/run-cron /etc/cron.hourly
15-Sep-2009 04:00 FILE /var/spool/cron/root USER root pid 22329 cmd pacman -Sy
15-Sep-2009 04:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
15-Sep-2009 04:01 FILE /var/spool/cron/root USER root pid 22463 cmd /usr/sbin/run-cron /etc/cron.hourly
15-Sep-2009 05:00 FILE /var/spool/cron/root USER root pid 30917 cmd pacman -Sy
15-Sep-2009 05:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
15-Sep-2009 05:01 FILE /var/spool/cron/root USER root pid 31057 cmd /usr/sbin/run-cron /etc/cron.hourly
15-Sep-2009 06:00 FILE /var/spool/cron/root USER root pid 7217 cmd pacman -Sy
15-Sep-2009 06:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
15-Sep-2009 06:01 FILE /var/spool/cron/root USER root pid 7369 cmd /usr/sbin/run-cron /etc/cron.hourly
15-Sep-2009 07:00 FILE /var/spool/cron/root USER root pid 15704 cmd pacman -Sy
15-Sep-2009 07:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
15-Sep-2009 07:01 FILE /var/spool/cron/root USER root pid 15853 cmd /usr/sbin/run-cron /etc/cron.hourly
15-Sep-2009 08:00 FILE /var/spool/cron/root USER root pid 24531 cmd pacman -Sy
15-Sep-2009 08:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
15-Sep-2009 08:01 FILE /var/spool/cron/root USER root pid 24668 cmd /usr/sbin/run-cron /etc/cron.hourly
15-Sep-2009 09:00 FILE /var/spool/cron/root USER root pid 600 cmd pacman -Sy
15-Sep-2009 09:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
15-Sep-2009 09:01 FILE /var/spool/cron/root USER root pid 734 cmd /usr/sbin/run-cron /etc/cron.hourly
15-Sep-2009 10:00 FILE /var/spool/cron/root USER root pid 9376 cmd pacman -Sy
15-Sep-2009 10:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
15-Sep-2009 10:01 FILE /var/spool/cron/root USER root pid 9517 cmd /usr/sbin/run-cron /etc/cron.hourly
15-Sep-2009 11:00 FILE /var/spool/cron/root USER root pid 18141 cmd pacman -Sy
15-Sep-2009 11:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
15-Sep-2009 11:01 FILE /var/spool/cron/root USER root pid 18300 cmd /usr/sbin/run-cron /etc/cron.hourly
15-Sep-2009 12:00 FILE /var/spool/cron/root USER root pid 27232 cmd pacman -Sy
15-Sep-2009 12:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
15-Sep-2009 12:01 FILE /var/spool/cron/root USER root pid 27381 cmd /usr/sbin/run-cron /etc/cron.hourly
15-Sep-2009 13:00 FILE /var/spool/cron/root USER root pid 3772 cmd pacman -Sy
15-Sep-2009 13:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
15-Sep-2009 13:01 FILE /var/spool/cron/root USER root pid 3913 cmd /usr/sbin/run-cron /etc/cron.hourly
15-Sep-2009 14:00 FILE /var/spool/cron/root USER root pid 12270 cmd pacman -Sy
15-Sep-2009 14:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
15-Sep-2009 14:01 FILE /var/spool/cron/root USER root pid 12411 cmd /usr/sbin/run-cron /etc/cron.hourly
15-Sep-2009 15:00 FILE /var/spool/cron/root USER root pid 20925 cmd pacman -Sy
15-Sep-2009 15:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
15-Sep-2009 15:01 FILE /var/spool/cron/root USER root pid 21063 cmd /usr/sbin/run-cron /etc/cron.hourly
15-Sep-2009 16:00 FILE /var/spool/cron/root USER root pid 29606 cmd pacman -Sy
15-Sep-2009 16:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
15-Sep-2009 16:01 FILE /var/spool/cron/root USER root pid 29750 cmd /usr/sbin/run-cron /etc/cron.hourly
15-Sep-2009 17:00 FILE /var/spool/cron/root USER root pid 5996 cmd pacman -Sy
15-Sep-2009 17:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
15-Sep-2009 17:01 FILE /var/spool/cron/root USER root pid 6157 cmd /usr/sbin/run-cron /etc/cron.hourly
15-Sep-2009 18:00 FILE /var/spool/cron/root USER root pid 14779 cmd pacman -Sy
15-Sep-2009 18:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
15-Sep-2009 18:01 FILE /var/spool/cron/root USER root pid 14935 cmd /usr/sbin/run-cron /etc/cron.hourly
15-Sep-2009 19:00 FILE /var/spool/cron/root USER root pid 23745 cmd pacman -Sy
15-Sep-2009 19:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
15-Sep-2009 19:01 FILE /var/spool/cron/root USER root pid 23927 cmd /usr/sbin/run-cron /etc/cron.hourly
I'm not sure why it's not working, I can run rsnapshot from the command line and it creates a backup in the appropriate place .
-SMRT

20-Sep-2009 00:00 FILE /var/spool/cron/root USER root pid 7384 cmd /usr/bin/rsnapshot sync && /usr/bin/rsnapshot daily >> /home/brian/cronerrors 2>&1
20-Sep-2009 00:00 unable to exec /usr/sbin/sendmail -t, user -oem, output to sink null
Well it didn't output it to a file .
EDIT: Same thing happened again, however, this time it created a file but it's blank.
Last edited by iamsmrt (2009-09-21 05:11:06)

Similar Messages

  • Cronie not running program

    I tried to add a command to cron, but it won't run. I'm using crontab -e to edit, and after extensive googling, I can't find the solution to my problem.
    this is my crontab:
        SHELL=/bin/sh
        PATH=/usr/bin:/usr/sbin:/bin:/sbin
        * * * * * /usr/bin/notify-send hello
    I already checked if cron is running with ps -A|grep 'cron'. It is running. I also tried to read the logs at /var/log/crond.log but the logfile didn't exist.
    thanks,
    sakekasi

    Try this
    Scott
    Oooo....1000th post! Guess it's past time to make a donation!!
    Last edited by firecat53 (2012-09-07 03:22:27)

  • SBO_Backup Service is not Running In SAP Business one 8.8

    Hi Experts,
    Here We have Recently Upgraded from SAP Business one 2007 to SAP Business one 8.8.
    Previously the SBO_Backup service In Server Tools was running proberly,
    But after Upgrade the Backup service is not running .
    Kindly Give us your value solutions..
    Regards,
    M.Senthilnathan

    Hi,
    I Am Using Windows Server 2003 Small business Server edition.
    I have checked Ur solutions.
    Am running Server tools in Administrator Login only with Full Permissions.
    The License manager and DI server is running Only The SBO_Backup service is not Running!!!
    Regards,
    M.Senthilnathan

  • Cron job not running - script uses rsync, ssh (with id_rsa)

    Does anyone know how to get cron to run a rsync/ssh script which uses id_rsa for passwordless logins?
    I have a backup script I have slaved for months over that works wonderfully when running it from the command line.
    It uses rsync and connects with SSH (passwordless using ssh keys). I have setup id_rsa and id_rsa.pub for passwordless logins (this is my user account, and connects using root@ to the server)
    As stated all works find when run from the command line. But when I setup a cron job to run this file (exact same line I run from the command line) it does not execute. Actually, it does run, as I have an email notifiction which sends to me. It is just the rsync/ssh part that does not run.
    I have spent days and days trying to figure it out. No error messages occur, nothing.  Took me a while to find out cron is emailing the user account on Lion the messages (not to a proper email address).
    The error shows a permission denied, which I believe to be the cron user cannot use the id_rsa/ssh connection.
    Cron is running the script as my user, the same I use on the command line. I even tried copying the id_rsa to the root user .ssh folder in case cron is running as root but that does not work either.
    So does anyone know how to get cron to run this rsync/ssh script which used id_rsa for passwordless logins?
    Thanks a lot

    YES! Got it working, finally!
    So the issue is indeed cron/launchd not being able to access the ssh-agent which holds the key.
    So this is the solution...
    Download keychain for Mac:
    http://www.funtoo.org/wiki/Keychain
    Then once its installed and configured, the script to run needs this added to the top:
    eval `keychain --noask --eval id_rsa` || exit 1
    Note I am using id_rsa whereas keychains instructions refer to id_dsa so I just changed it and it works OK.
    When the script runs the first time it asks for the key password. Then it works from then on.
    What I do not know yet is will I need to re-enter the password when I logoff/logon again. That will cause an issue as I auto restart the Mac every day which means if I am off for a few days backup will stop (can you see the madness in this issue!).

  • Cron jobs not running

    Hi
    I am using linux 5.x
    uname -r
    2.6.18-348.16.1.0.1.el5PAE
    I have 2 crontab jobs set up as following .
    cat backup_confluence.sh
    #!/bin/bash
    # bash shell script to backup confluence backups to bccpfr
    # Schedule this script after the backups are performed that day
    # Setup the environment for the bourne-again shell
    . ./.bash_profile
    # Copy the daily backups for confluence
    find /usr/share/confluence/data/backups -mtime -1 \! -type d -exec ls {} \; -exec scp {} bccpfr:/usr/backup/confluence \;
    second
    cat  backup_jira.sh
    #!/bin/bash
    # bash shell script to backup jira backups to bccpfr
    # Schedule this script after the backups are performed that day
    # Setup the environment for the bourne-again shell
    . ./.bash_profile
    # Copy the daily backups for jira
    find /usr/share/jira/backups -mtime -1 \! -type d -exec ls {} \; -exec scp {} bccpfr:/usr/backup/jira \;
    cron as following
    $ crontab -l
    13 06 * * * /home/lsg/backup_jira.sh
    18 06 * * * /home/lsg/backup_confluence.sh
    Issue
    Both the above .sh are running properly when executed  manually but they are not running automatically at the given time crontab job.
    Kindly help me on this issue.
    many thanks
    J

    Is your crontask not running at all or is the scheduled task failing?
    Hey Tommy I sent you some replies yesterday; don't know what happened to them. Yes I can see that crond runs every ten minutes. Also when I created the crontab file using the command you sent here I could see that it was running every minute by looking at root mail in /var/log.
    Do you have execute permission set on the scripts?
    Yes
    Any info in /var/log/messages or e-mail?
    Output from mail-
    From root@razorback  Tue Feb 11 08:19:01 2014
    Return-Path: <root@razorback>
    Received: from razorback (localhost [127.0.0.1])
        by razorback (8.13.8/8.13.8) with ESMTP id s1BEJ154018231
        for <root@razorback>; Tue, 11 Feb 2014 08:19:01 -0600
    Received: (from root@localhost)
        by razorback (8.13.8/8.13.8/Submit) id s1BEJ1rh018198;
        Tue, 11 Feb 2014 08:19:01 -0600
    Date: Tue, 11 Feb 2014 08:19:01 -0600
    Message-Id: <201402111419.s1BEJ1rh018198@razorback>
    From: root@razorback (Cron Daemon)
    To: root@razorback
    Subject: Cron <root@razorback> $(date) >> /tmp/cronout
    Content-Type: text/plain; charset=UTF-8
    Auto-Submitted: auto-generated
    X-Cron-Env: <SHELL=/bin/sh>
    X-Cron-Env: <HOME=/root>
    X-Cron-Env: <PATH=/usr/bin:/bin>
    X-Cron-Env: <LOGNAME=root>
    X-Cron-Env: <USER=root>
    /bin/sh: Tue: command not found
    From root@razorback  Tue Feb 11 08:20:02 2014
    Return-Path: <root@razorback>
    Received: from razorback (localhost [127.0.0.1])
        by razorback (8.13.8/8.13.8) with ESMTP id s1BEK2BD018267
        for <root@razorback>; Tue, 11 Feb 2014 08:20:02 -0600
    Received: (from root@localhost)
        by razorback (8.13.8/8.13.8/Submit) id s1BEK1mT018238;
        Tue, 11 Feb 2014 08:20:01 -0600
    Date: Tue, 11 Feb 2014 08:20:01 -0600
    Message-Id: <201402111420.s1BEK1mT018238@razorback>
    From: root@razorback (Cron Daemon)
    To: root@razorback
    Subject: Cron <root@razorback> $(date) >> /tmp/cronout
    Content-Type: text/plain; charset=UTF-8
    Auto-Submitted: auto-generated
    X-Cron-Env: <SHELL=/bin/sh>
    X-Cron-Env: <HOME=/root>
    X-Cron-Env: <PATH=/usr/bin:/bin>
    X-Cron-Env: <LOGNAME=root>
    X-Cron-Env: <USER=root>
    /bin/sh: Tue: command not found

  • Windows Server Backup scheduled task run successfully but backup do not start (not running) on Windows Server 2012

    Hi,
    A backup job has been setup on Windows Server 2012 (Platform: Win32NT; ServicePack: ; Version: 6.2.9200.0; VersionString : Microsoft Windows NT 6.2.9200.0) via Windows Backup Software UI (Local Backup 1.0).
    It is appearing as a scheduled task "\Microsoft\Windows\Backup\Microsoft-Windows-WindowsBackup" belonging to user 'nt authority\system' in task scheduler.
    The problem is that the Backup job never start despite the scheduled task running and completing successfully (when run automatically or manually)!
    Would you be able to explain why and assist in resolving that issue?
    Here is what we know:
    When the backup is run manually via the Windows Backup Software UI, it works fine.
    When the backup is run via command line (as set in schedule task) in a cmd command prompt (as local/domain 'administrator' or as 'nt authority\system' which is possible by running command prompt via 'PsExec.exe -i -s cmd'), something like "%windir%\System32\wbadmin.exe
    start backup -templateId:{f11eb3aa-74e7-4ff4-a57b-d8d567ee3f77} -quiet", it works fine.
    If you manually run the preset scheduled task while logged in as administrator, the task run and complete successfully but the backup job does not start.
    Idem if you schedule task is run automatically at scheduled time.
    The schedule task run and complete successfully but the backup job does not start.
    It is confirmed by running the following in a command prompt as 'nt authority\system':
    schtasks /run /tn "\Microsoft\Windows\Backup\Microsoft-Windows-WindowsBackup"
    SUCCESS: Attempted to run the scheduled task "\Microsoft\Windows\Backup\Microsoft-Windows-WindowsBackup".
    Despite success result, the Backup job does not start running...
    No errors or warning appears anywhere in Event Logs (Microsoft > Windows > Backup or Task Scheduler) nor in the scheduled task History tab. The schedule task complete successfully but no Backup job is run...
    If scheduled task automatically set by Windows Backup software is duplicated (copied) and set manually it runs fine as 'administrator' and as 'nt authority\system' (subject that 'nt authority\system' is added to the 'Backup Operators' AD group).
    Here is an export of the current pre-set schedule task, is there any settings that need to be changed to make it works?
    <?xml version="1.0" encoding="UTF-16"?>
    <Task version="1.4" xmlns="http://schemas.microsoft.com/windows/2004/02/mit/task">
      <RegistrationInfo>
        <Author>MYDOMAIN\SERVER1</Author>
        <SecurityDescriptor>D:AR(A;OICI;GA;;;BA)(A;OICI;GR;;;BO)</SecurityDescriptor>
      </RegistrationInfo>
      <Triggers>
        <CalendarTrigger id="Trigger 1">
          <StartBoundary>2014-07-14T21:00:00</StartBoundary>
          <Enabled>true</Enabled>
          <ScheduleByDay>
            <DaysInterval>1</DaysInterval>
          </ScheduleByDay>
        </CalendarTrigger>
      </Triggers>
      <Principals>
        <Principal id="Author">
          <UserId>S-1-5-18</UserId>
          <RunLevel>HighestAvailable</RunLevel>
        </Principal>
      </Principals>
      <Settings>
        <MultipleInstancesPolicy>Parallel</MultipleInstancesPolicy>
        <DisallowStartIfOnBatteries>true</DisallowStartIfOnBatteries>
        <StopIfGoingOnBatteries>false</StopIfGoingOnBatteries>
        <AllowHardTerminate>true</AllowHardTerminate>
        <StartWhenAvailable>true</StartWhenAvailable>
        <RunOnlyIfNetworkAvailable>false</RunOnlyIfNetworkAvailable>
        <IdleSettings>
          <StopOnIdleEnd>false</StopOnIdleEnd>
          <RestartOnIdle>false</RestartOnIdle>
        </IdleSettings>
        <AllowStartOnDemand>true</AllowStartOnDemand>
        <Enabled>true</Enabled>
        <Hidden>false</Hidden>
        <RunOnlyIfIdle>false</RunOnlyIfIdle>
        <DisallowStartOnRemoteAppSession>false</DisallowStartOnRemoteAppSession>
        <UseUnifiedSchedulingEngine>false</UseUnifiedSchedulingEngine>
        <WakeToRun>false</WakeToRun>
        <ExecutionTimeLimit>P3D</ExecutionTimeLimit>
        <Priority>7</Priority>
      </Settings>
      <Actions Context="Author">
        <Exec>
          <Command>%windir%\System32\wbadmin.exe</Command>
          <Arguments>start backup -templateId:{f11eb3aa-74e7-4ff4-a57b-d8d567ee3f77} -quiet</Arguments>
        </Exec>
      </Actions>
    </Task>
    Thank you in advance for your feedback.

    Once again, the issue is not to run the backup manually from the command line but to have it run via the scheduled task setup by the Windows Backup software.
    By default, the schedule task is to be run as NT Authority\System, and when run under this account, the backup does not start (even though account is member of Backup Operators) and job can manually be run via elevated command prompt. This is not a normal
    behavior and constitute a major bug in Windows Server 2012.
    From my understanding the NT Authority\System account is a built-in account from Windows that should by default be part of the Administrators group (built-in) even though it does not explicitly appears like it in AD by default.
    This account shall have by default Administrators rights and Backup Operators rights (via the Administrators group) without being explicitly added to those groups (http://msdn.microsoft.com/en-gb/library/windows/desktop/ms684190%28v=vs.85%29.aspx). By design
    it is supposed to be the most powerful account which has unrestricted access to all local system resources. If that is not the case (as it seems) then this would constitute a major bug in Windows Server 2012 edition.
    As said previously and as you confirmed, currently by default NT Authority\System on Windows 2012 server cannot start backup manually via an elevated command prompt unless it is manually added to Backup Operators (or Administrators) group. But wouldn't that
    constitute a bug of Windows Server 2012?
    Our server has not yet been restarted since I added NT Authority\System account to the Administrators group explicitly manually so I cannot yet confirmed it would sort the issue. Indeed it is heavily in use so cannot easily be restarted. Will confirm when
    done.
    We also have an additional problem where after a while of last reboot, part of the Exchange ECP can no longer be properly loaded in the web browser due to compilation error (compilation is done via NT Authority\System account which seems to no longer have
    sufficient right to compile .NET code). What is strange is that it works at first and then stop working at some point... I am hopeful that adding NT Authority\System to the Administrators group would sort this issue as well but once again, that shall not be
    needed!!!
    Could a Windows Server 2012 update introduced some security policy changes or else that prevent NT Authority\System to have full power?

  • Upgraded my mac to yosemite and my toshiba backup will not run

    I upgraded my Macbook Pro (June 2012 model) to Yosemite and now my Toshiba /backup will not run.  I can see it when I attach it and am able to open the file.  The last backup was in November 2014. Is there a fix or do I have to purchase another backup drive?

    Custom will show automatically as soon as you just edit some options. So just go ahead, you don't need to select "custom"

  • TS3992 My iPhone 4 will not run a backup; msg is "The last backup could not be completed." Any ideas, good Apple People? Thanks.

    Hello, Apple Community:
    My iPhone 4 will not run a backup; it starts and after a few minutes msg received is:
    "The last backup could not be completed."
    Memory available: 3.7 GB
    Any ideas, good Apple People?
    Cheers!

    Hi there,
    I would recommend taking a look at the troubleshooting steps found in the article below.
    iOS: Troubleshooting Messages
    http://support.apple.com/kb/TS2755
    -Griff W.

  • Data protector online backup not running after system copy

    Dear guru's,
    My online backup is not running.The integration of oracle user sapsr3 with data protector 6.0 failed.the error message that came out is;
    Oracle Output: ORA-01031: insufficient privileges
    SP2-0640: Not connected
    sqlcode 1031
    Please advise.
    Thanks

    can you have a look Note 834917 - Oracle Database 10g: New database role SAPCONN
    Note 400241 - Problems with ops$ or sapr3 connect to Oracle
    cheers,
    -Sunil

  • After refomatting HDD, reinstalling Vista plus service packs, recovering files from Microsoft backup and installing new copy of Firefox 3.6, Firefox will not run. Have deleted all old M0zilla profile folders and reinstalled Firefox again to no avail.

    After computer would not boot and could not be repaired, I reformatted the HDD, reinstalled Vista plus all service packs and updates, recovered files from Microsoft backup and installed new copy of Firefox 3.6. Firefox will not run.
    I have deleted all old M0zilla profile folders and reinstalled Firefox again to no avail.
    After intallation was completed, the automatic startup just placed a small box on the screen "Import wiz". This just sat there with no activity. After I closed this box, none of the Firefox start buttons would open the program -- just the blue rotating icon for about 2 seconds then nothing.

    Hi,
    Please try to rebuil the WMI repository.
    For detailed information, please refer to the blog below,
    http://blogs.technet.com/b/askperf/archive/2009/04/13/wmi-rebuilding-the-wmi-repository.aspx
    If issue persists, due to sfc doesn't work, could you try to repair your system with the installation disk?
    Best Regards.
    Steven Lee
    TechNet Community Support

  • CRON did not run, how do I check ?

    I defined the cron jobs :
    crontab -e
    01 14 * * * /bin/sh /mydir/disk_mon.sh
    01 14 * * * echo 123 >> /mydir/a.txt
    these can be seen by crontab -l
    But obviously the cron did not run.
    log in as root, i'm able to see the crond service is running.
    There is no /ect/cron.allow file
    the /etc/cron.deny is empty
    What eles I can check?
    Thanks

    it was typo. i do not have /etc/cron.allow
    OS infor:
    uname -a
    Linux adcdak05 2.6.18-164.0.0.0.1.el5 #1 SMP Thu Sep 3 00:21:28 EDT 2009 x86_64 x86_64 x86_64 GNU/Linux
    # cat /etc/pam.d/crond
    # The PAM configuration file for the cron daemon
    auth sufficient pam_rootok.so
    auth required pam_env.so
    auth include system-auth
    account required pam_access.so
    account include system-auth
    session required pam_loginuid.so
    session include system-auth
    alll lines are commented out in /etc/security/access.conf
    Please help. thx

  • Cron entry do not run on PM hours??

    Hi
    I have a script in the crontab that strange enough do not run on PM hours like 23:30 or 11:30PM, but it runs at any AM hour like 11:30AM??
    Can you help?
    regards
    Edited by: Nandinho on Mar 1, 2012 8:46 AM

    Check the script permissions.
    Save the cron entries to a file like
    crontab -l > somefile
    crontab < somefile
    crontab -l to check that the entries are there.
    it should start executing.
    Hope you are running the same script at different hourly frequencies, change it as
    30 0,6,12,18,23 * * * /EMM/ftp_last24hours.ksh
    30 23 * * * /EMM/scripts/sendtapfiles.ksh
    Also, create output and error entries for debugging like
    30 0,6,12,18,23 * * * /EMM/ftp_last24hours.ksh 1>/tmp/outfile 2>/tmp/errorfile
    Edited by: Soorya on Mar 1, 2012 3:10 AM

  • Why does my cronjob not run?

    Hi, I wanted to back up my iphoto library to the cloud (Dropbox) as I'm worried about my NAS drive (it's a bit old) and also to extra safe with all my photos of the children.
    So using really helpful advise from Brad Harris (http://www.selfcontained.us/2012/04/27/backup-iphoto-with-google-drive/) and a few tweaks added myself (with a bit of help from a UNIX DBA at work, he hasn't got a Mac though) I copied my iphoto library to a Dropbox folder and set up the following as a cronjob to sync the copy with the real iphoto library, however it doesn't seem to run as on updates get copied over and the log file doesn't get updated:
    1 * * * * rsync -lrtuv --delete /Users/Nick/Pictures/iPhoto\ Library/ /Users/Nick/Dropbox/Pictures/iPhoto\ Library/ >>/Users/Nick/Documents/Personal/rsycn\ cronjob/Dropbox_rsycn_log.txt 2>&1
    This works fine direct from Terminal without the 1 * * * *  and also in an app created using Automator.  I've also setup the Automator app to run as a login item but it takes much longer as I think it is clashing with Dropbox which is also a login item, hence wanting to get crontab working properly so it can run at different times and more often than just at login.
    I'm on OS X 10.7.5.  I'm at IT PM, which as you probably know means I haven't a clue what I'm doing when it comes to technical stuff but that doesn't stop me, so I'm dangerous with a little knowledge.  If I'm also about to delete all my photos please let me know!
    Any ideas gratefully received.
    Thanks.

    Hi Nick,
    No do not copy what I wrote. In order to troubleshoot this issue you are going to need to understand a few shell basics along with how cron works. First your shell's environment then cron's environment. Read the manual for your shell and then man 5 crontab. Without setting environment variables in your crontab then the evironment variables will be set as follows by cron:
    SHELL will be set to /bin/sh
    PATH will be set to /usr/bin:/bin
    MAILTO will be set to Nick
    LOGNAME will be set to Nick
    USER will be set to Nick
    HOME will be set to /Users/Nick
    Shell- /bin/sh is sufficient as long as the command(s) in your crontab are not written with any extentions to sh
    Path- can be a gotcha if the command you want to use is not in /bin or /usr/bin
    Mailto- can spam your email. Set MAILTO as follows:
    MAILTO=""
    You can use the other variables in your commands. Such as in your paths
    $HOME/Pictures/iPhoto\ Library/
    Start by removing the redirection to the log in your crontab. Add a picture to your iPhoto library and check whether rsync is working.
    If cron is running rsync then add the redirection to the log file without redirecting standard out and standard error. Is the log written to? Make sure that the path to the log file is written correctly. You can also use rsync to write to a log file- RTM.
    (And a final clue)
    1 * * * * rsync..........
    ^ ^ ^ ^ ^
    Are these spaces or tabs?

  • Iphone 6 backup to iCloud not working

    Initially I had the issue where my phone was restoring from iCloud for 2 weeks and never finished. I was unable to do the upgrade to 8.1 because of this, so I canceled the restore and tried to do a backup to iCloud. I let it run (Estimating time remaining...) for a long time, like 30 minutes or something. Each time I tried this it would error off saying it couldn't finish the operation. One time it said it was going to take 2 days to complete the backup, but then it errors off as just mentioned. So I did a google search for "iPhone 6 backup to iCloud not working" and found a link to the forums for the incessant restore issue, it said to do a manual backup through iTunes, then immediately do a restore, then do the upgrade to 8.1.
    However, I still have the issue of the backup taking forever.
    Anyone encounter this issue and find a fix?
    Many thanks.

    I suggest you contact Apple Support.

  • Windows Backup - The backup application coud not start due to an internal error: You must be logged on as an administrator to perform this task. (0x8100000010).

    Windows 7 users in my domain are unable to configure or change backup settings.  Users are able to open Control Panel > Backup and Restore, but when they click
    Change settings, they receive the error: Windows Backup - The backup application coud not start due to an internal error: You must be logged on as an administrator to perform this task. (0x8100000010).
    The same error is received when executing sdclt.exe /configure at the command prompt, regardless of whether the command prompt is launched using "run as administrator".
    I've done significant testing, and have been able to determine that the local administrator account is able to configure backups before the computer is joined to the domain.  Once the computer is joined to the domain, the local administrator account
    and domain users who are in the local administrators group are no longer able to configure backup and restore.  Domain administrators are able to configure backups.
    This is a new issue, which began occuring sometime in the last 2 months.  3 months ago, users were able to configure backups without issue, and those computers with backups configured are still able to run their backups and do restores; however the
    settings can no longer be changed. 
    Clearly something in the domain is doing this, but Group Policy has not been altered, and I can find no setting that would be doing this in any case.  Any help is appreciated. 

    Hi,
    So you mean you have tried different accounts in the local Administrator group and all of them failed?
    If so, please check what group the local Administrator group belongs to? Does it belong to a group with limited privileges, such as the Guests group?
    Tim Quan

Maybe you are looking for

  • Can EJB and BC exist at the same time in one project?

    having to use ADF's BC and EJB to access data in both way due to the special requirements, but I am always getting the deployment failure. can Ejbs and BC components exist at the same time in one project?

  • Help needed in Portal Search

    Hi, I have built a portal site using HTML Portlets and JavaPDK portlets, now I want to perform search on the contents. I have studied about oracle text and ultra search but could not find any clue how they interact with my dynamic JavaPDK portlet's c

  • Apple iPhone 3GS 8GB Blank Screen While Updating to IOS4.3.3

    Hi have iPhone 3GS 8GB. This phone I got as replacement from Apple for my Previous iPhone which got stuck in recovery. This replacement phone was working on IOS 4.2.1. A few days back Apple has released IOS 4.3.3 and while updating my iPhone via iTun

  • Adobe forms: How to reduce the spacing dynamically between two variables

    Hi All, I have a requirement where at the header I am printing the address and below that other contact detials of vendor. I have used standard address element of adobe forms and printing it on the form using a variable. When my addres contains 3 lin

  • Could not complete the ... command because of a problem with the filter module interface

    I just reinstalled Photoshop CS6. I'm running OS X 10.8.2 . I use the Nik plugins suite, and reinstalled them as well. Now whenever I try to use one of those plugins I get the error "Could not complete the ... command because of a problem with the fi