Restore Deleted User Files

From CSEE Documentation

Restoring Deleted User Files

Recovery deleted user files consists of logging into c64 as root and using a Tivoli GUI.

First, one needs to log in as root to c64. Since the program is a GUI, logging in as a user and using sudo to run the software won't work correctly.

Logging into CS Systems as root

Logging into systems as root requires creating a ssh passphrase and adding the public key to the ssh configurations of our boxes through cfengine

cd ~/.ssh 
#Be sure you are logged into the box in 307 that you will be using most of the time
ssh-keygen -t rsa
cat >> <directory where you store your cfengine repo>/files/all/root/.ssh/authorized_keys

Add your public key to any other authorized_keys file for systems that you will need to access. It might be good to add your key to the authorized_keys.itelabs file as well. Check in the changes to cfengine, log into cfengine to update the database, and then run cfagent -qv on the system that you need to log in as root.

File Recovery

SSH into c64 as root and enable X-forwarding

ssh -Y root@c64

The program you want to run is /op/tivoli/tsm/client/ba/bin/dsmj. If you are root and have enabled X-forwarding, it should start right up.

  • Under the Backup Heading, Choose "Restore"
  • Click on the button "Point in Time" (Next to the options button). Choose a time when the file should have been in its desired state.
  • In the file tree on the left, expand the "File Level" entry. You should be able to see all of the home directories of users. Expand the tree next to the user directory until the directory that contains the deleted file appears. Click on that directory and the files in it should appear in the pane on the right side of the screen.
  • Mark the checkboxes next to whatever files you wish to restore. Click on the "Restore" Button near the Options button.
  • When restoring, it is best to mark the "Following Location" choice as well as the "Restore Partial Path" choice. That way the file will be in the user's home directory but in a place such that it won't interfere with the current copy of the file.
  • Click the restore button and the files should restore.