Created
November 30, 2015 08:43
-
-
Save nickloman/f6b2d1f100b2fb3e4791 to your computer and use it in GitHub Desktop.
Stream a directory of files to an FTP server, remembering the MD5 hash
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
tar -cf - $dir | tee >(ncftpput -v -F -u USER -p PASS -c HOST ${dir}.tar) | md5sum > ${dir}.md5 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment