Skip to content

This simple script creates a backup of ROS and sends it to email if its size has changed.

Notifications You must be signed in to change notification settings

arshanskiyav/ROS_conf_to_email

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 

Repository files navigation

  • Create a new script named send_backup (System->Script)
  • Copy the contents from send_backup.rsc to new script
  • Change email settings
  • Add to scheduler (every day):
/system scheduler add interval=1d name=Send_backup on-event="/system script run Send_Backup" policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon start-date=apr/14/2025 start-time=01:00:00

Update

  • The script gets the configuration size and writes it to a file. This size will be used for comparison, so as not to save the RSC file in memory.
  • Added a block to check the result of sending email, if sending email fails, the configuration size will not be updated.
  • Added ROS version and list of IP addresses (IP->Addresses) to the body of the email

About

This simple script creates a backup of ROS and sends it to email if its size has changed.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published