Backup MySQL, Web server Files to a FTP Server Automatically

#!/bin/sh # System + MySQL backup script # Full backup day - Sun (rest of the day do incremental backup) # Copyright (c) 2005-2006 nixCraft # This script is licensed under GNU GPL version 2.0 or above # Automatically generated by http://bash.cyberciti.biz/backup/wizard-ftp-script.php # ---------------------------------------------------------------------</p> <p>### System Setup ### DIRS="/etc /home"... [Read More]

Script per FTP upload

` #!/bin/sh USERNAME=”tmp” PASSWORD=”tmp” SERVER=”192.168.101.8”</p> # local directory to pickup *.tar.gz file LOCALDIR="/var/backups/snapshots" # remote server directory to upload backup BACKUPDIR="/prova" # login to remote server ftp -n -i $SERVER <<EOF user $USERNAME $PASSWORD cd $BACKUPDIR lcd $LOCALDIR mput *.tar.gz quit EOF ` [Read More]