hpr4373 :: Rsync with stdin as source
Use find pipe it's the results into rsync to make a copy.
Hosted by oxo on Wednesday, 2025-05-07 is flagged as Explicit and is released under a CC-BY-SA license.
bash, commandline, find, rsync, pipe, stdout, stdin, backup, copy.
3.
Listen in ogg,
opus,
or mp3 format. Play now:
Duration: 00:20:13
Download the transcription and
subtitles.
Bash Scripting.
This is an open series in which Hacker Public Radio Listeners can share their Bash scripting knowledge and experience with the community. General programming topics and Bash commands are explored along with some tutorials for the complete novice.
In today's show, oxo show us how you can use the output of the find command with -print0 option to rsync files to another location.
find . -type f -mmin -230 -print0 | rsync -aAXv --info=progress2,stats --progress --from0 --files-from - . dst