alias backupfolder='tar -zcvf $1_$(date '+%Y-%m-%d').tar.gz $1'
This alias creates the tar archive, but the naming is just __YYYY-MM-DD.tar.gz
.
I'm trying to get folder__YYYY-MM-DD.tar.gz
.
Do i need some special symbols in the $1
before _
?