3 ms·
rsync is an amazing tool, full of delightful secrets. One thing it doesn't have natively (unless it's really well hidden) is the ability to look at two directo
by Jedd 8y ago
rsync is an amazing tool, full of delightful secrets.
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.
- rstuart4133 8y agoUnless 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 media
- Jedd 8y agoWow .. 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.)
- lazylizard 8y agocan rsync --dry-run and | output to a file?
- Jedd 8y agoYup, 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/ https://jeddi.org/b/2016/05/28/rsync-from-a-to-b-via-usb/
- akvadrako 8y agoI think he means a diff that includes the differences in content.