Skip to content

Instantly share code, notes, and snippets.

@nickloman
Created November 30, 2015 08:43
Show Gist options
  • Save nickloman/f6b2d1f100b2fb3e4791 to your computer and use it in GitHub Desktop.
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
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