Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- USERNAME="" #You need to edit this // Es. "your-ftp-user-name"
- PASSWORD="" #You need to edit this // Es. "your-ftp-password"
- SERVER="" #You need to edit this // Es. "your-ftp.server.com"
- # local directory to pickup *.tar.gz file
- FILE="/tmp/backup" #You need to edit this
- # remote server directory to upload backup
- BACKUPDIR="/pro/backup/sql" #You need to edit this
- # login to remote server
- ftp -n -i $SERVER <<EOF
- user $USERNAME $PASSWORD
- cd $BACKUPDIR
- mput $FILE/*.tar.gz
- quit
- EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement