ash: rsync: not found
I have compiled openssh-sftp-server and thought it includes rsync. Which packages do I need for rsync? Of course rsync probably, but anything else?
ash: rsync: not found
I have compiled openssh-sftp-server and thought it includes rsync. Which packages do I need for rsync? Of course rsync probably, but anything else?
Johnny - what is your name?
Obviously there is rsync and rsyncd. Actually I needed the daemon. Anyway solved for me.
Actually, if you use rsync
via ssh, both your machine and the server host will need to have just rsync
installed, since that is the program your ssh session will try to execute via its login shell on the remote after authentication has succeeded.
However, if you use rsync over the rsync-over-the-network-protocol (default TCP port 873), as denoted by an rsync-specific URI prefix (rsync://
) in the src or dest part of your invocation, the server will need to have rsyncd
installed, running, and listening on the TCP port your client decides to connect to.
On some "heavyweight" distros, rsyncd
is included in the more generally useful package that installs rsync
. OpenWrt splits that to save a few bytes for most people who will only need rsync
.
Thanks for clarifying this. I have space more than enough. So if I install rsyncd only, is rsync installed automatically?
The rsyncd
package metadata specifies:
(You can query that yourself by running opkg info rsyncd
on the OpenWrt shell.)
So yes, when you install it, you also will get rsync
"for free" (at the expense of 185858 bytes and some additional, required dependencies ;)).
So when I compile online with the firmware-selector and choose "rsync rsyncd" rsync is redundant but doesn't waste space.
As already said, I have lots of unused space.
root@EX6150v2:~# free
total used free shared buff/cache available
Mem: 247156 66704 155092 264 25360 143064
Swap: 0 0 0
One of my weakest devices.
Yes, that is correct.
Thanks, do you see any reason not to install rsyncd if there is enough space?
You can add zram-swap to roll over minor memory shortages
I want to be prepared for some scripting needs, so I am compiling packages online which are sometimes needed.
I have a weaker unused / backup openwrt device.
root@C7v5-23:~# free
total used free shared buff/cache available
Mem: 121172 48324 44040 276 28808 33732
Swap: 0 0 0
Memory is compiled with these packages:
base-files ca-bundle dnsmasq dropbear firewall4 fstools kmod-ath9k kmod-gpio-button-hotplug kmod-nft-offload libc libgcc libustream-mbedtls logd mtd netifd nftables odhcp6c odhcpd-ipv6only opkg ppp ppp-mod-pppoe procd-ujail swconfig uboot-envtools uci uclient-fetch urandom-seed urngd wpad-basic-mbedtls kmod-usb2 kmod-usb-ledtrig-usbport kmod-ath10k-ct ath10k-firmware-qca988x-ct luci arp-scan iperf iperf3 nmap openssh-sftp-server rsync rsyncd
Hardware:
$ ssh root@192.168.178.23 ubus call system board
{
"kernel": "6.6.86",
"hostname": "C7v5-23",
"system": "Qualcomm Atheros QCA956X ver 1 rev 0",
"model": "TP-Link Archer C7 v5",
"board_name": "tplink,archer-c7-v5",
"rootfs_type": "squashfs",
"release": {
"distribution": "OpenWrt",
"version": "24.10.1",
"revision": "r28597-0425664679",
"target": "ath79/generic",
"description": "OpenWrt 24.10.1 r28597-0425664679",
"builddate": "1744562312"
}
}
I think this is still enough memory for "normal" use. This is a normally unused backup device in case a used device gets broken.