Changes

Jump to navigation Jump to search
612 bytes added ,  09:56, 22 May 2007
no edit summary
Line 66: Line 66:  
# edit /root/prodbox-job.pl and set<br><code>my $jobname='prodbox';</code><br>and<br><code>'remoteHostName‘=>'10.200.48.1',</code>
 
# edit /root/prodbox-job.pl and set<br><code>my $jobname='prodbox';</code><br>and<br><code>'remoteHostName‘=>'10.200.48.1',</code>
 
# write the configuration<br><code># /root/prodbox-job.pl</code>
 
# write the configuration<br><code># /root/prodbox-job.pl</code>
# generate the DSA keys and send the public key to the 'prodbox'<br><code># affa --send-keys --job=prodbox </code>
+
# generate the DSA keys and send the public key to the 'prodbox'<br><code># affa --send-keys prodbox</code>
 
# run the job manually<br><code># affa --backup prodbox</code>
 
# run the job manually<br><code># affa --backup prodbox</code>
   Line 177: Line 177:  
Configures the cronjobs as schedule in the jobs records.
 
Configures the cronjobs as schedule in the jobs records.
   −
<code><b>affa --send-keys --job=JOB</b></code><br>
+
<code><b>affa --send-keys 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.
 
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>
+
<code><b>affa --send-keys --host=TARGETHOST [--port=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.
 
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.
   Line 199: Line 199:  
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.
 
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>
 
<small><pre>
Affa version 0.3.0 on backup.mydomain.de (10.204.48.2)
+
Affa version 0.4.0 on backup.mydomain.de (10.204.48.2)
 
+------------+---------+--------+-------+--------+------------+----------------+
 
+------------+---------+--------+-------+--------+------------+----------------+
 
| Job        | Enabled | Last  | Next  |  Size | Disk usage | N of s,d,w,m,y |
 
| Job        | Enabled | Last  | Next  |  Size | Disk usage | N of s,d,w,m,y |
Line 229: Line 229:  
<code><b>affa --cleanup JOB</b></code><br>
 
<code><b>affa --cleanup JOB</b></code><br>
 
After you have lowered a keep value, e.g. scheduledKeep, then archives with a higher indices will no longer be shifted and will exist for ever. This option find these archives and delete them.
 
After you have lowered a keep value, e.g. scheduledKeep, then archives with a higher indices will no longer be shifted and will exist for ever. This option find these archives and delete them.
 +
 +
<code><b>affa --rename-job JOB NEWNAME</b></code><br>
 +
Renames the job JOB to NEWNAME including all database records and archive directories.
 +
 +
<code><b>affa --move-archive JOB NEWROOTDIR</b></code><br>
 +
Moves the archive directory of job JOB to the rootdir NEWROOTDIR and adjusts the property RootDir. NEWROOTDIR must be a full path starting with a slash. As moving across filesystems (e.g. from an external USB drive to the local disk) is not possible, Affa uses a copy command in this case and deletes the source directory after that. Depending on the archive size, copying across filesystems can take a long time.
    
<code><b>affa --delete-job JOB</b></code><br>
 
<code><b>affa --delete-job JOB</b></code><br>
Line 234: Line 240:     
'''Note:''' Options can be abbreviated to uniqueness, e.g. --mak is equal to --make-cronjobs
 
'''Note:''' Options can be abbreviated to uniqueness, e.g. --mak is equal to --make-cronjobs
 +
    
=== Example setups ===
 
=== Example setups ===
Line 249: Line 256:  
# edit /root/ibay-staff-job.pl and set<br><code>my $jobname='ibay-staff';</code><br>and<br><code>'remoteHostName‘=>'82.123.1.1',</code><br><code>'TimeSchedule'=>'0230',</code><br><code>'SMEServer'=>'no',</code><br><code>'Include[0]'=>'/home/e-smith/files/ibays/staff1',</code><br><code>'Include[1]'=>'/home/e-smith/files/ibays/staff2',</code>
 
# edit /root/ibay-staff-job.pl and set<br><code>my $jobname='ibay-staff';</code><br>and<br><code>'remoteHostName‘=>'82.123.1.1',</code><br><code>'TimeSchedule'=>'0230',</code><br><code>'SMEServer'=>'no',</code><br><code>'Include[0]'=>'/home/e-smith/files/ibays/staff1',</code><br><code>'Include[1]'=>'/home/e-smith/files/ibays/staff2',</code>
 
# write the configuration<br><code># /root/ibay-staff-job.pl</code>
 
# write the configuration<br><code># /root/ibay-staff-job.pl</code>
# send the public key to the production server<br><code># affa --send-keys --job=ibay-staff</code>
+
# send the public key to the production server<br><code># affa --send-keys ibay-staff</code>
 
# check next morning<br><code># affa --list-archives ibay-staff</code><br><code># affa --status</code><br><code># ls /var/affa/ibay-staff</code>
 
# check next morning<br><code># affa --list-archives ibay-staff</code><br><code># affa --status</code><br><code># ls /var/affa/ibay-staff</code>
   Line 319: Line 326:  
1. You first must check what backup archives are available. The jobname of this server backup ist 'prodserv'.<br><br><code># affa --list-archives prodserv</code><br>
 
1. You first must check what backup archives are available. The jobname of this server backup ist 'prodserv'.<br><br><code># affa --list-archives prodserv</code><br>
 
<small><pre>
 
<small><pre>
Affa version 0.3.0 on affa1.mydomain.de (10.204.48.2)
+
Affa version 0.4.0 on affa1.mydomain.de (10.204.48.2)
 
+-----------------------------------------------------------------------------+
 
+-----------------------------------------------------------------------------+
 
| Job: prodserv                                                              |
 
| Job: prodserv                                                              |
501

edits

Navigation menu