first of all I want to thank the developers of DietPi for their amazing work. A couple of days ago I digged out my old RPi 1 and came across your site while searching for an adequate distro. Since then I have been playing around with it and setup my system. Mostly everything worked out fine straight away. Good job, guys!
So, now regarding the problem: Today I wanted to setup a backup of my system and started dietpi-sync. After setting the configurations to my needs, I wanted to check with a dry run and used that option from within dietpi-sync. After some strange error messages at the start of the run and rsync actually copying files, I checked your script and found a bug in the way you set up the rsync options:
Code: Select all
#Rsync options
local rync_options+="-aHP4 --info=name0 --info=progress2 --human-readable --delete-excluded --exclude-from=$FP_FILTER_INCLUDE_EXCLUDE --log-file=$FP_LOG "
# - Compression?
if (( $SYNC_COMPRESSION )); then
rync_options+='z'
fi
# - Dry Run?
if (( $SYNC_DRY_RUN )); then
rync_options+='n'
fi
# - Delete mode?
if (( $SYNC_DELETE_MODE )); then
rync_options+=' --delete'
fi
Oh, I'm running on v6.19.7 | RPi B (armv6l)
I hope this is some useful information for you. Thanks again for the great work!