java.lang.Object
com.aoindustries.aoserv.backup.BackupDaemon

public final class BackupDaemon extends Object
The FailoverFileReplicationDaemon runs on every server that is backed-up.
Author:
AO Industries, Inc.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    main(String[] args)
    Runs the standalone BackupDaemon with the values provided in com/aoindustries/aoserv/backup/aoserv-backup.properties.
    void
    Runs the backup now if not already running.
    static void
    Shows command line usage.
    void
    Starts the backup daemon (as one thread per FileReplication.
    void
    Stops the backup daemon and any currently running backups.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

  • Method Details

    • start

      public void start() throws IOException, SQLException
      Starts the backup daemon (as one thread per FileReplication.
      Throws:
      IOException
      SQLException
    • stop

      public void stop() throws IOException, SQLException
      Stops the backup daemon and any currently running backups.
      Throws:
      IOException
      SQLException
    • runNow

      public void runNow(FileReplication ffr)
      Runs the backup now if not already running.
      See Also:
      • BackupDaemon.BackupDaemonThread.runNow()
    • main

      public static void main(String[] args)
      Runs the standalone BackupDaemon with the values provided in com/aoindustries/aoserv/backup/aoserv-backup.properties. This will typically be called by the init scripts of the dedicated machine.
    • showUsage

      public static void showUsage() throws IOException
      Shows command line usage.
      Throws:
      IOException