/dev/null as a local filesystem for rclone

It seems odd but I’m testing something with rclone.
I want to copy a large amount of data from a remote to /dev/null

./rclone copy remote: /dev/null -vv

returns:
2018/05/05 23:12:21 ERROR : : error reading destination directory: failed to read directory “”: readdirent: not a directory
2018/05/05 23:12:21 ERROR : Attempt 1/3 failed with 1 errors
2018/05/05 23:12:21 ERROR : : error reading destination directory: failed to read directory “”: readdirent: not a directory
2018/05/05 23:12:21 ERROR : Attempt 2/3 failed with 1 errors
2018/05/05 23:12:21 ERROR : : error reading destination directory: failed to read directory “”: readdirent: not a directory
2018/05/05 23:12:21 ERROR : Attempt 3/3 failed with 1 errors

Any ideas on how to make this happen?

Thanks!

Edit: found what I was looking for: https://github.com/yt1967/nullfs

1 Like