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