Export data to remote location

Currently, we only write exported data to a file on local drive. Implement secure export directly to remote location.