蛙の井戸見聞記 Pretty frog in a well who knows nothing of the great web ocean!

~~ 好奇心は猫をも殺す Curiosity Kills the Cat ~~ ♪欲しいモノ・食べたいモノ・ネットで集めた情報と日々の記録の倉庫♪ Logging my life... Since 2003.12  

未検証スクリプト 

backtar.sh:

#!/bin/sh
ftp -i -v -n remote_address << END >>logfile.txt
user ftp_user_id ftp_passwd
cd /remote_backup_directory
bin
put |"./backup_local.sh" "hostname`_`date`.tar.gz"
quit
END

backup_local.sh:

#!/bin/sh
cd /
tar -vcf - * | gzip -c  2>>logfile.txt