|
| 1 | +<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN"> |
| 2 | +<!-- |
| 3 | + * This Source Code Form is subject to the terms of the Mozilla Public License, |
| 4 | + * v. 2.0. If a copy of the MPL was not distributed with this file, You can |
| 5 | + * obtain one at http://mozilla.org/MPL/2.0/ |
| 6 | + * |
| 7 | + * Copyright (C) 2020, Peter Johnson (gravatar.com/delphidabbler). |
| 8 | + * |
| 9 | + * Help topic describing how to backup and restore the user database |
| 10 | +--> |
| 11 | +<html> |
| 12 | + <head> |
| 13 | + <meta |
| 14 | + http-equiv="Content-Type" |
| 15 | + content="text-html; charset=Windows-1252"> |
| 16 | + <title> |
| 17 | + Backup and Restore User Database |
| 18 | + </title> |
| 19 | + <link |
| 20 | + rel="stylesheet" |
| 21 | + href="../css/codesnip.css" |
| 22 | + type="text/css"> |
| 23 | + </head> |
| 24 | + <body> |
| 25 | + <object |
| 26 | + type="application/x-oleobject" |
| 27 | + classid="clsid:1e2a7bd0-dab9-11d0-b93a-00c04fc99f9e"> |
| 28 | + <param |
| 29 | + name="ALink Name" |
| 30 | + value="TaskBackupRestore"> |
| 31 | + </object> |
| 32 | + <h1> |
| 33 | + Backup and Restore the User Database |
| 34 | + </h1> |
| 35 | + <p> |
| 36 | + To protect against unexpected errors like hard disk failure it is wise to |
| 37 | + periodically backup your user database. <em>CodeSnip</em> has a tool to |
| 38 | + help with this: it can write your complete user database to a single file |
| 39 | + that you can archive safely. <em>CodeSnip</em> can recreate the user |
| 40 | + database from such backup files if necessary. |
| 41 | + </p> |
| 42 | + <p class="bordered"> |
| 43 | + Note that backups <strong>do not</strong> include the main DelphiDabbler |
| 44 | + Snippets Database. This is because you can just download a fresh copy of |
| 45 | + it from the internet if you need to replace it. Use the <em>Database | |
| 46 | + Install or Update DelphiDabbler Snippets Database</em> menu option to do |
| 47 | + that. |
| 48 | + </p> |
| 49 | + <h2> |
| 50 | + How to create a backup |
| 51 | + </h2> |
| 52 | + <p> |
| 53 | + To perform the backup just select the <em>Database | Backup User |
| 54 | + Database</em> menu option. This displays a |
| 55 | + <a href="dlg_backup.htm">file dialogue box</a> where you specify a file to |
| 56 | + use for the backup. It is up to you how to name the file. Including the |
| 57 | + date of the backup may be a good idea. |
| 58 | + </p> |
| 59 | + <p> |
| 60 | + You can save the file to a USB drive or portable hard drive or put it |
| 61 | + something like a Dropbox or Google Drive folder. |
| 62 | + </p> |
| 63 | + <h2> |
| 64 | + How to restore a backup |
| 65 | + </h2> |
| 66 | + <p> |
| 67 | + Should the worst happen and you loose your user defined database you can |
| 68 | + recreate it from your latest backup. |
| 69 | + </p> |
| 70 | + <p> |
| 71 | + To do this use the <em>Database | Restore Backup</em> menu option. This |
| 72 | + displays a <a href="dlg_restore.htm">file dialogue box</a> where you can |
| 73 | + navigate to your chosen backup file. Select the file and click <em>OK</em> |
| 74 | + to restore the backup. |
| 75 | + </p> |
| 76 | + <p> |
| 77 | + If the backup file is valid it will replace any existing user database and |
| 78 | + then the whole database will be reloaded. All existing tabs in the user |
| 79 | + interface will be closed. When the database has finished reloading a |
| 80 | + new tab will open with a message informing that the database has been |
| 81 | + updated. |
| 82 | + </p> |
| 83 | + </body> |
| 84 | +</html> |
0 commit comments