biolocal:FShomesRecover
From Wiki CEINGE
(Difference between revisions)
Revision as of 18:54, 9 October 2007 (edit) Gianluca (Talk | contribs) ← Previous diff |
Revision as of 19:23, 9 October 2007 (edit) (undo) Gianluca (Talk | contribs) Next diff → |
||
Line 12: | Line 12: | ||
Connect to the backup server 143.225.151.42 | Connect to the backup server 143.225.151.42 | ||
- | Make the home dirs without | + | Make the home dirs without descending into them (-pogdv options) |
<pre> | <pre> | ||
rsync -pogdv -e ssh /media/usbdisk1/FSceinge/ceinge/Home/ root@143.225.151.27:/data01/FS/ceinge/Home/ | rsync -pogdv -e ssh /media/usbdisk1/FSceinge/ceinge/Home/ root@143.225.151.27:/data01/FS/ceinge/Home/ |
Revision as of 19:23, 9 October 2007
The following procedure provides a smooth way to recover the homes of the file server, syncronizing the maildir folder before the whole home directory. This way, it is possible to switch the mailserver on before the entire sync is completed.
Connect to the File Server 143.225.151.27
Recover the disk and make the base directory for the ceinge homes:
mkdir /data01/FS /data01/FS/ceinge /data01/FS/ceinge/Home
Connect to the backup server 143.225.151.42
Make the home dirs without descending into them (-pogdv options)
rsync -pogdv -e ssh /media/usbdisk1/FSceinge/ceinge/Home/ root@143.225.151.27:/data01/FS/ceinge/Home/
Start syncronizing the login folder (contains Maildir)
for i in `ls`; \ do \ rsync -avz -e ssh --exclude=*archive* $i/login/ root@143.225.151.27:/data01/FS/ceinge/Home/$i/login/; \ done;
Syncronize the whole home directories without the login directory (already done in the previous step)
for i in `ls`; \ do \ rsync -avz -e ssh --exclude=login* $i/ root@143.225.151.27:/data01/FS/ceinge/Home/$i/; \ done;