Changes

Jump to navigation Jump to search
217 bytes added ,  12:09, 12 June 2007
no edit summary
Line 231: Line 231:  
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. For disabled jobs 'Last' always shows 'failed' after 24 h. To see the date and time of the last run of those jobs use the --list-archives option. Column 'Next' shows the time when the next run will be started, if 'Enabled' is 'yes'. Column 'Disk usage' shows the usage of the partion, where the RootDir of the job is located on. If all jobs are located in the same RootDir, identical disk usage is shown for all jobs. If RootDir is /var/affa, the usage of the SME server system partition is shown.
 
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. For disabled jobs 'Last' always shows 'failed' after 24 h. To see the date and time of the last run of those jobs use the --list-archives option. Column 'Next' shows the time when the next run will be started, if 'Enabled' is 'yes'. Column 'Disk usage' shows the usage of the partion, where the RootDir of the job is located on. If all jobs are located in the same RootDir, identical disk usage is shown for all jobs. If RootDir is /var/affa, the usage of the SME server system partition is shown.
 
<small><pre>
 
<small><pre>
Affa version 0.4.4 on backup.mydomain.de (10.204.48.2)
+
Affa version 0.5.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 |
 
+------------+---------+--------+-------+--------+------------+----------------+
 
+------------+---------+--------+-------+--------+------------+----------------+
| bookkeep  | yes    | 00:02 | 23:30 |  7.9GB 491GB/37% | 2,7,4,1,0      |
+
| bookkeep  | yes    | 23:48 | 23:30 |  4.5GB 616GB/47% | 2,7,4,2,0      |
| crm        | no      | failed | 07:20 |  47MB |  491GB/37% | 7,7,4,1,0      |
+
| crm        | yes    | 11:20  | 13:20 |  47MB |  616GB/47% | 7,7,4,2,0      |
| fespdc    | yes    | 18:46 | 21:45 |  34GB 491GB/37% | 6,7,4,1,0      |
+
| fespdc    | yes    | 09:55 | 12:45 |  40GB 616GB/47% | 6,7,4,2,0      |
| helpdesk  | yes    | 19:40  | 07:40 |  68MB 491GB/37% | 7,7,4,1,0      |
+
| helpdesk  | yes    | failed | 13:40 |  70MB 616GB/47% | 7,7,4,2,0      |
| imageserv  | yes    | 23:08 | 23:00 |  17GB 491GB/37% | 2,7,1,0,0      |
+
| imageserv  | yes    | 23:01 | 23:00 |  19GB 616GB/47% | 2,7,4,1,0      |
| intraweb  | yes    | 19:31 | 23:30 |  1.4GB |  491GB/37% | 7,7,4,1,0      |
+
| intraweb  | yes    | 10:32 | 13:30 |  1.4GB |  616GB/47% | 7,7,4,2,0      |
| pdcaus2    | yes    | 12:15 | 23:00 4.9GB 491GB/37% | 2,7,4,1,0      |
+
| pdcaus2    | yes    | 23:01 | 12:15 5.4GB 616GB/47% | 2,7,4,2,0      |
| persoff    | yes    | running (pid 13229)    |  491GB/37% | 2,7,4,1,0      |
+
| persoff    | yes    | running (pid 17521)    |  616GB/47% | 2,7,4,2,0      |
| primmail  | yes    | 19:09  | 23:00 |  43GB 491GB/37% | 7,7,4,1,0      |
+
| primmail  | yes    | 10:09  | 13:00 |  45GB 616GB/47% | 7,7,4,2,0      |
| rayofhope  | yes    | 23:01 | 22:30 |  19GB 491GB/37% | 2,7,4,0,0      |
+
| rayofhope  | yes    | 22:32 | 22:30 |  20GB 616GB/47% | 2,7,4,1,0      |
| sozserv    | yes    | 22:30  | 22:30 |  8.0GB |  491GB/37% | 2,7,4,1,0      |
+
| sozserv    | yes    | 22:30  | 22:30 |  8.0GB |  616GB/47% | 2,7,4,2,0      |
 
+------------+---------+--------+-------+--------+------------+----------------+
 
+------------+---------+--------+-------+--------+------------+----------------+
 +
| az32share  | no      | -      | 02:20 |  234MB |  616GB/47% | 7,7,2,0,0      |
 +
