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 `