Running the Backup and Sync app on the UGREEN NAS would fail with the following:
“Failed to perform “MyMedia”. Reason: “Path does not exist/No permission/Insufficient capacity/Incompatible with the external device system”
Not very helpful.
Some poking around pointed to illegal filenames for exFAT. I searched for the files using the following:
find . -name "*[\"*:<>?\\|]*"
This found more than 100 files. I asked Claude to help with a script to rename the files. I chose “-” for the replacement character. Here’s what Claude came up with:
find . -name "*[\"*:<>?\\|]*" -depth | while IFS= read -r file; do
dir=$(dirname "$file")
base=$(basename "$file")
new_base=$(echo "$base" | tr '":*<>?\\|' '-')
if [ "$base" != "$new_base" ]; then
mv -n "$file" "$dir/$new_base"
echo "Renamed: $file -> $dir/$new_base"
fi
done
Renaming the files worked, and the backup ran without error.
One other note, UGREEN support was fast and friendly, which I appreciate.
Leave a Reply