Recent Changes for "Backup" - Sycamore Wikihttp://www.projectsycamore.org/BackupRecent Changes of the page "Backup" on Sycamore Wiki.en-us Backuphttp://www.projectsycamore.org/Backup2008-12-24 00:44:09PhilipNeustromsqlite <div id="content" class="wikipage content"> Differences for Backup<p><strong></strong></p><table> <tr> <td> <span> Deletions are marked with - . </span> </td> <td> <span> Additions are marked with +. </span> </td> </tr> <tr> <td> Line 27: </td> <td> Line 27: </td> </tr> <tr> <td> </td> <td> <span>+ == SQLite database backup ==<br> + <br> + {{{ cp sycamore_dir/share/data/wiki.db your/new/location/wiki.db }}}<br> + <br> + :) SQLite uses just a single file for the whole database.<br> + </span> </td> </tr> </table> </div> Backuphttp://www.projectsycamore.org/Backup2007-12-17 02:05:57PhilipNeustromlinked export <div id="content" class="wikipage content"> Differences for Backup<p><strong></strong></p><table> <tr> <td> <span> Deletions are marked with - . </span> </td> <td> <span> Additions are marked with +. </span> </td> </tr> <tr> <td> Line 2: </td> <td> Line 2: </td> </tr> <tr> <td> </td> <td> <span>+ <br> + For a usable neat little wiki export, see the ["export"] page.</span> </td> </tr> </table> </div> Backuphttp://www.projectsycamore.org/Backup2006-09-28 02:55:27AdamDewitz+ Export link <div id="content" class="wikipage content"> Differences for Backup<p><strong></strong></p><table> <tr> <td> <span> Deletions are marked with - . </span> </td> <td> <span> Additions are marked with +. </span> </td> </tr> <tr> <td> Line 28: </td> <td> Line 28: </td> </tr> <tr> <td> </td> <td> <span>+ <br> + An ["Export"] function is currently being investigated.</span> </td> </tr> </table> </div> Backuphttp://www.projectsycamore.org/Backup2006-09-20 04:12:56AdamDewitzRenamed from "backup" <div id="content" class="wikipage content"> Differences for Backup<p><strong></strong></p>No differences found!</div> backuphttp://www.projectsycamore.org/Backup2006-09-20 03:54:41AdamDewitz- _ in ["Sycamore maintenance"] <div id="content" class="wikipage content"> Differences for Backup<p><strong></strong></p><table> <tr> <td> <span> Deletions are marked with - . </span> </td> <td> <span> Additions are marked with +. </span> </td> </tr> <tr> <td> Line 13: </td> <td> Line 13: </td> </tr> <tr> <td> <span>-</span> I noticed that some of the pages would render with errors after I used a database I just restored. Running the ["Sycamore<span>_</span>maintenance"] and choosing ''Rebuild all page caches'' seemed to clear that up. </td> <td> <span>+</span> I noticed that some of the pages would render with errors after I used a database I just restored. Running the ["Sycamore<span>&nbsp;</span>maintenance"] and choosing ''Rebuild all page caches'' seemed to clear that up. </td> </tr> </table> </div> backuphttp://www.projectsycamore.org/Backup2006-09-05 23:43:55added a bit <div id="content" class="wikipage content"> Differences for Backup<p><strong></strong></p><table> <tr> <td> <span> Deletions are marked with - . </span> </td> <td> <span> Additions are marked with +. </span> </td> </tr> <tr> <td> Line 1: </td> <td> Line 1: </td> </tr> <tr> <td> <span>-</span> This page will hopefully one day have all the info you need to make decent backups of your databases and files. </td> <td> <span>+</span> This page will hopefully one day have all the info you need to make decent backups of your databases and files.<span>&nbsp;&nbsp;The two methods described below, for MySQL and PostgreSQL, will dump sensitive user information as well, so be careful who you give your backups to!</span> </td> </tr> <tr> <td> Line 3: </td> <td> Line 3: </td> </tr> <tr> <td> <span>-</span> <span>-----<br> -</span> <span><br> - '''</span>MySQL database backup<span>'''</span> </td> <td> <span>+</span> <span>==</span> MySQL database backup<span>&nbsp;==</span> </td> </tr> <tr> <td> Line 20: </td> <td> Line 18: </td> </tr> <tr> <td> <span>- -----</span> </td> <td> <span>+ <br> + == PostgreSQL database backup ==<br> + <br> + {{{pg_dump my_sycamore_db &gt; my_sycamore_db.sql}}}<br> + <br> + This will dump everything!<br> + <br> + == Future ==<br> + <br> + In the future we'd like to have a backup that uses python to dump to a standard format (and import, as well). XML might be fine for this purpose.</span> </td> </tr> </table> </div> backuphttp://www.projectsycamore.org/Backup2006-09-05 22:20:53MichaelWoods <div id="content" class="wikipage content"> Differences for Backup<p><strong></strong></p><table> <tr> <td> <span> Deletions are marked with - . </span> </td> <td> <span> Additions are marked with +. </span> </td> </tr> <tr> <td> Line 9: </td> <td> Line 9: </td> </tr> <tr> <td> <span>-</span> This will dump all the tables but none of the tables that end in <span>"</span>Changes<span>"</span> because they have the table type of VIEW. </td> <td> <span>+</span> This will dump all the tables but none of the tables that end in <span>''</span>Changes<span>''</span> because they have the table type of VIEW. </td> </tr> </table> </div> backuphttp://www.projectsycamore.org/Backup2006-09-05 22:20:15MichaelWoodsinitial page creation <div id="content" class="wikipage content"> Differences for Backup<p><strong></strong></p><table> <tr> <td> <span> Deletions are marked with - . </span> </td> <td> <span> Additions are marked with +. </span> </td> </tr> <tr> <td> Line 1: </td> <td> Line 1: </td> </tr> <tr> <td> </td> <td> <span>+ This page will hopefully one day have all the info you need to make decent backups of your databases and files.<br> + <br> + -----<br> + <br> + '''MySQL database backup'''<br> + <br> + {{{mysqldump -u username -pPASSWORD -h mysql.mydomain.com my_sycamore_db &gt; my_sycamore_db.sql}}}<br> + <br> + This will dump all the tables but none of the tables that end in "Changes" because they have the table type of VIEW.<br> + <br> + To restore from this backup I am using phpmyadmin to run the sql file this generates.<br> + <br> + You will also need to run the CREATE VIEW code from your sycamore/buildDB.py file. Search for {{{if config.db_type == 'mysql'}}} around line 559, then copy and run those SQL queries on your database.<br> + <br> + I noticed that some of the pages would render with errors after I used a database I just restored. Running the ["Sycamore_maintenance"] and choosing ''Rebuild all page caches'' seemed to clear that up.<br> + <br> + I'll try and add the command line info later.<br> + --["MichaelWoods"]<br> + <br> + -----</span> </td> </tr> </table> </div>