Re:A fun optimization trick from rsync
by rstuart4133 on Monday October 29, 2018 @03:44AM
(#18325654)
Unless you actually want whole files stored in a directory tree on your USB, --only-write-batch does exactly that. From the man page:
you can feel free to write the batch directly to some portable mediaWow .. how long has that been there?
(Sadly it's clear it was in fact there long before I wrote a workaround in response to not finding it.)
Re:A fun optimization trick from rsync
by lazylizard on Monday October 29, 2018 @12:56AM
(#18325173)
can rsync --dry-run and | output to a file?
Yup, that's what I ended up doing [1] - but was mildly surprised it wasn't built in, and very surprised that I couldn't find anyone else's solution.
[1] https://jeddi.org/b/2016/05/28/rsync-from-a-to-b-via-usb/
One thing it doesn't have natively (unless it's really well hidden) is the ability to look at two directory structures, and generate a delta of the two out to a separate location (say a USB stick).
A very useful feature for backups where you've got good enough (to run an rsync --dry-run) network connectivity, but not good enough to actually do the transfer.