Variable: dired-backup-overwrite
dired-backup-overwrite is a customizable variable defined in
dired-aux.el.gz.
Value
nil
Documentation
If non-nil, Dired makes backups of files before overwriting them.
By default, Dired asks whether to make a backup file for a file that
is about to be overwritten, but if this variable's value is always,
that suppresses the confirmation, and backup files are always created.
Source Code
;; Defined in /usr/src/emacs/lisp/dired-aux.el.gz
;;; Copy, move/rename, making hard and symbolic links
(defcustom dired-backup-overwrite nil
"If non-nil, Dired makes backups of files before overwriting them.
By default, Dired asks whether to make a backup file for a file that
is about to be overwritten, but if this variable's value is `always',
that suppresses the confirmation, and backup files are always created."
:type '(choice (const :tag "Do not backup files to be overwritten" nil)
(const :tag "Always backup files to be overwritten" always)
(other :tag
"Ask whether to backup files to be overwritten" t))
:group 'dired)