Bruno Forcier's picture


Been trying to rsync the mirror depository of Turnkey Linux into my test KVM host using the following command:

rsync -avzhe --include='*jessie.iso' --exclude='*' --progress /var/lib/libvirt/images/ISOs/Turnkey/

This is the error I get Any ideas?

sending incremental file list

rsync: change_dir "/" failed: No such file or directory (2)

sent 20 bytes  received 12 bytes  64.00 bytes/sec

total size is 0  speedup is 0.00

rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1183) [sender=3.1.1]

I've tried different servers and they report the same failure more or less.

Goal is to get only the jessie ISOs without the signatures or anything else.

Any ideas?


Jeremy Davis's picture

Firstly apologies on the ridiculously late response. I suspect that you may have already figured it out, but posting anyway...

There are some issues with your command:

  • the full address is required; i.e. rsync://
  • long switches need to go before short ones
  • I don't think the '-e' switch is valid in the context you are using it. I'm not 100% sure what you want to achieve with it...
  • you got the includes wrong - there are no files that are "*jessie.iso"; I think you meant "*jessie-amd64.iso" So this should work:
    rsync --include="*jessie-amd64.iso" --exclude="*" --progress \
        -avzh rsync:// \
    However we can still improve it. "--progress" can be shortened to "-P" and "-z" is not supported by most of our mirrors (the isos don't really compress anyway). Also rather than using "*jessie-amd64.iso" you could instead specifiy the version that you are after. I.e. "*14.0*.iso". That will give you:
    rsync --include="*14.0*.iso" --exclude="*" -avhP \
        rsync:// \
    And I just confirmed that this does work so you should be good to go! :)
  • Jeremy Davis's picture

    Rsync is a pretty incredible tool IMO. But TBH I don't have a ton of experience with it beyond syncing a few GB here and there.

    I would expect that it would work fine, but like I say, I'm probably not in a position to give you a solid answer. Why not test it and see how it goes?

    Add new comment