| azpdc      | no      | -      | 21:00 |  42GB |  616GB/47% | 2,7,1,0,0      |
 +
+------------+---------+--------+-------+--------+------------+----------------+
 +
 
</pre></small>
 
</pre></small>
   −
With --csv, the output is in machine readable colon separated format.
+
With --csv, the output is printed in a machine readable colon separated format.
      Line 280: Line 284:  
==== [Todo] Standard ====
 
==== [Todo] Standard ====
 
Dedicated Affa server to backup all production servers<br>...
 
Dedicated Affa server to backup all production servers<br>...
 +
    
==== [Todo] Local Affa server plus a Affa server in remote location ====
 
==== [Todo] Local Affa server plus a Affa server in remote location ====
# Standard setup<br>...
+
 
# Chained setup<br>...
      
==== Backup single ibays  ====
 
==== Backup single ibays  ====
Line 341: Line 345:  
=== Restore ===
 
=== Restore ===
 
==== Restore single files or directories ====
 
==== Restore single files or directories ====
<b>Example 1:</b>  It's May, 9th 20:00, when user 'briedlin' ask you to restore the messages of his mailbox 'orders' he has inadvertently deleted today at 14:00 h.
+
<b>Example 1:</b>  It's June, 12th 11:30, when user 'briedlin' ask you to restore the messages of his mailbox 'orders' he has inadvertently deleted today at 9:00 am.
   −
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 is 'prodserv'.<br><br><code># affa --list-archives prodserv</code><br>
 
<small><pre>
 
<small><pre>
Affa version 0.4.4 on affa1.mydomain.de (10.204.48.2)
+
Affa version 0.5.0 on affa1.mydomain.de (10.204.48.2)
 
+-----------------------------------------------------------------------------+
 
+-----------------------------------------------------------------------------+
 
| Job: prodserv                                                              |
 
| Job: prodserv                                                              |
Line 354: Line 358:  
| Date                  | Archive        |        Files |  Size | Disk usage |
 
| Date                  | Archive        |        Files |  Size | Disk usage |
 
+-----------------------+----------------+--------------+--------+------------+
 
+-----------------------+----------------+--------------+--------+------------+
| Sun 2007 Apr 01 04:06 | monthly.0      |      410510 40GB 407GB/31% |
+
| Sun 2007 Apr 29 04:07 | monthly.0      |      428916 41GB 554GB/42% |
 
+-----------------------+----------------+--------------+--------+------------+
 
+-----------------------+----------------+--------------+--------+------------+
| Sun 2007 Apr 08 04:05 | weekly.3      |      410670 40GB 408GB/31% |
+
| Sun 2007 May 13 04:08 | weekly.3      |      441911 43GB 493GB/37% |
| Sun 2007 Apr 15 04:06 | weekly.2      |      410595 40GB 429GB/32% |
+
| Sun 2007 May 20 04:09 | weekly.2      |      453436 44GB 522GB/40% |
| Sun 2007 Apr 22 04:07 | weekly.1      |      415987 40GB 514GB/39% |
+
| Sun 2007 May 27 04:10 | weekly.1      |      460610 45GB 547GB/41% |
| Sun 2007 Apr 29 04:07 | weekly.0      |      428916 41GB 554GB/42% |
+
| Sun 2007 Jun 03 04:11 | weekly.0      |      464119 45GB 603GB/46% |
 
+-----------------------+----------------+--------------+--------+------------+
 
+-----------------------+----------------+--------------+--------+------------+
| Wed 2007 May 02 04:07 | daily.6        |      434362 41GB 562GB/43% |
+
| Mon 2007 Jun 04 07:05 | daily.6        |      464733 45GB 599GB/45% |
| Thu 2007 May 03 04:07 | daily.5        |      430567 42GB 563GB/43% |
+
| Wed 2007 Jun 06 04:15 | daily.5        |      463527 45GB 617GB/47% |
| Fri 2007 May 04 04:08 | daily.4        |      433874 42GB 562GB/43% |
+
| Thu 2007 Jun 07 04:15 | daily.4        |      464299 46GB 629GB/48% |
| Sat 2007 May 05 04:08 | daily.3        |      435321 42GB 550GB/42% |
+
| Fri 2007 Jun 08 04:11 | daily.3        |      464200 46GB 617GB/47% |
| Sun 2007 May 06 04:08 | daily.2        |      435977 42GB 534GB/41% |
+
| Sat 2007 Jun 09 04:12 | daily.2        |      463342 46GB 617GB/47% |
| Mon 2007 May 07 04:05 | daily.1        |      435952 42GB 522GB/40% |
+
| Sun 2007 Jun 10 04:12 | daily.1        |      462894 46GB 614GB/47% |
| Tue 2007 May 08 04:08 | daily.0        |      434987 42GB 526GB/40% |
+
| Mon 2007 Jun 11 04:11 | daily.0        |      460669 45GB 619GB/47% |
 
