#! /bin/sh date=`date +%Y%m%d` nd=`expr ${d} ` mkdir /home/domain.com/public_html/Backup/$date chown -R useri_id /home/domain.com/public_html/Backup/$date chgrp -R useri_id /home/domain.com/public_html/Backup/$date # 1st data cleaner mv -f /home/domain.com/public_html/Data/* /home/domain.com/public_html/Backup/$date/ cd /home/domain.com/public_html/Data/ ftp -n