Announcement

Collapse
No announcement yet.

KBackup settings questions

Collapse
This topic is closed.
X
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    KBackup settings questions

    Have setup the following to auto run KBackup:
    System Settings - Task Scheduler - Configure and Schedule Tasks - Personal Cron - New Task
    Click image for larger version

Name:	Snap1.jpg
Views:	1
Size:	27.2 KB
ID:	647834

    KBackup auto run: At 06:15am, every Mon, Wed, and Fri of every month

    To confirm the above settings have been set:
    bumpy@bumpyputer:~$ crontab -l
    #No comment
    15 6 * * 1,3,5 kbackup --auto /media/BUMPYBKUPS/BumpyBackups/bumpy_profile.kbp
    # File generated by KCron the Thursday 16 August 2012 8:04 AM.

    Question: The Task Schedluler Setup displays this Warning:
    Important ?
    Don't forget to tell your system to start the crond cron daemon first, or the settings in this module will not work.
    How do I "tell the system"?
    Obviusly I will have to wait untill 6.15am tomorrow (Friday) to determine if the above will work!

    #2
    With the (K/X/L/...)Ubuntu the Cron should be automatically running. You could check it with the System Log Viewer: K > Applications > System > System Log Viewer ; System Log, Filter = Cron.

    Have you tried ?

    - How to Ask a Question on the Internet and Get It Answered
    - How To Ask Questions The Smart Way

    Comment


      #3
      Thanks - will keep an eye on it.
      I still would like an answer to my previous question:
      Question: The Task Schedluler Setup displays this Warning:
      "Important:
      Don't forget to tell your system to start the crond cron daemon first, or the settings in this module will not work."
      How do I "tell the system"? or have I already done that?

      Comment


        #4
        The Task Schedluler Setup displays this Warning:
        "Important:
        Don't forget to tell your system to start the crond cron daemon first, or the settings in this module will not work."
        ??

        At here the the Task Scheduler / KCron is not showing warnings - At here Kubuntu 11.10 & 12.04; KDE 4.7 & KDE 4.8.

        Testing with the:
        Code:
        kdialog --msgbox "Just Testing" --display :0


        No warnings. At here the Cron is starting when the system is booting up and stopping when the system is shutting down. No need to start/restart the Cron.

        A link - if your Cron is not starting: http://ubuntuforums.org/showthread.php?t=1741298
        Last edited by OneLine; Aug 16, 2012, 01:04 PM.
        Have you tried ?

        - How to Ask a Question on the Internet and Get It Answered
        - How To Ask Questions The Smart Way

        Comment


          #5
          Thanks - will see what tomorrow brings!

          Comment


            #6
            cron job failed to run Fri Aug 17 2012 06.15am

            Friday 6.15am 17 August
            Cron failed to run
            bumpy@bumpyputer:~$ sudo service cron start
            start: Job is already running: cron

            bumpy@bumpyputer:~$ ps -ef | grep cron
            root 1100 1 0 05:45 ? 00:00:00 cron
            bumpy 4419 4299 0 06:24 pts/0 00:00:00 grep --color=auto cron

            System Log Viewer: K > Applications > System > System Log Viewer ; System Log, Filter = Cron.
            KSystemLog

            17/08/12 06:15:01 AM bumpyputer CRON[4257] (bumpy) CMD (kbackup --auto /media/BUMPYBKUPS
            /BumpyBackups/bumpy_profile.kbp)
            17/08/12 06:15:02 AM bumpyputer CRON[4256] (CRON) info (No MTA installed, discarding output)
            17/08/12 06:16:22 AM bumpyputer crontab[4354] (bumpy) LIST (bumpy)
            17/08/12 06:17:01 AM bumpyputer CRON[4356] (root) CMD ( cd / && run-parts --report /etc/cron.hourly)
            17/08/12 06:25:01 AM bumpyputer CRON[4421] (root) CMD (test -x /usr/sbin/anacron || ( cd / && run-parts --report /etc/cron.daily ))
            17/08/12 06:34:30 AM bumpyputer crontab[4535] (bumpy) LIST (bumpy)

            In System Settings - Task Sceduler, on clicking the "Run Now" button, the back runs perfectly!
            So does manually clicking KBackup tray icon.
            Any ideas?
            Last edited by Bumpalot; Aug 17, 2012, 08:13 AM. Reason: adding more info

            Comment


              #7
              By the KBackup Handbook - Automating Backup:
              --autobg

              When you run KBackup with this option and a given .kbp profile, it will run the same process as with --auto but _without_ showing any graphical user interface. Therefore the suffix "bg" which stands for "background" - everything is done in the background so this is the right option to be used when you do your backups e.g. started by a cron job...
              => Try with the "--autobg" option...
              Have you tried ?

              - How to Ask a Question on the Internet and Get It Answered
              - How To Ask Questions The Smart Way

              Comment


                #8
                Set as suggested. Failed to run (no new backup file created in destination).
                bumpy@bumpyputer:~$ sudo service cron start
                [sudo] password for bumpy:
                start: Job is already running: cron
                Guess I will have to it from the Sytem Tray icon for now untill a solution can be found!
                If you come across other suggestions I would appreciate hearing about them! Thanks for your help.
                I will keep this thread open for now.

                Comment


                  #9
                  System Log - KSystemLog Filter: Cron
                  18/08/12 08:37:01 AM bumpyputer cron[1106] (bumpy) RELOAD (crontabs/bumpy)
                  18/08/12 08:40:01 AM bumpyputer CRON[5016] (bumpy) CMD (kbackup --auto /media/BUMPYBKUPS/BumpyBackups/bumpy_profile.kbp)
                  18/08/12 08:40:01 AM bumpyputer CRON[5015] (CRON) info (No MTA installed, discarding output)
                  Is this the problem - (CRON) info (No MTA installed, discarding output) ?

                  Comment


                    #10
                    MTA - Mail Transfer Agent

                    The Cron is sending mail if the mail program is installed.

                    One way to get the system mail is to install the package: mailutils


                    Testing

                    Testing with:
                    $ crontab -l
                    #autobg test
                    10 22 18 8 * kbackup --autobg /home/oneline/Public/Test.kbp

                    # File generated by KCron the Saturday 18 August 2012 22:05.
                    => Not working. The Cron is sending mail - reading the mail from the konsole with the command: mail
                    From: root@Quantal (Cron Daemon)
                    To: oneline@Quantal
                    Subject: Cron <oneline@Quantal> kbackup --autobg /home/oneline/Public/Test.kbp

                    Date: Sat, 18 Aug 2012 22:10:01 +0300 (EEST)

                    Fontconfig warning: "/etc/fonts/conf.d/50-user.conf", line 9: reading configurations from ~/.fonts.conf is deprecated.
                    Fontconfig warning: "/etc/fonts/conf.d/65-droid-sans-fonts.conf", line 103: Having multiple values in <test> isn't supported and may not works as expected
                    Fontconfig warning: "/etc/fonts/conf.d/65-droid-sans-fonts.conf", line 138: Having multiple values in <test> isn't supported and may not works as expected
                    kbackup(24288)/kdeui (kdelibs): Session bus not found
                    To circumvent this problem try the following command (with Linux and bash)
                    export $(dbus-launch)
                    KCrash: Application 'kbackup' crashing...
                    KCrash: Attempting to start /usr/lib/kde4/libexec/drkonqi from kdeinit
                    Unable to start Dr. Konqi
                    => The problem seems to be:
                    Session bus not found
                    Workaround

                    Searching... => A bug report: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=596903

                    It is marked as fixed, but still...

                    Trying the workaround:
                    Code:
                    dbus-launch --sh-syntax kbackup --autobg /root/mybackup.kbp
                    i.e at here:
                    $ crontab -l
                    #autobg test
                    20 22 18 8 * dbus-launch --sh-syntax kbackup --autobg /home/oneline/Public/Test.kbp

                    # File generated by KCron the Saturday 18 August 2012 22:17.
                    => Working at here. The Cron is mailing:
                    From: root@Quantal (Cron Daemon)
                    To: oneline@Quantal
                    Subject: Cron <oneline@Quantal> dbus-launch --sh-syntax kbackup --autobg /home/oneline/Public/Test.kbp

                    Date: Sat, 18 Aug 2012 22:20:02 +0300 (EEST)
                    ...
                    -- Backup successfully finished --
                    ...
                    This was with

                    Kubuntu 12.10; KDE 4.9.0; KBackup: 0.8
                    Last edited by OneLine; Aug 18, 2012, 03:17 PM.
                    Have you tried ?

                    - How to Ask a Question on the Internet and Get It Answered
                    - How To Ask Questions The Smart Way

                    Comment


                      #11
                      autobg makes no difference -still won't work!
                      Last edited by Bumpalot; Aug 21, 2012, 05:05 PM.

                      Comment


                        #12
                        autobg make no difference -still won't work1

                        Comment


                          #13
                          And: with the dbus-launch ? (#10: http://www.kubuntuforums.net/showthr...l=1#post306538)

                          And/or: What is the error message with the MTA installed ?



                          There are other options if you don't want to install a MTA: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=620392

                          Ubuntu Mailserver docs: https://help.ubuntu.com/community/MailServer
                          Have you tried ?

                          - How to Ask a Question on the Internet and Get It Answered
                          - How To Ask Questions The Smart Way

                          Comment

                          Working...
                          X