Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision Both sides next revision
cpanel:restore-from-crash-or-hack [2011-04-07 17:24:36]
garrett.plasky Approved
cpanel:restore-from-crash-or-hack [2011-04-14 19:37:12]
garrett.plasky Approved
Line 10: Line 10:
 Restoring the data is just a matter of rsync-ing over certain directories and configuration files.  Restoring the data is just a matter of rsync-ing over certain directories and configuration files. 
  
-**Note:** rsync functions different than users might expect with regards to trailing slashes; careful use of them is needed to ensure data is copied correctly. When syncing a directory, adding a trailing slash to the source directory will cause all directories/files //inside// that directory to be synced with the destination, as opposed to the directory itself. This can be seen for example in the difference between the /etc/ sync below, and the Apache rsync that follows.+<note important>rsync functions different than users might expect with regards to trailing slashes; careful use of them is needed to ensure data is copied correctly. When syncing a directory, adding a trailing slash to the source directory will cause all directories/files //inside// that directory to be synced with the destination, as opposed to the directory itself. This can be seen for example in the difference between the /etc/ sync below, and the Apache rsync that follows.</note>
  
 Let's begin by syncing over important /etc/ configuration files: Let's begin by syncing over important /etc/ configuration files: