Rsync problem (QNAP to WD EXT2 ultra) after upgrading to OS5

I copied rsync binary from my Raspberry Pi. Then I created a persistant softlink /usr/bin/rsync to the version I downloaded from the raspbery. To make it persistant there needs to be a script to re-create the link that runs at boot. My script does other things but here is the part that creates the link: (change GOOD_RSYNC to path you placed the copied rsync binary, I suggest somewhere on /mnt/HD/HD_a2/ )

GOOD_RSYNC=/cust/bin/rsync
RSYNC_LINK=/usr/bin/rsync
if [ -x $GOOD_RSYNC ]
then
ln -sf $GOOD_RSYNC $RSYNC_LINK
echo $RSYNC_LINK set to $GOOD_RSYNC >> $LOG
else
echo $GOOD_RSYNC is missing or not executable >> $LOG
fi
unset GOOD_RSYNC RSYNC_LINK

To get my script to run a boot I installed the Internal Backups app and added a line to call it in
/mnt/HD/HD_a2/Nas_Prog/InternalBackups/start.sh

If you don’t have a raspberry Pi you should be able to download the .deb file from the raspberry repository and use archive tools to extract the rsync binary. The following to works for me:

REPO=https://mirror.usenet.farm/raspbian/raspbian/pool/main
wget $REPO/r/rsync/rsync_3.1.3-6_armhf.deb
ar -x rsync_3.1.3-6_armhf.deb
tar xvJf data.tar.xz ./usr/bin/rsync

Hope that helps.

10/22/21 Note: WD uses rsync for remote backups. It is likely they had a reason to supply a custom build of rsync. If remote backups are not working properly it would be better to ask WD for a solution.

1 Like