Monthly Archive for April, 2006

Script to Automate FTP site Backup.

Based on my yesterday experimentations, I’ve code today a little script to automate the backup of several websites of mine. This script use lftp to mirror file from a remote host to your local machine. Then it create a bzip2 archive.

You can download the script here. To make it working, you need python on your system. To configure it, edit the ftpsite_list python list in the begining of the file.

Bad FTP mirrors with fmirror or wget ? Use lftp !

Today I’ve found that my websites were not backed up as expected. I was using fmirror (v0.8.4) to get a copy from my host provider to my backup machine. Here is the command line I was using:

fmirror -kRS -u kevin -p pass -s ftp.website.com -r /html -l /mnt/removable/website_backup/current

But fmirror seems to not care about sub-directories starting from a given depth. One source of the problem could be strange file names (spaces, utf8 chars, etc).

Because I don’t had the time to investigate further, I was looking for an alternative. So I tried wget (v1.10) with the following command:

wget -r -nH -N --cut-dirs=1 -l0 -np --cache=off ftp://kevin:pass@ftp.website.com:21/html -o ../backup.log

This work perfectly on small websites. But on my biggest one (hundreds of MB), wget hang up with the following error:

*** glibc detected *** double free or corruption (top): 0x08097750 ***

It seems to be a known limitation of wget: “Wget has got serious problems retrieving huge sites” (source: “Possible Alternatives to WGET”).

So I went back to basics by using the good old lftp, which is efficient and reliable. Here is the command:

lftp -c 'open -e "mirror -e . ./ " ftp://kevin:pass@ftp.website.com:21/html'

Mandriva 2006.0 rpms: amarok, qemu, kqemu and baghira updated.

I updated the baghira rpm with the 24/02/2006 CVS version. This version correct a very annoying bug I had with the previous RPM. Now Kpdf doesn’t freeze anymore.

I also added newer version of qemu and kqemu v0.7.2 I found on P.Terjan repository and Amarok 1.4beta2 from the gkmweb.com repository.

Rugg 0.2.1 RPM package for Mandriva 2006.0

I’ve build a RPM package of Rugg for Mandriva 2006. I also added a source-rpm repository for Mandriva 2006.0 on this site.

Rugg describe itself as a “Flexible file system and hard drive crash testing”. Take a look on the official project website for details: Rugg Project website.

New Repository for Mandriva 2006

Hi all !

I’ve created a RPM repository on this site to deposit third-party software I found all around the net. At that time, available packages are Wormux v0.7 and Baghira v0.7.

To add the repository to your urpmi database, in a terminal, do as root:

urpmi.addmedia kev-repository http://kev.coolcavemen.com/static/repository/mandriva/2006.0/i586 with hdlist.cz