rsync doesn't write anything in the .log file
by n�roli from LinuxQuestions.org on (#6CYT7)
Hello,
I'm trying to create a log file for rsync (between two debian 11 VM on the same network) using this command :
svgdata@srvdata:$ rsync -avrb --log-file=/home/svgdata/rsynclog.log --backup --backup-dir='/home/svguser/svguserbackup/' --suffix=.bckup /home/svgdata/folder1/ svguser@192.168.1.18:/home/svguser/folder1/
the first time I used this command, it created the log file /home/svgdata/rsynclog.log, but without anything written in it, and the owner of this file (svgdata) had no execute rights on it.
So, I changed the permissions to 7 for the owner of rsynclog.log, and tried the command one more time, but still nothing was written in the log file.
I don't understand why rsync wouldn't write anything in the log file :(
I'm trying to create a log file for rsync (between two debian 11 VM on the same network) using this command :
svgdata@srvdata:$ rsync -avrb --log-file=/home/svgdata/rsynclog.log --backup --backup-dir='/home/svguser/svguserbackup/' --suffix=.bckup /home/svgdata/folder1/ svguser@192.168.1.18:/home/svguser/folder1/
the first time I used this command, it created the log file /home/svgdata/rsynclog.log, but without anything written in it, and the owner of this file (svgdata) had no execute rights on it.
So, I changed the permissions to 7 for the owner of rsynclog.log, and tried the command one more time, but still nothing was written in the log file.
I don't understand why rsync wouldn't write anything in the log file :(