mirror of
https://github.com/gbudny93/RouterOS_Useful_Scripts.git
synced 2025-08-30 22:49:28 +02:00
Initial Commit. First Release
This commit is contained in:
parent
69ab2f58ca
commit
a9d2fcc235
4 changed files with 91 additions and 2 deletions
22
RouterOS_Cloud_Backup.rsc
Normal file
22
RouterOS_Cloud_Backup.rsc
Normal file
|
@ -0,0 +1,22 @@
|
|||
# RouterOS Function
|
||||
# Copyright (c) Grzegorz Budny
|
||||
# Create new backup file and uploads it to cloud
|
||||
|
||||
:global CloudBackup do={
|
||||
|
||||
:local systemLicense [/system license get value-name=level];
|
||||
:local systemName [/system identity get name];
|
||||
|
||||
:if ($currentLicenseLevel != "free") do={
|
||||
|
||||
:log info "...:::License allows cloud backup, process started:::..."
|
||||
|
||||
/system backup cloud upload-file action=create-and-upload file=cloudBackup.backup password=password
|
||||
|
||||
/tool e-mail send server=$smtpServer port=$smtpPort from=($systemName.$domain) \
|
||||
to=$recipient subject=($systemName." cloud backup created.") body=($systemName." created MikroTik cloud backup.");
|
||||
|
||||
:log info "...:::Cloud Backup Created:::...";
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue