I'm trying to tar and gzip a file with date and time as the name:
date=$(date '+%d-%m-%Y_%H:%M:%S'); tar -zcf "$date".tar.gz repo/bin/
But I get back:
tar (child): Cannot connect to 17-08-2017_21: resolve failed tar: Child returned status 128 tar: Error is not recoverable: exiting now
What exactly is happening here and how can I fix?
Is tar trying to connect to the name as if it's an ip?