dired-rsync icon indicating copy to clipboard operation
dired-rsync copied to clipboard

Support for a certain rsync workflow

Open contrapunctus-1 opened this issue 4 years ago • 1 comments

I have a certain rsync workflow I'm trying to (partially) automate -

  1. Local-to-local synchronization
  2. User specifies an alist of source/target directory pairs. These do not change too often, so I don't want to be asked about them (via command line, queries, or even through dired) every time I want to run rsync.
  3. Running the main command iterates over the alist, calling rsync for each pair of paths, with --dry-run and --delete-after (among others). The user inspects the rsync output, and can accept it (which runs the same rsync command but without --dry-run), or run other commands to interact with the output (e.g. searching for the file at point in the source or the target directories). The iteration can be paused and resumed across Emacs sessions.

I had seen dired-rsync, but it didn't sound like it was made for this kind of workflow, so I started writing my own package called rsync.el - there's some elementary code there.

Can dired-rsync do something like this, as it stands? If not, would it meet your vision for dired-rsync for me to extend it to support this workflow? It can also be a separate package extending it.

contrapunctus-1 avatar Jun 19 '20 08:06 contrapunctus-1

I don't see any reason why we couldn't improve the local to local case although I'm not so sure about how a UI for previewing would work. I guess it would be kinda cool to be able to "bookmark" a command.

stsquad avatar Jun 19 '20 17:06 stsquad