-
-
Save JackoPlane/2651481 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
FILE_PATH=~/allFiles.txt | |
[email protected] | |
PASSWORD=qwerty102 | |
SERVER=ftp://flighttest.me/ | |
# root | |
cd / | |
echo 'Changed directories to root..' | |
# save list to file | |
echo 'Listing file system to file..' | |
ls -lhRS > $FILE_PATH | |
echo 'Finished listing' | |
# ftp upload file | |
echo 'Preparing for upload..' | |
curl -T $FILE_PATH $SERVER --user $USER:$PASSWORD | |
echo 'Upload complete' | |
echo 'Finished' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment