beeyev / Mikrotik-RouterOS-automatic-backup-and-update

Script sends backups to email and keep your mikrotik firmware up to date.
MIT License
442 stars 83 forks source link

Subject to contain date #27

Closed howwww closed 2 years ago

howwww commented 2 years ago

Firstly, thank you for your script! This is not an issue.

Gmail conversation view was categorizing all the backups under the same subject as 1 email.

To bypass this I added/changed some code which I would like to share it here as it could be useful for someone who is searching the backups by date.

I added a new line: :local devicedate [/system clock get date]

Then I edit, From: :local mailSubject "$SMP Device - $deviceIdentityNameShort."; To: :local mailSubject "$SMP Device - $deviceIdentityNameShort - $devicedate";

The final subject is now: Bkp&Upd: Device - - apr/26/2022 Backup was created.

beeyev commented 2 years ago

Thanks, that is a great idea, I will probably implement this as an option which you could turn on.

Could you please tell me, what device model do you use? And its current FW. Just curious.

howwww commented 2 years ago

Hello, I'm using Hap AC3 model = RBD53iG-5HacD2HnD and the latest stable version 7 firmware "RouterOS 7.2.1"

beeyev commented 2 years ago

Thanks for the response, I appreciate that. Don't hesitate if you need any help with the script, and I am always glad to consider any suggestions for improvement.

howwww commented 2 years ago

Much appreciated, Thank you too for sharing your script. Saved me/us a lot of time!