Created
February 2, 2020 11:03
-
-
Save gaiar/0db055deca9f390a3d8d5e4c44746413 to your computer and use it in GitHub Desktop.
Revisions
-
gaiar created this gist
Feb 2, 2020 .There are no files selected for viewing
This file contains hidden or 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 charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,16 @@ #!/bin/bash HOST='<IP ADDRESS>' USER='<USER>' PASS='<PASSWORD>' TARGETFOLDER='/media/external/record' SOURCEFOLDER='/tmp/sd/record' lftp -f " set ftp:passive-mode on set ftp:ssl-allow yes set ssl:verify-certificate no open -u $USER,$PASS $HOST cd $SOURCEFOLDER mirror --continue --scan-all-first --use-cache --only-missing --verbose $SOURCEFOLDER $TARGETFOLDER bye "