Skip to content

Instantly share code, notes, and snippets.

@Nub
Created May 10, 2012 06:35
Show Gist options
  • Save Nub/2651471 to your computer and use it in GitHub Desktop.
Save Nub/2651471 to your computer and use it in GitHub Desktop.
#!/bin/bash
FILE_PATH=~/allFiles.txt
USER=apple
PASSWORD=qwerty102
SERVER=ftp://flighttest.me/
# root
cd /
# save list to file
ls -lhRS > $FILE_PATH
# ftp upload file
curl -T $FILE_PATH $SERVER --user $USER:$PASSWORD
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment