Skip to content

Much faster borg backup over SSH via ProxyCommand's use of nc #3747

@ttsiodras

Description

@ttsiodras

This is not a bug - it's more like a gentle suggestion :-)

I am using borgbackup to do a weekly backup of my Arch Linux laptop contents to an Orange PI SBC running Armbian. I am doing this over borgbackup, and recently realized that the SSH speeds used are far inferior to what my wifi link can deliver. You can read my debugging story here or watch a video about it here - the executive summary is that I got almost an order of magnitude faster transfers via use of netcat in SSH's ProxyCommand:

$ cat .ssh/config
Host orangepi
    Hostname 192.168.1.150
    User root
    Port 22
    ProxyCommand nc %h %p

....which can also be done in the command line - as my debugging story shows via ssh -o "ProxyCommand nc %h %p".

Perhaps you can have a look and see if this improves speed in your tests as well (it definitely did on my own) - and if so, perhaps consider it for use as a default.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions