Site Map Online Directory
  Search Information Technology   Northwestern University  
YOU ARE HERE >   NUIT > SSCC > Bulletins > Restoring Files Lost From Your HOME Directory
Restoring Files Lost From Your HOME Directory

About the SSCC

Cluster Report (NU Restricted)

HOWTOs

Bulletins

Statistical Software

Statistical Software Manuals

Additional Resources

Migration Information

Social Science Data Services

Kellogg Research Computing

Depot File Service

Improving Social Science Research Computing (PDF)

Contact List

Services

Get Connected

Support

Educational Resources

NUIT

Restoring Files Lost From Your HOME Directory


Restoring Files Lost From Your HOME Directory

We take snapshot backups of SSCC home directories each night. The previous night's snapshot is found in the Backup directory. In addition, we take snapshots on the following schedule:

• Daily, at midnight, retained 7 days

• Weekly, at 1 am on Sunday, retained 5 weeks

• Monthly, at 2 am on the first of each month, retained 6 months if we have enough capacity.

The snapshot backup of the home directory tree taken at midnight each day is stored in /sscc/backup, which makes it easy to retrieve a file as it was yesterday. The first section of this web page, Restoring Files From Your Backup Directory, explains how to do just that.

The section Restoring Files from Other Snapshots explains how to restore a file from older snapshots. And, if you're still having problems restoring a file, see Further Help Restoring Files.


 

Restoring Files From Your Backup Directory

Back to top

The daily SSCC backup directory tree is organized in a manner that parallels the directory tree for SSCC home directories. That makes it easy to restore a file from yesterday's backup directory.

As an example, I have damaged my file diskuse.dat in my subdirectory statistics. I wish to restore it from yesterday's backup snapshot. The first thing to do is change my working directory to my statistics subdirectory and determine the full path to that subdirectory:

[bef@hardin ~]$ cd ~bef/statistics
[bef@hardin statistics]$ pwd
/sscc/home/b/bef/statistics

The full path to ~bef/statistics is /sscc/home/b/bef/statistics

The path to the backup snapshot copy is /sscc/backup/b/bef/statistics

If you compare the two paths, you see that home is replaced by backup and everything else remains the same.

Now I'll make sure that there is a copy of diskuse.dat in my backup directory:

[bef@hardin statistics]$ ll /sscc/backup/b/bef/statistics/diskuse.dat
-rw------- 1 bef users 32294 Feb 8 1999 /sscc/backup/b/bef/diskuse.dat

Good! My file is there! Now I can remove the bad file in my home directory.

[bef@hardin statistics]$ rm diskuse.dat

Then I'll copy the good version of diskuse.dat from my backup fileset:

[bef@hardin statistics]$ cp -p /sscc/backup/b/bef/statistics/diskuse.dat diskuse.dat
[bef@hardin statistics]$ ll diskuse.dat
-rw------- 1 bef users 32294 Feb 8 1999 diskuse.dat

Note that the copy retains its creation date and access modes. That's because I specified the -p option on my cp command.

We're done! There was no need to ask, and wait for, a system administrator to restore the file.

Restoring Files from Other Snapshots

Back to top

Snapshots of /sscc are stored in the directory /sscc/.snapshot. Each snapshot directory is named in such a way that explains the date when it was taken and whether it is a Daily, Weekly or Monthly snapshot. Here is an example:

[bef@seldon ~]$ cd /sscc/.snapshot
[bef@seldon .snapshot]$ ls | more
Backup
Monthly
SSCC_Daily_2007_09_19
SSCC_Daily_2007_09_20
SSCC_Daily_2007_09_21
SSCC_Daily_2007_09_22
SSCC_Daily_2007_09_23
SSCC_Daily_2007_09_24
SSCC_Daily_2007_09_25
SSCC_Monthly_2007_09_01
SSCC_Weekly_2007_08_26
SSCC_Weekly_2007_09_02
SSCC_Weekly_2007_09_09
SSCC_Weekly_2007_09_16
SSCC_Weekly_2007_09_23
Weekly
[bef@seldon .snapshot]$

The directories named Backup, Monthly and Weekly are the most recent snapshot in each category (Backup being the most current Daily snapshot. The name Backup is used to remain consistent with previous practices that predate our current file server). The snapshots are also named in such a manner that their role (Daily, Weekly and Monthly) and the date they were taken is obvious.

Note that each snapshot is taken of the very large directory tree that starts at /sscc. The following example shows how to retrieve the same ~bef/statistics/diskuse.dat file from the September 19th snapshot:


[bef@seldon statistics]$ cd /sscc/.snapshot
[bef@seldon .snapshot]$ echo $HOME
/sscc/home/b/bef
[bef@seldon .snapshot]$ cd SSCC_Daily_2007_09_19/home/b/bef/statistics/

The method to use is to first change directories to /sscc/.snapshot and then to determine the path to your home directory with the command echo $HOME. Then change directories to the snapshot of your choice, using that directory name in place of the /sscc at the beginning of the path to your home directory. Make sure that you do so using the relative path, without the leading /. Then follow the example above to copy diskuse.dat from the September 19th snapshot to your home directory.

Further Help Restoring Files

Back to top

If you need assistance to restore a file from a snapshot directory, send email to action@hardin or action@seldon to make your request. Be sure to specify the full path to your file, including all of the subdirectories along the way. And indicate the most recent date when the contents of the file were correct. That will enable the system administrator to select the correct snapshot directory from which to restore the file.

Computer and Network Security

E-mail, NetID, and Password

Hardware

Listserv

Network Services

NUTV and TV Services

Policies and Guidelines

Reserve a Facility

Service Status

Software

Telephone Services

Videoconferencing Services

Web Publishing Services

Webcasting

Webmail

Off-campus Connections

Safe access to the NU Network (VPN)

Wired Connection

Wireless access

Departmental Desktop and Server Support

NUIT Help

Student Support

Computer Labs

Course Management System (Blackboard)

Learning Opportunities

Smart Classrooms

about NUIT

Job Opportunities in NUIT

News, Press, and Publications

What's New & Changing with Technology @ NU?