Email only errors logging file deletion

Questions about Cobian Reflector
Post Reply
AxeR
Posts: 7
Joined: 04 Oct 2021, 17:25

Email only errors logging file deletion

Post by AxeR »

Hi, I've enabled the feature to send log only if there are errors during backup, but I receive mail daily with zipped log files containing only "2021-10-12 00:00:00 Deleting the log files that are older than 7 days..."

I don't know if it's supposed to happen or not, but would be great if this doesn't get emailed, so I don't have to check the mail daily only to find out that it logged file deletion.

For now thanks so much for your great work!
User avatar
cobian
Site Admin
Posts: 525
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Email only errors logging file deletion

Post by cobian »

Will take a look at this. Thanks.
--
Luis Cobian
Cobian Backup's creator
AxeR
Posts: 7
Joined: 04 Oct 2021, 17:25

Re: Email only errors logging file deletion

Post by AxeR »

I just happened to run into a couple of "bugs":
  • Latest log is completely empty. I stooped the automated task since I was working and restarted manually a few hours later
  • Cobian sends every backup present each time
Let me know if there's something I can do, but for now, thank you so much!
Attachments
Log files for Cobian Reflector.zip
(13.48 KiB) Downloaded 18 times
User avatar
cobian
Site Admin
Posts: 525
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Email only errors logging file deletion

Post by cobian »

The program creates one log every day. The last log is created today at 12:00 PM so it has not have time to log anything yet.
Cobian sends every backup present each time
Do you mean every log file? You need to delete the log files after mailing (options-Log-Delete if successfully mailed) or they will be resend.
--
Luis Cobian
Cobian Backup's creator
User avatar
cobian
Site Admin
Posts: 525
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Email only errors logging file deletion

Post by cobian »

So if you are not deleting any files... they all will be send again if there are old errors!
--
Luis Cobian
Cobian Backup's creator
AxeR
Posts: 7
Joined: 04 Oct 2021, 17:25

Re: Email only errors logging file deletion

Post by AxeR »

Ok, I thought it would send only the logs with errors created since the last backup task not all of them. I didn't check the "delete if mailed successfully" because I didn't want to delete them locally (there's no problem in doing so).

I'll test in the coming days if everything works as you intended and I'll let you know as soon as I have some data.

Thanks again for your hard work!
AxeR
Posts: 7
Joined: 04 Oct 2021, 17:25

Re: Email only errors logging file deletion

Post by AxeR »

Just to close this thread, I want to give you a little update after a week of trying with your suggestions and fixes.

Now everything seems to work as expected except when a new version is released because it is logged as an error. Maybe I'm asking too much but would be nice if it was just a warning or info, so it wouldn't "mess up" the logs.

Thanks again for your amazing work!

Just a question out of curiosity, will this project ever be open-source?
Last edited by AxeR on 22 Oct 2021, 00:14, edited 1 time in total.
User avatar
cobian
Site Admin
Posts: 525
Joined: 31 Oct 2020, 01:25
Location: Sweden
Contact:

Re: Email only errors logging file deletion

Post by cobian »

Options-General-Log new version as "error".
--
Luis Cobian
Cobian Backup's creator
Post Reply