Changes between Version 2 and Version 3 of restore_from_backup


Ignore:
Timestamp:
May 6, 2013, 4:35:52 PM (6 years ago)
Author:
Enrique Rosas
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • restore_from_backup

    v2 v3  
    1111The rdiff backups are incremental, going back five days.
    1212
    13 You can restore an rdiff backup by ssh'ing into the backp server and running:
     13You can restore an rdiff backup by ssh'ing into the backup server and running:
    1414
    1515{{{
     
    1717}}}
    1818
     19Example: Recoverying lost email
     20
     211. In clara I found in {{{/etc/backup.d/50_backup.rdiff}}} that the host for incremental backups is luisa.mayfirst.org
     22
     232. From clara, ssh into luisa as the clara backup user
     24{{{ssh clara-sync@luisa.mayfirst.org}}}
     25
     263. Create a backup target directory:
     27{{{mkdir restore}}}
     28
     294. 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
     325. Examine the contents of the backup and identify the files needed.
     33
     346. Exit from luisa
     35
     367. rsync any directories you want:
     37{{{rsync -av clara-sync@luisa.mayfirst.org:restore/.INBOX.<something> ticket/}}}
     38
     398. Assign right ownership to those files
     40{{{chown -R tomas:member-name ticket/*}}}
     41
     429. Move them back into the user's Maildir.
     43{{{mv  ticket/* /home/members/member-name/sites/member-site.org.mx/users/tomas/Maildir/
     44
    1945
    2046----