| Knowledgebase Home | Glossary | Favorites |
| Backup / Restore files using .snapshot and SSH | ||||||||||
Prerequisites:Connecting to your Container via SSHRestoring BackupsThere 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.1Suppose 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 |
|
| Related Articles |
| No related articles were found. |
| Attachments |
| No attachments were found. |