Automating Backup

If you want to automate the process of the backup, KBackup offers different command line options to help with this:

  • --auto

    When you run KBackup with this option and a given .kbp profile, it will start, load the given profile, run the backup and terminate when done. All this is done with a visible KBackup user interface.

  • --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.

    When using --autobg the output from KBackup - showing the progress of the backup - is written to stderr. By default, the output includes just a few important messages and a summary at the end. If you pass --verbose in addition, then you will also see each file name currently being backed up.