Changes between Version 1 and Version 2 of how-to/cms/Archive
- Timestamp:
- Jun 18, 2020, 1:05:56 PM (4 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
how-to/cms/Archive
v1 v2 1 ''Content note: We followed this guide and added in some of our own learnings: https://www.drupal.org/node/27882.'' 2 1 3 Your site might be running one of a variety of content management system software (CMS) like Drupal or Wordpress, but you aren't actively adding content to the site anymore. You might be considering how to handle an old site that still has value to readers but that is costing you a lot of time to maintain just for security updates to your CMS. 2 4 … … 5 7 Your site will remain up, it will use the same domain, and all of the links will still work. Here's how you do it[0]: 6 8 7 # Take note of the archive 9 == Take note of the archive == 8 10 9 11 You want your readers to know when this site was archived, so we suggest creating a block or footer message on your site that will appear on all pages, noting when the content was archived. … … 11 13 Remember, the CMS backend is about to go away for good. You are about to make all of your pages independent from one another, so changing anything, site-wide, at a later will be next to impossible. 12 14 13 # Disable any interactivity 15 == Disable any interactivity == 14 16 15 17 Your readers won't be able to fill in forms, login or submit content. You need to disable all of these features at this stage in the process. … … 19 21 For Wordpress and other CMSs: Look for any search widgets, contact me forms, or other bits of interactivity that wouldn't work on a static site anyway and remove them entirely from your site. 20 22 21 #Create static pages23 == Create static pages 22 24 23 25 There are a few ways you can create HTML pages from your entire site, and a few are listed here: https://www.drupal.org/node/27882, along with examples for how to run the commands. There is also software you can download to your laptop, like SiteSucker. … … 25 27 Tip: Choose HTTrack (slightly better results than wget, in our experience) 26 28 27 #Move your old CMS files29 == Move your old CMS files 28 30 29 31 Eventually you'll want to remove these files from the server completely. But if you'd like to compare your site side-by-side with its static version, you can move your site files to a new place, like old.mysite.org, for now. 30 32 31 #Upload your new HTML files33 == Upload your new HTML files 32 34 33 35 With your old CMS files out of the way, you can now upload the static files generated by HTTrack (or another method) to the server directory where your CMS lived before. Nothing needs to be tweaked, no cron needs to run-- it's that simple. 34 36 35 #Click around the site and make sure it's all there37 == Click around the site and make sure it's all there 36 38 37 39 This process never goes the same way twice, but we have added here some common problems and their solutions: … … 40 42 * Some pages didn't get archived: One solution is to run HTTrack again if many pages are missing, perhaps tweaking the command parameters. Another is just to grab the missing page in a one-off wget and upload it to the server with the rest. 41 43 * ... 42 43 [0] We followed this guide and added in some of our own learnings: https://www.drupal.org/node/27882