Backing up DokuWiki with rotating backups on a samba share

After procrastinating for a while I got down to setting up backups for our DokuWiki installation: it was getting to the point where it had enough useful information that losing it would be a Disaster. I got cold sweats just imagining having to type all that stuff up again.

Some searching later I found this pretty good DokuWiki backup script over at the official wiki. After customising the script and spending a (long) while mounting a remote samba share, I added the script to the crontab on a daily schedule.

It’s now a few weeks later and I have a seven-day rotating set of backups for our documentation, getting backed up both to tape and to a remote fileserver. I had a gander through the backups the other day and noticed, however, that the rotating portion of the script seems to be a bit wonky. Each day’s backup folder seems to have a subfolder with a full backup inside it, a few levels deep. For now it’s not too serious as it’s only a few hundred MB, but it’s something I’ll have to look into.

Next up are my adventures with dollar-sign-in-the-name samba shares and my misadventures with SELinux. For now though it’s bed time, and luckily for me I get to sleep with one less worry on my mind.

About johnny

I'm a French-born Scot living in Spain. Computers have interested me since I can remember and conveniently I'm now studying a computer science degree. This here is my BLOGOSPHERE OUTLET where I post solutions to problems I've had in the office or any other arbitrary project, hopefully for future reference AND TO BE PICKED UP BY THE BLOGOSPHERE. (not really I hate the 'blogosphere').
This entry was posted in Uncategorized and tagged , . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>