Line 500:
Line 500:
=== Restore ===
=== Restore ===
==== Restore single files or directories ====
==== Restore single files or directories ====
−
<b>Example 1:</b> It's June, 12th 11:30, when user 'briedlin' asks you to restore the messages of his mailbox 'orders' he has inadvertently deleted today at 9:00 am.
+
<b>Example 1:</b> It's Tuesday April 8th 2008, when user 'briedlin' asks you to restore the messages of his mailbox 'orders' he has inadvertently deleted on Monday morning.
<ol></li><li>You first must check what backup archives are available. The jobname of this server backup is 'prodserv'.
<ol></li><li>You first must check what backup archives are available. The jobname of this server backup is 'prodserv'.
Line 506:
Line 506:
<small><pre>
<small><pre>
Affa version 1.0.0-1 on affa1.mydomain.de (10.204.48.2)
Affa version 1.0.0-1 on affa1.mydomain.de (10.204.48.2)
−
+-----------------------------------------------------------------------------+
+
+------------------------------------------------------------------------------+
−
| Job: prodserv |
+
| Job: prodserv |
−
| Description: File- and Mailserver Frankfurt 2 |
+
| Description: File- and Mailserver Alfdorf |
−
| Directory: /var/affa/prodserv/ |
+
| Directory: /var/affa/prodserv/ |
−
| Hostname: 10.204.48.1 |
+
| Hostname: 10.204.48.1 |
−
| Email: sysadmin@mydomain.de |
+
| Email: sysadmin@mydomain.de |
−
+-----------------------+----------------+--------------+--------+------------+
+
+-----------------------+----------------+--------------+--------+-------------+
−
| Date | Archive | Files | Size | Disk usage |
+
| Date | Archive | Files | Size | Disk usage |
−
+-----------------------+----------------+--------------+--------+------------+
+
+-----------------------+----------------+--------------+--------+-------------+
−
| Sun 2007 Apr 29 04:07 | monthly.0 | 428916 | 41GB | 554GB/42% |
+
| Sat 2007 Apr 28 00:45 | monthly.10 | 39625 | 7.7GB | 118GB/9% |
−
+-----------------------+----------------+--------------+--------+------------+
+
| Sat 2007 May 26 00:41 | monthly.9 | 39928 | 7.8GB | 88GB/6% |
−
| Sun 2007 May 13 04:08 | weekly.3 | 441911 | 43GB | 493GB/37% |
+
| Sat 2007 Jun 30 00:41 | monthly.8 | 40343 | 7.8GB | 155GB/11% |
−
| Sun 2007 May 20 04:09 | weekly.2 | 453436 | 44GB | 522GB/40% |
+
| Fri 2007 Jul 27 00:41 | monthly.7 | 39530 | 7.9GB | 172GB/13% |
−
| Sun 2007 May 27 04:10 | weekly.1 | 460610 | 45GB | 547GB/41% |
+
| Sat 2007 Aug 25 00:41 | monthly.6 | 39613 | 7.9GB | 179GB/13% |
−
| Sun 2007 Jun 03 04:11 | weekly.0 | 464119 | 45GB | 603GB/46% |
+
| Sat 2007 Sep 29 00:42 | monthly.5 | 40157 | 8.2GB | 198GB/15% |
−
+-----------------------+----------------+--------------+--------+------------+
+
| Sat 2007 Oct 27 00:46 | monthly.4 | 40453 | 7.6GB | 213GB/16% |
−
| Mon 2007 Jun 04 07:05 | daily.6 | 464733 | 45GB | 599GB/45% |
+
| Sat 2007 Dec 01 00:43 | monthly.3 | 40545 | 7.6GB | 228GB/17% |
−
| Wed 2007 Jun 06 04:15 | daily.5 | 463527 | 45GB | 617GB/47% |
+
| Sun 2007 Dec 30 00:42 | monthly.2 | 40378 | 7.6GB | 284GB/21% |
−
| Thu 2007 Jun 07 04:15 | daily.4 | 464299 | 46GB | 629GB/48% |
+
| Sun 2008 Jan 27 00:44 | monthly.1 | 40545 | 7.5GB | 422GB/32% |
−
| Fri 2007 Jun 08 04:11 | daily.3 | 464200 | 46GB | 617GB/47% |
+
| Sun 2008 Mar 02 00:42 | monthly.0 | 40924 | 7.7GB | 479GB/36% |
−
| Sat 2007 Jun 09 04:12 | daily.2 | 463342 | 46GB | 617GB/47% |
+
+-----------------------+----------------+--------------+--------+-------------+
−
| Sun 2007 Jun 10 04:12 | daily.1 | 462894 | 46GB | 614GB/47% |
+
| Sun 2008 Mar 09 00:41 | weekly.3 | 40976 | 7.7GB | 501GB/38% |
−
| Mon 2007 Jun 11 04:11 | daily.0 | 460669 | 45GB | 619GB/47% |
+
| Sun 2008 Mar 16 00:42 | weekly.2 | 41027 | 7.7GB | 506GB/38% |
−
+-----------------------+----------------+--------------+--------+------------+
+
| Sun 2008 Mar 23 00:41 | weekly.1 | 41051 | 7.7GB | 500GB/38% |
−
| Mon 2007 Jun 11 13:11 | scheduled.6 | 454748 | 45GB | 621GB/47% |
+
| Sun 2008 Mar 30 00:41 | weekly.0 | 41062 | 7.7GB | 503GB/38% |
−
| Mon 2007 Jun 11 16:16 | scheduled.5 | 454664 | 45GB | 621GB/47% |
+
+-----------------------+----------------+--------------+--------+-------------+
−
| Mon 2007 Jun 11 19:10 | scheduled.4 | 454813 | 45GB | 622GB/47% |
+
| Tue 2008 Apr 01 00:58 | daily.6 | 41090 | 7.7GB | 500GB/38% |
−
| Mon 2007 Jun 11 23:08 | scheduled.3 | 455289 | 45GB | 618GB/47% |
+
| Wed 2008 Apr 02 01:23 | daily.5 | 47680 | 7.8GB | 501GB/38% |
−
| Tue 2007 Jun 12 04:12 | scheduled.2 | 455407 | 45GB | 616GB/47% |
+
| Thu 2008 Apr 03 00:46 | daily.4 | 47680 | 7.8GB | 507GB/38% |
−
| Tue 2007 Jun 12 07:05 | scheduled.1 | 455400 | 45GB | 616GB/47% |
+
| Fri 2008 Apr 04 00:42 | daily.3 | 47686 | 7.8GB | 513GB/39% |
−
| Tue 2007 Jun 12 10:09 | scheduled.0 | 453931 | 45GB | 616GB/47% |
+
| Sat 2008 Apr 05 00:45 | daily.2 | 47687 | 7.8GB | 512GB/39% |
−
+-----------------------+----------------+--------------+--------+------------+
+
| Sun 2008 Apr 06 00:42 | daily.1 | 47687 | 7.8GB | 511GB/39% |
+
| Mon 2008 Apr 07 00:42 | daily.0 | 47687 | 7.8GB | 511GB/39% |
+
+-----------------------+----------------+--------------+--------+-------------+
+
| Tue 2008 Apr 08 00:43 | scheduled.0 | 47688 | 7.8GB | 525GB/40% |
+
+-----------------------+----------------+--------------+--------+-------------+
</pre></small>
</pre></small>
−
</li><li>Choose the scheduled.1 archive, which was created less than two hours before the accident. Now restore the mailbox 'orders' using the rsync command.
+
</li><li>Choose the daily.0 archive, which was created Monday night. Now restore the mailbox 'orders' using the rsync command.
−
</li><li>Now run the rsync command:
+
</li><li>Now run the rsync command ''(note the trailing slash!)'':
export RDIR=/home/e-smith/users/briedlin/Maildir/.orders/
export RDIR=/home/e-smith/users/briedlin/Maildir/.orders/
−
Note the trailing slash!
+
−
rsync -av /var/affa/prodserv/scheduled.1/$RDIR 10.204.48.1:$RDIR
+
rsync -av /var/affa/prodserv/daily.0/$RDIR 10.204.48.1:$RDIR
</li></ol>
</li></ol>
+
<b>Example 2:</b> A user has deleted the file orderform.pdf from ibay 'docs' and asks you to restore it.
<b>Example 2:</b> A user has deleted the file orderform.pdf from ibay 'docs' and asks you to restore it.