Function: dired-rsync

dired-rsync is an interactive and natively compiled function defined in dired-rsync.el.

Signature

(dired-rsync DEST)

Documentation

Asynchronously copy files in Dired to DEST using rsync.

DEST can be a relative filename and will be processed by expand-file-name before being passed to the rsync command.

This function runs the copy asynchronously so Emacs won't block whilst the copy is running. It also handles both source and destinations on ssh/scp tramp connections.

Key Bindings

This command is not in any keymaps.

Source Code

;; Defined in /nix/store/i42d1fmg6q3dci37c05j415vhqjrzi15-emacs-packages-deps/share/emacs/site-lisp/elpa/dired-rsync-20261005.758/dired-rsync.el
;;;###autoload
(defun dired-rsync (dest)
  "Asynchronously copy files in Dired to `DEST' using rsync.

`DEST' can be a relative filename and will be processed by
`expand-file-name' before being passed to the rsync command.

This function runs the copy asynchronously so Emacs won't block whilst
the copy is running.  It also handles both source and destinations on
ssh/scp tramp connections."
  ;; Interactively grab dest if not called with
  (interactive
   (list (read-file-name "rsync to: " (dired-dwim-target-directory)
                         nil nil nil 'file-directory-p)))

  (setq dest (expand-file-name dest))

  (let* ((sfiles (funcall dired-rsync-source-files))
         (cmd (dired-rsync--build-cmd sfiles dest)))
    (dired-rsync--do-run cmd
                         (list :marked-files sfiles
                               :dired-buffer (current-buffer)))))