TIBS Restores

Always do this when connected to backups before you run your commands

[ladybank]lmb: ssh backups
[backups+]lmb: nsu
[backups]root: cd
[backups]root: . /etc/tibs.conf

An AFS Restore

[backups]root: filesearch -n afs -p user.s0785695 -s phd/notes/formalisation
-n hostname of backup client to search
-p pathname of the backup volume to search
-s partial or complete filename to search for. No wildcards.



[backups]root: afsrest -n user.s0785695 -Q -f
-n name of R/W volume to restore
-Q This queries the tape library to see which tape volumes are available to restore from, most recent first.
-f fast run


[backups]root: afsrest -n user.s0785695 -f -t "2009/01/28/18/36/03" 
-n name of R/W volume to restore
-f fast run
-t timestamp of restore data

An NFS Restore

[backups]root: tibsrest -n sphinx.inf.ed.ac.uk -p /disk/ptn068 -Q -s s0231459/Desktop/documents
-n client name
-p path name
-s Relative path of subdirectory to be resored.
-Q This queries the tape library to see which tape volumes are available to restore from, most recent first.

[backups]root: tibsrest -n sphinx.inf.ed.ac.uk -p /disk/ptn068 -s s0231459/Desktop/documents -r sphinx.inf.ed.
ac.uk -a /tmp -t "2009/01/09/22/23/17"
-r restore client
-a path of restore location
-t timestamp of restore data

A Selfmanaged Client Restore

[backups]root:more /usr/tibs/state/clients.txt
[backups]root:hostaudit -l -n crumpler
[backups]root:filesearch -s Users -n crumpler.inf.ed.ac.uk
[backups]root:tibsrest -n crumpler.inf.ed.ac.uk -p /Users/duncandavidson/Documents/InformaticsVentures -r nessie -a /disk/rmirror20/duncan_restore

Creating Mount Point

Once restored the afs data has to be mounted where user can access it.
[swanston]lmb/admin:vos exam user.s0785695.restore
[swanston]lmb/admin:cd ~s0785695
[swanston]lmb/admin:fs mkmount restored user.s0785695.restore

Remember to tidy up

After an agreed amount of time the volume should be unmounted and deleted.
[swanston]lmb/admin:cd ~s0785695
[swanston]lmb/admin:fs rmmount restored
Find out where the volume is.
[swanston]lmb/admin:vos exam user.s0785695.restore
user.s0785695.restore             536878297 RW    1800410 K  On-line
    sphinx.inf.ed.ac.uk /vicept 
    RWrite  536878297 ROnly          0 Backup  536878301 
    MaxQuota    5000000 K 
    Creation    Thu Jan 29 04:55:13 2009
    Copy        Fri Feb  6 10:58:08 2009
    Backup      Mon Feb 23 05:37:51 2009
    Last Update Wed Jan 28 18:36:03 2009
    177 accesses in the past day (i.e., vnode references)

    RWrite: 536878297     Backup: 536878301 
    number of sites -> 1
       server sphinx.inf.ed.ac.uk partition /vicept RW Site 
Removing the volume
[kilmarnock]lmb/admin:vos remove -v unicorn /vicepg user.dch.restore

user.dch.restore 
    RWrite: 536885590     Backup: 536885592 
    number of sites -> 1
       server unicorn.inf.ed.ac.uk partition /vicepg RW Site 
Trying to delete the volume 536885590 ... done
Trying to delete the backup volume 536885592 ... done
Marking the readwrite volume 536885590, and its backup volume, deleted in the VLDB
Last reference to the VLDB entry for 536885590 - deleting entry
Volume 536885590 on partition /vicepg server unicorn.inf.ed.ac.uk deleted




Home : Systems : support 

Informatics Forum, 10 Crichton Street, Edinburgh, EH8 9AB, Scotland, UK
Tel: +44 131 651 5661, Fax: +44 131 651 1426, E-mail: school-office@inf.ed.ac.uk
Please contact our webadmin with any comments or corrections. Logging and Cookies
Unless explicitly stated otherwise, all material is copyright © The University of Edinburgh