To get the site back up, I just needed to replace everything that had index as part of the filename. To achieve this, I did the following from a terminal.
- I went to the top directory that needed to be grabbed.
- Typed in find . -iname 'index*' > ~/Web/tmp_files_to_copy to create a file with all of the names and locations of the files that I need to upload (or find . -mtime -60 to find files that have been modified within the last 60 days).
- Next I typed in tar cf ~/Web/tmp_files_to_copy.tar -T ~/Web/tmp_files_to_copy which created a tar ball of the files that would eventually be uploaded.
- Then I went to a temporary directory and typed in tar xf ~/Web/tmp_files_to_copy.tar to extract the desired files.
- Finally I then uploaded the entire directory structure to the web site.
Someday I may modify this into a script that automatically finds for the latest script changes and uploads them to the correct locations on a web site, but that would be a task for a different day.
No comments:
Post a Comment