Hello everybody.
I use rsync to sync files between a server at work and home.
When I run the rsync command on the command line, I get the following log:
When I execute the same command as a script in Bash, I get the following log:
It can be seen that in Bash there is a problem with the display of Cyrillic letters, and not all of them, but only those that are returned to rsync as path elements or file names. At the same time, these files on the disk after synchronization have a correct name that I can read.
The script itself looks something like this:
#!/bin/bash
exec 1>>/boot/config/plugins/user.scripts/scripts/***/work.log
date +"%F %T"
echo "Папка All"
echo ""
rsync -av --progress --stats -r -u -tgo -p -l --password-file=[PARAMETER] --exclude=*@*/ rsync://rsync@IP:PORT/All /mnt/user/backup/
Does anyone know if it is possible to fix something in the bash properties so that it is correct?