Skip to main content
Clarify what might be missing
Source Link
Chris Davies
  • 128.1k
  • 16
  • 179
  • 324

You may be able to use NULL-terminated arguments:

find /mnt/media/ -name '*.epub' -print0 |
    rsync -as --files-from=- --from0 --no-relative / /home/user/Documents/ebooks

Or if you don'tyour find is POSIX and doesn't have thatthe -print0 option, try this slightly less comprehensive solution:

find /mnt/media/ -name '*.epub' |
    rsync -as --files-from=- --no-relative / /home/user/Documents/ebooks

You may be able to use NULL-terminated arguments:

find /mnt/media/ -name '*.epub' -print0 |
    rsync -as --files-from=- --from0 --no-relative / /home/user/Documents/ebooks

Or if you don't have that option, try this slightly less comprehensive solution:

find /mnt/media/ -name '*.epub' |
    rsync -as --files-from=- --no-relative / /home/user/Documents/ebooks

You may be able to use NULL-terminated arguments:

find /mnt/media/ -name '*.epub' -print0 |
    rsync -as --files-from=- --from0 --no-relative / /home/user/Documents/ebooks

Or if your find is POSIX and doesn't have the -print0 option, try this slightly less comprehensive solution:

find /mnt/media/ -name '*.epub' |
    rsync -as --files-from=- --no-relative / /home/user/Documents/ebooks
Source Link
Chris Davies
  • 128.1k
  • 16
  • 179
  • 324

You may be able to use NULL-terminated arguments:

find /mnt/media/ -name '*.epub' -print0 |
    rsync -as --files-from=- --from0 --no-relative / /home/user/Documents/ebooks

Or if you don't have that option, try this slightly less comprehensive solution:

find /mnt/media/ -name '*.epub' |
    rsync -as --files-from=- --no-relative / /home/user/Documents/ebooks