I want to replace files from mnt/storage/backup/*.gz to mnt/storage/backup/<date>/*.gz
<date> is the date from today and is a folder that must be created.
I want to do this by a cron job. Something like mv /mnt/storage/backup/*.gz
/mnt/storage/backup/<date>/*.gz
The question: is this possible and how get I the date of today in the command line.
<date> is the date from today and is a folder that must be created.
I want to do this by a cron job. Something like mv /mnt/storage/backup/*.gz
/mnt/storage/backup/<date>/*.gz
The question: is this possible and how get I the date of today in the command line.