| 1 | <?xml version="1.0" encoding="iso-8859-1"?> |
|---|
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> |
|---|
| 3 | <html xmlns="http://www.w3.org/1999/xhtml"> |
|---|
| 4 | <head> |
|---|
| 5 | <meta http-equiv="content-type" content="text/html;charset=iso-8859-1" /> |
|---|
| 6 | <title>Changing configuration from 0.06 to 0.07</title> |
|---|
| 7 | <link rel="stylesheet" href="bbstyles.css" type="text/css" /> |
|---|
| 8 | </head> |
|---|
| 9 | <body> |
|---|
| 10 | <div align="center"> |
|---|
| 11 | <div id="header"> |
|---|
| 12 | <div id="logo"> |
|---|
| 13 | <img src="images/bblogo.png" alt="logo" height="65" width="331" border="0" vspace="5" align="middle" /> <img src="images/stepahead.png" alt="a step ahead in data security" width="182" height="11" hspace="10" vspace="20" border="0" align="middle" /></div> |
|---|
| 14 | </div> |
|---|
| 15 | <div id="page"> |
|---|
| 16 | |
|---|
| 17 | <h1>Upgrading from 0.06 to 0.07</h1> |
|---|
| 18 | |
|---|
| 19 | <h2>Client</h2> |
|---|
| 20 | |
|---|
| 21 | <p>The following command has been added to the <tt>bbackupd.conf</tt> configuration file:</p> |
|---|
| 22 | |
|---|
| 23 | <pre> |
|---|
| 24 | SyncAllowScript = /path/to/intepreter/or/exe script-name parameters etc |
|---|
| 25 | </pre> |
|---|
| 26 | <p>Use this to temporarily stop bbackupd from syncronising or connecting to the store. |
|---|
| 27 | This specifies a program or script script which is run just before each sync, and ideally |
|---|
| 28 | the full path to the interpreter. It will be run as the same user bbackupd is running as, |
|---|
| 29 | usually root.</p> |
|---|
| 30 | <p>The script prints either "now" or a number to STDOUT (and a terminating newline, no quotes). |
|---|
| 31 | If the result was "now", then the sync will happen. If it's a number, then the script will |
|---|
| 32 | be asked again in that number of seconds.</p> |
|---|
| 33 | <p>For example, you could use this on a laptop to only backup when on a specific network.</p> |
|---|
| 34 | |
|---|
| 35 | |
|---|
| 36 | <h2>Server -- non-RAID configurations only</h2> |
|---|
| 37 | |
|---|
| 38 | <p>Version 0.06 and below had a bug where the space used on the server was incorrect if (and only |
|---|
| 39 | if) you were running it in non-userland RAID mode (that is, only specify one directory to |
|---|
| 40 | <tt>raidfile-config</tt>). Space used would be 50% greater than actually used, meaning that housekeeping would trim files from the accounts prematurely.</p> |
|---|
| 41 | |
|---|
| 42 | <p>This bug has been fixed, but you need to correct the store accounts on the server to get the storage spaced, and hence the housekeeping, working correctly.</p> |
|---|
| 43 | |
|---|
| 44 | <p>Firstly, upgrade the server. Make sure the bbstored daemon is stopped, then for each account do</p> |
|---|
| 45 | |
|---|
| 46 | <pre> |
|---|
| 47 | /usr/local/bin/bbstoreaccounts check 12345 fix |
|---|
| 48 | </pre> |
|---|
| 49 | |
|---|
| 50 | <p>where 12345 is the account number. Then, start the server again. After housekeeping has run, which will take a few minutes, the accounts should be corrected, and <tt>bbstoreaccounts</tt> and the <tt>usage</tt> command within <tt>bbackupquery</tt> will report the correct size.</p> |
|---|
| 51 | |
|---|
| 52 | <p>RAID disc sets don't need to do this as the bug only affected non-RAID configurations.</p> |
|---|
| 53 | |
|---|
| 54 | |
|---|
| 55 | |
|---|
| 56 | <p> </p> |
|---|
| 57 | <p>© Ben Summers, 2003, 2004</p> |
|---|
| 58 | <p> </p> |
|---|
| 59 | </div> |
|---|
| 60 | </div> |
|---|
| 61 | </body> |
|---|
| 62 | </html> |
|---|