Closed skabashnyuk closed 8 months ago
Is busybox / entware even handling the --parents
parameter in cp
command? I mean, I think macOS systems (and other BSD systems?) also have problems using cp --parents
. I think --parents
only works on non-POSIX systems but not sure.
Could you try to replace the cp -r --parents "$file" "$backup_path/"
code in line 105 with the following:
rsync -R "$file" "$backup_path/"
Please tell me if this works and i will create an update for this behaviour.
Works like a charm.
pr made 👍
Good. Could you do me a favor and replace this new line now with this here
if ! cp --parents "$file" "$backup_path/"; then
rsynch -R "$file" "$backup_path/"
fi
Does this also work?
There is a new update available with this fix.
Code of Conduct
code
more readable which helps to fix the problemWhat happened
Error
during execution of
./klipper-backup/script.sh
scriptWhat did you expect to happen
Successful backup.
How to reproduce
GNU bash, version 5.2.15(1)-release (mipsel-openwrt-linux-gnu)
. installed from https://github.com/Entware/Entware repositoryBusyBox v1.36.1 (2024-02-24 17:59:02 UTC) multi-call binary.
installed from https://github.com/Entware/Entware repositoryln -s /usr/data/printer_data/ /root/printer_data
Additional information
No response