From: Reini U. <ru...@x-...> - 2001-08-06 10:20:04
|
Hi, This is a nice backup script suitable for cronjobs, daily backups where only incremental changes are stored. I believe that it only works for 1.3x (zipdump), someone else should find out the url to produce 1.2 dumps. But it's not hardcoded anywhere. Run it in the backupdir where all the ,v files get stored. This will get filled up with files according the pagenames, so it would be wise to be empty, otherwise the page will overwrite an existing file. Usage: cd /path/to/phpwiki/bak original: ../admin/wbackup http://myserver/mywiki/index.php? with pathinfo: ../admin/wbackup http://myserver/mywiki/ with ZIPDUMP_AUTH = true ../admin/wbackup --http-user=admin --http-passwd=pass http://myserver/mywiki/ I had to strip the first line of each backup file, not to check-in equal files, where only the dump date changed. Maybe one might take this to enable rcs versioning. At least I try to incoorporate rcsdiff with these backups to reduce the space overhead with the current versioning. Requirements: wget sed unzip on windows probably cygwin. Note: my windows versions of rcs and ci get confused with \r. (=> a big oneliner) so you would have to add unix2dos in between. CVS: where should be put such commandline utils? admin probably. I have other in the works, e.g. admin/fix_HomePage.php, to rename FrontPage to HomePage in the database, which can be called standalone or by url. based on admin/renamepage.php, which I'm writing right now. -- Reini Urban http://xarch.tu-graz.ac.at/home/rurban/ |