PmWiki.BackupAndRestore History
Hide minor edits - Show changes to output - Cancel
June 15, 2012, at 06:15 PM JST
by
- QcQMZxdjvQooChanged line 1 from:
eX8fBY <a href="http://dqfihrumrupk.com/">dqfihrumrupk</a>
to:
hfbbPE , [url=http://soabhgpareln.com/]soabhgpareln[/url], [link=http://zwcmjfhyrgtx.com/]zwcmjfhyrgtx[/link], http://idmowihonoil.com/
June 15, 2012, at 01:02 PM JST
by
- PwxslVpKggAsWWUChanged line 1 from:
lUnZ6V , [url=http://idydqhoemwyx.com/]idydqhoemwyx[/url], [link=http://gpajowffjtgd.com/]gpajowffjtgd[/link], http://pgebzlvxrach.com/
to:
eX8fBY <a href="http://dqfihrumrupk.com/">dqfihrumrupk</a>
June 14, 2012, at 04:03 AM JST
by
- VeSsBYKuHcscIxRChanged line 1 from:
lM4Vg9 <a href="http://vdehhyzuzhnf.com/">vdehhyzuzhnf</a>
to:
lUnZ6V , [url=http://idydqhoemwyx.com/]idydqhoemwyx[/url], [link=http://gpajowffjtgd.com/]gpajowffjtgd[/link], http://pgebzlvxrach.com/
June 13, 2012, at 05:13 AM JST
by
- nqgIGITbChanged line 1 from:
I link to the appropriate tags in my aouccnt in the body of a post and then bookmark the post page in del.icio.us as appropriate. If you add an extra blog tag to each post so bookmarked, you can use one of the feeds del.icio.us exports to get the tags that intersect with your blog tag.It works well enough for me (at ) that I haven't really thought about switching to another service.
to:
lM4Vg9 <a href="http://vdehhyzuzhnf.com/">vdehhyzuzhnf</a>
June 12, 2012, at 07:52 PM JST
by
- 0.25Changed lines 1-76 from:
This page has some background information on making backups and explains some basic *nix backup and restore procedures.
!! Introduction
Your wiki installation contains some unique data in the following directories:
local/ Local configuration scripts
cookbook/ Recipes obtained from the [[(Cookbook:)Cookbook]]
pub/ Publicly accessible files
wiki.d/ Wiki pages
uploads/ Uploaded files (attachments)
A good backup plan will include periodically archiving these directories — or at bare minimum [@local/@] and [@wiki.d/@]. Good practice dictates keeping your backup archives on a separate machine.
!! Simple Backup and Restore (*nix)
When it comes to backup, simpler is better. Since the pmwiki distribution is very small (about 1/4 megabyte), it's simplest to just archive the distribution files along with the data.
!!! Making a Backup Archive
The following *nix command, executed from the parent directory of your wiki's directory, will put a complete backup archive of your site in your home directory.
-> [@
tar -zcvf ~/wiki-backup-`date +%Y%m`.tar.gz wiki/
@]
!!! Restoring the Backup Archive
!!!! Simple Method
Your site can be restored and running in under 30 seconds with
-> [@
tar -zxvf ~/wiki-backup-200512.tar.gz
find wiki/uploads/ -type d |xargs chmod 777
find wiki/wiki.d/ -type d |xargs chmod 777
@]
!!!! A Slightly-More-Secure Method
The simple restore commands above will give you world-writable files and directories. You can avoid world-writable permissions by letting PmWiki create directories with the proper attributes (ownership and permissions) for you.
Start with
-> [@
tar -zxvf ~/wiki-backup-200512.tar.gz
rm -rf wiki/wiki.d
rm -rf uploads
chmod 2777 wiki/
@]
Now upload a file in each group that had uploads. If your site doesn't have uploads, just visit your site once so the wiki.d/ directory will be created.
Finish your installation with
-> [@
chmod 755 wiki/
tar -zxvf ~/wiki-backup-200512.tar.gz
@]
!!! Details
The commands on this page assume your site is in a directory called "wiki/". The test backup was made in December, 2005 so it's named accordingly.
Your site will only have an uploads/ directory if uploads are enabled.
The backup command uses a date stamp (YYYYMM) in the filename. If you automate the command via cron you'll wind up with monthly snapshots of your site. You can get a daily snapshot by appending %d to the date command ([@`date +%Y%m%d`@] will get you YYYYMMDD). Be wary of space limitations if you have a large uploads/ directory.
!! See Also
* A [[http://thread.gmane.org/gmane.comp.web.wiki.pmwiki.user/20317| thread]] [gmane.org] on the pmwiki-users mailing list.
* A [[(Cookbook:)BackupPages]] recipe in the cookbook.
%trail%<<|[[DocumentationIndex]]|>>
!! Introduction
Your wiki installation contains some unique data in the following directories:
local/ Local configuration scripts
cookbook/ Recipes obtained from the [[(Cookbook:)Cookbook]]
pub/ Publicly accessible files
wiki.d/ Wiki pages
uploads/ Uploaded files (attachments)
A good backup plan will include periodically archiving these directories — or at bare minimum [@local/@] and [@wiki.d/@]. Good practice dictates keeping your backup archives on a separate machine.
!! Simple Backup and Restore (*nix)
When it comes to backup, simpler is better. Since the pmwiki distribution is very small (about 1/4 megabyte), it's simplest to just archive the distribution files along with the data.
!!! Making a Backup Archive
The following *nix command, executed from the parent directory of your wiki's directory, will put a complete backup archive of your site in your home directory.
-> [@
tar -zcvf ~/wiki-backup-`date +%Y%m`.tar.gz wiki/
@]
!!! Restoring the Backup Archive
!!!! Simple Method
Your site can be restored and running in under 30 seconds with
-> [@
tar -zxvf ~/wiki-backup-200512.tar.gz
find wiki/uploads/ -type d |xargs chmod 777
find wiki/wiki.d/ -type d |xargs chmod 777
@]
!!!! A Slightly-More-Secure Method
The simple restore commands above will give you world-writable files and directories. You can avoid world-writable permissions by letting PmWiki create directories with the proper attributes (ownership and permissions) for you.
Start with
-> [@
tar -zxvf ~/wiki-backup-200512.tar.gz
rm -rf wiki/wiki.d
rm -rf uploads
chmod 2777 wiki/
@]
Now upload a file in each group that had uploads. If your site doesn't have uploads, just visit your site once so the wiki.d/ directory will be created.
Finish your installation with
-> [@
chmod 755 wiki/
tar -zxvf ~/wiki-backup-200512.tar.gz
@]
!!! Details
The commands on this page assume your site is in a directory called "wiki/". The test backup was made in December, 2005 so it's named accordingly.
Your site will only have an uploads/ directory if uploads are enabled.
The backup command uses a date stamp (YYYYMM) in the filename. If you automate the command via cron you'll wind up with monthly snapshots of your site. You can get a daily snapshot by appending %d to the date command ([@`date +%Y%m%d`@] will get you YYYYMMDD). Be wary of space limitations if you have a large uploads/ directory.
!! See Also
* A [[http://thread.gmane.org/gmane.comp.web.wiki.pmwiki.user/20317| thread]] [gmane.org] on the pmwiki-users mailing list.
* A [[(Cookbook:)BackupPages]] recipe in the cookbook.
%trail%<<|[[DocumentationIndex]]|>>
to:
I link to the appropriate tags in my aouccnt in the body of a post and then bookmark the post page in del.icio.us as appropriate. If you add an extra blog tag to each post so bookmarked, you can use one of the feeds del.icio.us exports to get the tags that intersect with your blog tag.It works well enough for me (at ) that I haven't really thought about switching to another service.