Carnegie Mellon University

How to Use AFS

AFS Directory Access Rights [pdf]

Common Unix Commands [pdf]

From an FTP Client

A read-only backup is made nightly, 6pm - 4am, of your AFS  content to the OldFiles directory. If you are accessing these files via an FTP client from your own machine, complete the following steps to recover a file:
  1. Launch an SFTP program. Use the appropriate link below to download the software, if not installed.
  2. Enter unix.andrew.cmu.edu for the server/hostname.
  3. Go to the OldFiles directory.
  4. Transfer your files from remote to local.

From a Computer Lab

Computer labs do not have FTP clients installed on the machines, which means you'll need to restore files through terminal (Mac) or via command line (Windows).

  1. Enter unix.andrew.cmu.edu for the server/hostname.
  2. Enter fs mkm OldFiles user.andrewID.backup to mount the OldFiles directory.
  3. Enter fs mkm OldFiles user.andrewID.backup.
  4. Enter cp -avr source-file|directory target-file|directory top copy files from the remote server to your local drive.

Note: Entering the following will allow you to copy an entire directory: 
 /afs/andrew/usr/userID/Oldfiles/foldername/foldername/foldername  /afs/andrew/usr/userid/foldername/folder 

From an FTP Client

If you are accessing these files via an FTP client from your own machine, complete the following steps to transfer a file:
  1. Launch the SFTP program. Use the appropriate link below to download the software, if not installed.
  2. Enter unix.andrew.cmu.edu for the server/hostname.
  3. Transfer your files from local to remote in the appropriate directory.
    • My Documents, Desktop - files saved in a computer lab
    • Private - files you don't want to share
    • Public - shared files 
    • www - for personal web pages

From an FTP Client

When your AFS quota is depleted or almost depleted, you may have difficulty saving files or logging on to a machine in a computer lab. To resolve this problem, follow these instructions to delete AFS files and create storage space.

  1. Open your AFS directory, and log in with your Andrew userID and password:
    • On Mac or Linux, from Terminal, type ssh <Your Andrew userID>@unix.andrew.cmu.edu.
    • On a PC (Windows), connect to SSH Tectia or PuTTY.
  2. Type du -hs * to determine which directories are using the most space. Note: Because "OldFiles" do not count in your quota, you do not have to delete them.
  3. Type rm -f -r ./foldername/* to delete all files in a folder (foldername). Repeat the command with the name of each folder you want to delete until your quota is reduced to the size you want.
  4. Click Common Unix Commands to select the command to check your quota usage.