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