How to log rsync?

ewsg

New Member
Joined
Jun 21, 2022
Messages
2
Reaction score
1
Credits
20
Hello everyone!

Thanks for accepting me here. :)

I would like to ask you about logging in rsync.

I am using rsync through a GUI (Grsync), and currently have the below task at crontab:

0 15 * * * DISPLAY=:0 grsync -e "default"

My question is: how to log all rsync operations to a file?

I tried to use the below line, without success:

0 15 * * * DISPLAY=:0 grsync -e "default" --log-file=/home/my-user/Documentos/rsync

Any help would be greatly appreciated.
 


SlowCoder

Gold Member
Gold Supporter
Joined
May 2, 2022
Messages
456
Reaction score
314
Credits
3,611
Since you're using cron, why not just use rsync instead?
Disclaimer: I'm not familiar with grsync or it's options.
 
OP
E

ewsg

New Member
Joined
Jun 21, 2022
Messages
2
Reaction score
1
Credits
20
Oh sorry. :(

I was using Grsync for so many time that I totally forgot the problem here. Now I set up a rsync command inside my crontab. Thanks for pointing me to this error. :)

Now I will try to set the logs.
 
$100 Digital Ocean Credit
Get a free VM to test out Linux!

Linux.org Hosting Donations
Consider making a donation

Members online


Top