Skip to content

Instantly share code, notes, and snippets.

@debility-zz
debility-zz / apache_config_converter.sh
Created January 4, 2012 07:06
apache config converter v0.1.1
#!/bin/sh
CONFIG_FILE="/etc/httpd/conf/httpd.conf"
DATE=`date '+%Y%m%d'`
if [ -f "${CONFIG_FILE}.orig.${DATE}" ]; then
echo '(maybe)apache config file is already converted. :-P'
exit
fi
File:
CentOS 5.7 i386 20GB (gzipped -> 649MB)
use File::Copy;
copy($baseImageFileName, $imageFileName);
real 6m34.418s
user 0m0.394s
sys 0m47.059s