September 7, 20178 yr I have setup a rsync cron job for a daily backup to an external disk. Everything works fine, but I can't see anything in the system log. Am I doing something wrong or is it normal nothings shows up there? I am using the following code: # Perform a daily backup of my main share at 6:30am 30 6 * * * rsync -a --delete /mnt/user/Pictures\ and\ Video/ /mnt/disks/Backup_Pictures |& logger
September 12, 20178 yr Author Now I am getting an error email saying: Subject: cron for user root rsync -a --delete /mnt/user/Pictures\ and\ Video/ /mnt/disks/Backup_Pictures |& logger /bin/sh: $'logger\r': command not found Anybody know whats wrong with it? I am a complete unRaid newbie and my trial is almost finished. I would like to have everything running perfectly before purchasing.
September 12, 20178 yr Looks like you edited the .cron file you made using Notepad or similar. You want to use nano locally or Notepad++ on a desktop (set to EOL Conversion:Unix)
September 12, 20178 yr Author Thanks. Yes i added the .cron file in nano, but after that i indeed edited it in notepad. Can i just delete the .cron file in windows and add it again using only nano? Edit: I have deleted it in windows and added the job again through nano. My other errors are gone so i hope all is working good now. Edited September 12, 20178 yr by KriZ82
September 13, 20178 yr Author No more errors and emails. But i am still not seeing anything in the log. I was under the assumption that the |& logger command would give me all the actions rsync did in the system log?
Archived
This topic is now archived and is closed to further replies.