| 19 | Example: Recoverying lost email |
| 20 | |
| 21 | 1. In clara I found in {{{/etc/backup.d/50_backup.rdiff}}} that the host for incremental backups is luisa.mayfirst.org |
| 22 | |
| 23 | 2. From clara, ssh into luisa as the clara backup user |
| 24 | {{{ssh clara-sync@luisa.mayfirst.org}}} |
| 25 | |
| 26 | 3. Create a backup target directory: |
| 27 | {{{mkdir restore}}} |
| 28 | |
| 29 | 4. Restore the entire Maildir from our earliest backup (the onsite backup goes back 5 days): |
| 30 | {{{rdiff-backup rdiff-backup/rdiff-backup-data/increments/home/members/member-name/sites/member-site.org.mx/users/tomas/Maildir.2013-05-02T01\:03\:47-04\:00.dir restore}}} |
| 31 | |
| 32 | 5. Examine the contents of the backup and identify the files needed. |
| 33 | |
| 34 | 6. Exit from luisa |
| 35 | |
| 36 | 7. rsync any directories you want: |
| 37 | {{{rsync -av clara-sync@luisa.mayfirst.org:restore/.INBOX.<something> ticket/}}} |
| 38 | |
| 39 | 8. Assign right ownership to those files |
| 40 | {{{chown -R tomas:member-name ticket/*}}} |
| 41 | |
| 42 | 9. Move them back into the user's Maildir. |
| 43 | {{{mv ticket/* /home/members/member-name/sites/member-site.org.mx/users/tomas/Maildir/ |
| 44 | |