![]() ![]() ![]() The above tells LFTP to execute two commands separated by a semi-colon. usr/bin/lftp -c "open -p 9922 -u jdoe,passw0rd s mirror -c -e -R -L /source-folder /destination-folder/" Therefore, getting RSYNC like “mirroring” capability using plain SFTP was going to be a scripting nightmare (perhaps not, maybe I didn’t dig deep enough but that is certainly what it looked like to me…).Īfter much searching of the Google (thankfully Donald Trump hasn’t turned the internet off yet…) I came across a small program called LFTP referenced on several sites linked below in my “references” section.įirst I installed LFTP which is in the ubuntu repositories (love Ubuntu…) ![]() Now, IMHO, the built-in SFTP program for Ubuntu has a syntax that is a royal PIA for any kind of complex or sophisticated file copy operations. However I was recently tasked with a “fun” project that involved me needing to script the syncing of some directories between a linux server and a windows server running third-party SFTP software… that doesn’t allow SSH, SCP, etc. This is because I am used to working between linux systems on which I always have root/sudo access and also have SSH. All of my backup scripts are based on using RSYNC. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |