Knowledgebase Home | Glossary | Favorites Knowledgebase Home | Glossary | Favorites
Backup / Restore files using .snapshot and SSH
Article Details

Last Updated
1st of November, 2010

User Opinions (0 votes)
No users have voted.

How would you rate this answer?
Helpful
Not helpful

Prerequisites:

Connecting to your Container via SSH

Restoring Backups


There are multiple backups on a container at a given time, although they cycle on a 2 day cycle. Inside a users home directory is a hidden directory called .snapshot. There is a snapshot directory for each nested directory below your home directory. These files can be accessed through SSH or through the SFTP client of your choice. The following backups are scheduled to cycle over the course of 48 hours:
hourly.0 hourly.1 hourly.2 hourly.3 hourly.4 hourly.5 nightly.0 nightly.1 
Suppose you wanted to restore your entire site as of 2 nights ago. Via SSH, run the following commands. cd to the .snapshot/nightly.1 in you your sites directory. i.e.
cd /home/username/sites/.snapshot/nightly.1
(note, nightly.0 is the most recent nightly backup, and nightly.1 is 2 days ago.)
cp -rpvf yoursite.com_version1 ../../
The syntax of the copy command in is as follows:
cp [OPTION]... SOURCE... DIRECTORY
Visitor Comments
  1. Comment #1 (Posted by Starr)
    This does look promising. I'll keep coinmg back for more.
Post Comment for "Backup / Restore files using .snapshot and SSH"
To post a comment for this article, simply complete the form below. Fields marked with an asterisk are required.
   Your Name:
* Your Comment:
* Enter the code below:
 
Related Articles
No related articles were found.
Attachments
No attachments were found.

Continue