Changes

Jump to navigation Jump to search
346 bytes added ,  11:38, 12 June 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 (this makes the database entries and sets up the cronjobs)<br><code># /root/prodbox-job.pl</code><br>
 
# write the configuration (this makes the database entries and sets up the cronjobs)<br><code># /root/prodbox-job.pl</code><br>
# generate the DSA keys and send the public key to the 'prodbox'<br><code># affa --send-keys prodbox</code>
+
# generate the DSA keys and send the public key to the 'prodbox'<br><code># affa --send-key prodbox</code>
 
# run the job manually<br><code># affa --backup prodbox</code>
 
# run the job manually<br><code># affa --backup prodbox</code>
   Line 155: Line 155:  
| AutomountDevice<br>AutomountPoint
 
| AutomountDevice<br>AutomountPoint
 
| full path  || Device and mountpoint of backup device (e.g. USB disk). Device is automounted before a job starts and unmounted after job completion. With both properties empty no automount is done.
 
| full path  || Device and mountpoint of backup device (e.g. USB disk). Device is automounted before a job starts and unmounted after job completion. With both properties empty no automount is done.
 +
|-
 +
| AutomountOptions
 +
| string  || An option string passed to the mount command
 
|-
 
|-
 
| preJobCommand<br>postJobCommand
 
| preJobCommand<br>postJobCommand
Line 206: Line 209:  
Configures the cronjobs as schedule in the jobs records.
 
Configures the cronjobs as schedule in the jobs records.
   −
<code><b>affa --send-keys JOB</b></code><br>
+
<code><b>affa --send-key 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 --host=TARGETHOST [--port=PORT]</b></code><br>
+
<code><b>affa --send-key --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 265: Line 268:  
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.
 
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 [--revoke-key] JOB</b></code><br>
Irreversibly deletes a job including all archives, configuration and report databases.
+
Irreversibly deletes a job including all archives, configuration and report databases. With given --revoke-key option, the pulbic key on the remote server will be deleted.
 +
 
 +
<code><b>affa --revoke-key JOB</b></code><br>
 +
<code><b>affa --revoke-key --host=TARGETHOST [--port=PORT]</b></code><br>
 +
Deletes the public dsa key on the remote server.
    
'''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
Line 284: Line 291:  
# 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 ibay-staff</code>
+
# send the public key to the production server<br><code># affa --send-key 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>
  
501

edits

Navigation menu