+-----------------------+----------------+--------------+--------+------------+
 
+-----------------------+----------------+--------------+--------+------------+
| Wed 2007 May 09 23:08 | scheduled.6    |      435783 42GB 517GB/39% |
+
| Mon 2007 Jun 11 13:11 | scheduled.6    |      454748 45GB 621GB/47% |
| Wed 2007 May 09 04:08 | scheduled.5    |      436505 42GB 517GB/39% |
+
| Mon 2007 Jun 11 16:16 | scheduled.5    |      454664 45GB 621GB/47% |
| Wed 2007 May 09 07:04 | scheduled.4    |      436531 42GB 517GB/39% |
+
| Mon 2007 Jun 11 19:10 | scheduled.4    |      454813 45GB 622GB/47% |
| Wed 2007 May 09 10:09 | scheduled.3    |      436097 42GB 518GB/39% |
+
| Mon 2007 Jun 11 23:08 | scheduled.3    |      455289 45GB 618GB/47% |
| Wed 2007 May 09 13:13 | scheduled.2    |      436447 42GB 518GB/39% |
+
| Tue 2007 Jun 12 04:12 | scheduled.2    |      455407 45GB 616GB/47% |
| Wed 2007 May 09 16:19 | scheduled.1    |      436684 43GB 518GB/39% |
+
| Tue 2007 Jun 12 07:05 | scheduled.1    |      455400 45GB 616GB/47% |
| Wed 2007 May 09 19:10 | scheduled.0    |      437318 43GB 519GB/39% |
+
| Tue 2007 Jun 12 10:09 | scheduled.0    |      453931 45GB 616GB/47% |
 
+-----------------------+----------------+--------------+--------+------------+
 
+-----------------------+----------------+--------------+--------+------------+
 +
 
</pre></small>
 
</pre></small>
   −
2. Choose the scheduled.2 archive, which was created less than an hour before the accident. Now restore the mailbox 'orders' using the rsync command.
+
2. Choose the scheduled.1 archive, which was created less than two hours before the accident. Now restore the mailbox 'orders' using the rsync command.
      Line 386: Line 391:  
<code># export RDIR=/home/e-smith/users/briedlin/Maildir/.orders/</code><br>Note the leading slash!
 
<code># export RDIR=/home/e-smith/users/briedlin/Maildir/.orders/</code><br>Note the leading slash!
   −
<code># rsync -av --numeric-ids -e /usr/bin/ssh /var/affa/prodserv/scheduled.2/$RDIR 10.204.48.1:$RDIR</code>
+
<code># rsync -av --numeric-ids -e /usr/bin/ssh /var/affa/prodserv/scheduled.1/$RDIR 10.204.48.1:$RDIR</code>
      Line 399: Line 404:     
<code># scp /var/affa/prodserv/weekly.1/$RFILE 10.204.48.1:$RFILE</code>
 
<code># scp /var/affa/prodserv/weekly.1/$RFILE 10.204.48.1:$RFILE</code>
 +
 +
    
==== Full restore ====
 
==== Full restore ====
Line 409: Line 416:     
'''Important note:''' A full restore reconstruct the server as it was at the time of the backup. That means, files created or server configuration changes after the backup run will be lost. After the restore is done, the restored server reboots automatically.
 
'''Important note:''' A full restore reconstruct the server as it was at the time of the backup. That means, files created or server configuration changes after the backup run will be lost. After the restore is done, the restored server reboots automatically.
 +
 +
    
==== Moving a SME 7 server installation to a new hardware using the Affa rise feature ====
 
==== Moving a SME 7 server installation to a new hardware using the Affa rise feature ====
501

edits

Navigation menu