SHARE
TWEET

Untitled

a guest Dec 23rd, 2017 52 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2. USERNAME="your-ftp-user-name"
  3. PASSWORD="your-ftp-password"
  4. SERVER="your-ftp.server.com"
  5.  
  6. # local directory to pickup *.tar.gz file
  7. FILE="/tmp/backup"
  8.  
  9. # remote server directory to upload backup
  10. BACKUPDIR="/pro/backup/sql"
  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
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top