Changes

Jump to navigation Jump to search
3,872 bytes added ,  20:15, 10 May 2007
m
Line 172: Line 172:     
=== [Todo] Command line options ===
 
=== [Todo] Command line options ===
...
+
<code><b>affa --run JOB</b></code><br>
 +
Starts a job run. Usually done by the cronjob.  
    +
<code><b>affa --make-cronjobs</b></code><br>
 +
Configures the cronjobs as schedule in the jobs records.
 +
 +
<code><b>affa --send-keys --job=JOB</b></code><br>
 +
Sends the public key to the host 'remoteHostName' as configure in the record of job JOB. Generates the DSA key, ff not already done.
 +
 +
<code><b>affa --send-keys TARGETHOST [PORT]</b></code><br>
 +
Sends the public key to the TARGETHOST. TARGETHOST is a FQHN or an IP address. Give PORT, if sshd on the TARGETHOST listen to another than the standard port 22. Generates the DSA key, ff not already done.
 +
 +
<code><b>affa --full-restore JOB [ARCHIVE]</b></code><br>
 +
Does a full restore from the backup ARCHIVE on the remote source server as defined in the JOB record. If ARCHIVE is not given, the archive 'scheduled.0' is used as the default. The full restore reconstruct the server as it was at the time of the backup. After the restore the source host reboots.
 +
 +
<code><b>affa --rise JOB [ARCHIVE]</b></code><br>
 +
Runs a full restore from the backup ARCHIVE on the Affa server <b>(!)</b> from the backup ARCHIVE of job JOB. In oter words: After completion, the Affa box reboots as a clone of the source server. Ensure, that the source server has been powered off before you reboot the Affa box, otherwise the network interface will not come up. This is important, when you run --rise remotely. The --rise feature only works with SME 7 servers.
 +
 +
<code><b>affa --undo-rise</b></code><br>
 +
This feature reverts a risen Affa box to a backup server. After a reboot, all configured jobs will work again.
 +
 +
<code><b>affa --list-archives [--csv] JOB</b></code><br>
 +
Displays a table of all present archives of job JOB with date, number of files, size and disk usage. See chapter 'Restore' for an output example.
 +
 +
<code><b>affa --status [--csv]</b></code><br>
 +
Displays a table of all configured jobs with enable status, time of last and next run, size, disk usage and the number of scheduled (s), daily (d), weekly (w), monthly (m) and yearly (y) archives. Last time shows 'failed', if a job did not run in the last 24h.
 +
<small><pre>
 +
Affa version 0.3.0 on backup.mydomain.de (10.204.48.2)
 +
+------------+---------+--------+-------+--------+------------+----------------+
 +
| Job        | Enabled | Last  | Next  |  Size | Disk usage | N of s,d,w,m,y |
 +
+------------+---------+--------+-------+--------+------------+----------------+
 +
| bookkeep  | yes    | 00:02  | 23:30 |  7.9GB |  491MB/37% | 2,7,4,1,0      |
 +
| crm        | no      | failed | 07:20 |  47MB |  491MB/37% | 7,7,4,1,0      |
 +
| fespdc    | yes    | 18:46  | 21:45 |  34GB |  491MB/37% | 6,7,4,1,0      |
 +
| helpdesk  | yes    | 19:40  | 07:40 |  68MB |  491MB/37% | 7,7,4,1,0      |
 +
| imageserv  | yes    | 23:08  | 23:00 |  17GB |  491MB/37% | 2,7,1,0,0      |
 +
| intraweb  | yes    | 19:31  | 23:30 |  1.4GB |  491MB/37% | 7,7,4,1,0      |
 +
| pdcaus2    | yes    | 12:15  | 23:00 |  4.9GB |  491MB/37% | 2,7,4,1,0      |
 +
| persoff    | yes    | running (pid 13229)    |  491MB/37% | 2,7,4,1,0      |
 +
| primmail  | yes    | 19:09  | 23:00 |  43GB |  491MB/37% | 7,7,4,1,0      |
 +
| rayofhope  | yes    | 23:01  | 22:30 |  19GB |  491MB/37% | 2,7,4,0,0      |
 +
| sozserv    | yes    | 22:30  | 22:30 |  8.0GB |  491MB/37% | 2,7,4,1,0      |
 +
+------------+---------+--------+-------+--------+------------+----------------+
 +
</pre></small>
 +
 +
 +
<code><b>affa --send-status</b></code><br>
 +
Sends the status table to the email adresses configured in the 'DefaultAffaConfig' record. Use by the cronjob 'affa-status'.
 +
 +
<code><b>affa --mailtest JOB</b></code><br>
 +
Sends a test email to the email adresses configured in the JOB record. Use this to verify, that your mail processing is functional.
 +
 +
<code><b>affa --cleanup JOB</b></code><br>
 +
<code><b>affa --delete-job JOB</b></code><br>
    
=== Example setups ===
 
=== Example setups ===
501

edits

Navigation menu