Advertisement
Lettly

Untitled

Jun 16th, 2016
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. #!/bin/sh
  2. USERNAME="" #You need to edit this // Es. "your-ftp-user-name"
  3. PASSWORD="" #You need to edit this // Es. "your-ftp-password"
  4. SERVER="" #You need to edit this // Es. "your-ftp.server.com"
  5.  
  6. # local directory to pickup *.tar.gz file
  7. FILE="/tmp/backup" #You need to edit this
  8.  
  9. # remote server directory to upload backup
  10. BACKUPDIR="/pro/backup/sql" #You need to edit this
  11.  
  12. # login to remote server
  13. ftp -n -i $SERVER <<EOF
  14. user $USERNAME $PASSWORD
  15. cd $BACKUPDIR
  16. mput $FILE/*.tar.gz
  17. quit
  18. EOF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement