Help on rsync

  • I moved one of my OMV machines (DESTINATION) to mom's house to rsync from my Gen8 (SOURCE) at home. I can SSH shell at her machine back to the Gen8, so port forwarding rule and public key settings are all good. However, when it remote rsync (pull) with this:


    Code
    rsync -av --delete --numeric-ids --rsh=/usr/bin/ssh -p 8822 -i /var/lib/openmediavault/ssh/keys/BACKUP_KEY root@source.duckdns.org:/srv/dev-disk-by-label-SOURCE/SOURCE_FOLDER/ /srv/dev-disk-by-label-DESTINATION/.


    it doesn't work and prompts this:


    Code
    Unexpected remote arg: root@source.duckdns.org:/srv/dev-disk-by-label-SOURCE/SOURCE_FOLDER/
    rsync error: syntax or usage error (code 1) at main.c(1348) [sender=3.1.1]

    What's wrong with the syntax? Thanks.

  • I've got some progress by adding an "-e" option to the command.



    Code
    rsync -av --delete --numeric-ids -e "ssh -p 8822 -i /var/lib/openmediavault/ssh/keys/BACKUP_KEY" root@source.duckdns.org:/srv/dev-disk-by-label-SOURCE/SOURCE_FOLDER/ /srv/dev-disk-by-label-DESTINATION/.


    It goes through the whole rsync process, but no file is copied. The output is like this:


    Code
    receiving incremental file list
    
    
    sent 789 bytes  received 355,234 bytes  64,731.45 bytes/sec
    total size is 33,212,732,677  speedup is 93,288.17


    What am I doing wrong, can someone help me on this?


    Thanks,
    Patrick

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!