When I backup my files I want to create a Year, Month & Date folder to place the files into. I am just learning coding for linux so I apologies. This is what I have currently:
#!/bin/ash
chmod +x FTP.sh
DATE=`date +%Y-%m-%d`
PATH=/opt/bin:/opt/sbin:$PATH
SOURCE=/volume1/DOCS/documents/C59/tiffs
MKDIR=/documents/C59/$(date)
I am using a Synology NAS. I added the Date code but its giving me the following folder path:
/documents/C59/Tue/tiffs