When trying to move some folder I am getting error: "cannot move File exists"
export BACKUP_DIR=/backup
mv -f $BACKUP_DIR/scripts $BACKUP_DIR/scripts_old
Getting error:
mv: cannot move '/backup/scripts' to '/backup/scripts_old/scripts': File exists
I've tried with -f option but without it as well - same error.
How I can move this?
Thanks!