Restoring Files from Unix, Linux and Macintosh Machines
Restoring Files from Research/Administrative File Server
Restoring Files from Undergrad File Server
If you are not on the student or general CS environment and use an X-Terminal to access your account, you can use the Graphical User Interface nwrecover (Legato NetWorker has no GUI nwrecover for Mac OS X clients) command to get a copy of your file from the backup system.
If the X Window System is unavailable to you, or for some reason nwrecover doesn't work, you can use the recover command to restore your files. It is a text-based command which works in a similar manner. Use the versions command to see which backups are available, the changetime command to select which backup you want, then use the add command to tag the file. The relocate command will allow you to restore the selected file to a different location than the original. This is useful to avoid overwriting the original. The recover is used to start the restore. For help with the above commands, type help at the recover> prompt.
If the required tapes are available to the robot, the restore will be done automatically. If the tapes are not available, the Operator will have to load them. The restore may take a while in either case, so please be patient and let the restore finish. Be sure to exit the recover program when you are done, as only a few people can access the robot backup system at the same time.
An example using recover is shown below:
ubuntu1404-202:~> recover Current working directory is /home/gxshen/ recover> help 6477:recover: Available commands are: add [-q] [filename] - add `filename' to list of files to be recovered cd [dir] - change directory to dir changetime [date | -l locale_date] - change the time that you are browsing, changetime [-l] displays the supported [[locale_]date] format debug delete [filename] - delete `filename' from the recover list destination - print destination location for recovered files dir [/w] [filename...] - list filename exit - immediately exit program force - overwrite existing files help or `?' - print this list lf [-aAcCdfFgilLqrRsStu1] [filename...] - list filename type list [-c | -l] - list the files marked for recover ll [-aAcCdfFgilLqrRsStu1] [filename...] - long list filename ls [-aAcCdfFgilLqrRsStu1] [filename...] - list filename noforce - do not overwrite existing files pwd - print current directory quit - immediately exit program recover - recover requested files relocate [dir] - specify new location for recovered files verbose - toggle verbose mode; feedback about what is going on versions [filename] - report on each version of file `filename' volumes [filename] - report volumes needed to recover marked files 6478:recover: `filename' can be either a file or a directory recover> chan Jan 20 6497:recover: time changed to Sat Jan 20 23:59:59 2018 recover> ls -l .cshrc -rw-r--r-- gxshen 6557 Dec 05 10:17 .cshrc recover> add .cshrc 1 file(s) marked for recovery recover> vol Volumes needed (all on-line): 57004 at /dev/tape/by-id/scsi-35005076312486d24-nst recover> des recover files into their original location recover> rel /u/gxshen/tmp recover> recover Recovering 1 file from /home/gxshen/ into /u/gxshen/tmp Volumes needed (all on-line): 57004 at /dev/tape/by-id/scsi-35005076312486d24-nst Total estimated disk space needed for recover is 8 KB. Requesting 1 file(s), this may take a while... Recover start time: Tue Jan 30 14:44:09 2018 Requesting 1 recover session(s) from server. ./.cshrc Received 1 file(s) from NSR server `backup.cs.uwaterloo.ca' Recover completion time: Tue Jan 30 14:46:18 2018 recover> quit ubuntu1404-202:~>
FILES
MAILBOXES
If the file is not in the online snapshots, mail csi-backups@cs the complete pathname plus the time of the last major change and the time when the file was deleted or corrupted. This process can require a great deal of manual intervention.
Same as the Restoring Files from Research/Administrative File Server described as above.