#/bin/bash
unzip -d temp_backup_dir ${1}.zip
cd temp_backup_dir
mv $1.ldif new_${1}.ldif
mv tomcat.keystore .keystore
zip -r ../new_${1}.zip *
zip -j ../new_${1}.zip .keystore
cd ..
rm -r temp_backup_dir
zip -d new_${1}.zip tr/
zip -d new_${1}.zip keys/
echo
echo "Backup file converted to unix format !!!"
echo
