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!
scripts_oldis folder and it contains as well folderscriptswhich I want to overwritedrwxr-xr-x. scripts_old– AndreyS Jan 16 '22 at 20:13-Roption cannot be used formv. output:mv: invalid option -- 'R'sorry but your link is not valid solution – AndreyS Jan 16 '22 at 20:28rmcommand before themv– AndreyS Jan 16 '22 at 20:38