How do I restore files on webhost.uic.edu?

Don't forget!

If you are connecting from off-campus, you must also be connected using UIC VPN. VPN installation instructions are available for Windows, Mac OS X, and Linux.

Your webhost.uic.edu site is backed up once a day. We keep five (5) most recent backups in read-only snapshot directories located in /mnt/snapshot. The backup process takes place in the very early morning, so the oldest backup of your site will usually be from four days ago.

To retrieve a file or directory from the snapshot, connect to your account using SFTP. If you are comfortable with the command line, SSH is also an option.

Restore files with SFTP

​1. Using an SFTP client such as Cyberduck, open a new connection.

OpenConnection.png

2. Choose SFTP (SSH File Transfer Protocol)

ChooseSFTP.png
 
3. Set the Server field to webhost.uic.edu and port to 22 (default).
ServerWebhostUIC.png
 
4. Enter your NetID for the username field and your UIC password into the password field. Click connect.
yourNetID.png
 
5. You will then be in your home directory on webhost.
homeDirectory.png
 
6. Click the arrow up twice. This brings you to the root directory.
upDirectory.png
 
7. Navigate to /mnt/snapshot. Here you can choose the date of the backup want to recover. Date is in YYYY-MM-DD format.
MountSnapshot.png
 
8. With the chosen date directory navigate to YYYY-MM-DD/var/www/sites/yoursite
 
9. To copy your highlight your file/directory and go to Edit menu and click “Copy”
 
10. Then navigate to your directory you want to restore and go to Edit menu and “Paste”

Restore files with SSH

1. Use an SSH client such as PuTTY to connect to webhost.uic.edu.

putty hostname.png

 

2. Type in your UIC NetID as the username (without @uic.edu).

enteryourusername.png

 

3. You will be prompted to enter your password (or passphrase for your SSH key if you configured PuTTY for passwordless login).

4. You will now be in your home directory on webhost.

5. Backups are located in /mnt/snapshot/. Run cd /mnt/snapshot and ls to list the directory contents.

6. Each directory is dated in YYYY-MM-DD format. Navigate into the desired date directory.

7. Then change directory into var/www/sites/yoursite

TerminalSnapshot.png

9. To copy run cp -r yourSnapshotConent/ /var/www/sites/yoursite/htdocs/newContent

Need help?

Last updated: 

September 20, 2016

Browse by tag