This must be a very simple issue to solve, but I am stuck (not a UNIX pro). I need to move a gz to a target directory, but I get a No such file or directory.
NOW=$(date +"%Y-%m-%d-%T")
DEST="~/scripts/backup"
SQL_DUMP="db_dump_$NOW.sql.gz"
echo "$SQL_DUMP"
drush sql-dump | gzip -9 > $SQL_DUMP
mv -t $DEST $SQL_DUMP
The sql.gz is created properly, only the last command does not work. How should I use it? Thanks.