File: /home/posscale/backup/MT_Backups/Sandstone_World/BACKUP-Sandstone World-2022mar04-104024.backup
����V@ romonport 1 1 1 M2 �
� �
� � ���� d �! radius ���� M2 ����� ����� tftp ���� M2 ����� ����� smbshares C C C M2
� �
� �
�!
default share !
/flash/pub !pub smbusers ) ) ) M2
�
� � ! !guest �! scripts = = =M2 � t k F�b � m q �k g ! posscalesf !backup teste �:local saveUserDB false
:local saveSysBackup true
:local encryptSysBackup false
:local saveRawExport true
:local FTPServer "backup.posscales.com.au"
:local FTPPort 21
:local FTPUser "MT_Backups@backup.posscales.com.au"
:local FTPPass "!Dgt.974082"
:local FTPdest "/Sandstone_World"
:local ts [/system clock get time]
:set ts ([:pick $ts 0 2].[:pick $ts 3 5].[:pick $ts 6 8])
:local ds [/system clock get date]
:set ds ([:pick $ds 7 11].[:pick $ds 0 3].[:pick $ds 4 6])
:local fname ("BACKUP-".[/system identity get name]."-".$ds."-".$ts)
:local sfname ("/".$fname)
:if ($saveUserDB) do={
/tool user-manager database save name=($sfname.".umb")
:log info message="User Manager DB Backup Finished"
}
:if ($saveSysBackup) do={
:if ($encryptSysBackup = true) do={ /system backup save name=($sfname.".backup") }
:if ($encryptSysBackup = false) do={ /system backup save dont-encrypt=yes name=($sfname.".backup") }
:log info message="System Backup Finished"
}
if ($saveRawExport) do={
/export file=($sfname.".rsc")
:log info message="Raw configuration script export Finished"
}
:delay 10s
:local backupFileName ""
:local backupDestPath ""
:foreach backupFile in=[/file find] do={
:set backupFileName ("/".[/file get $backupFile name])
:set backupDestPath ($FTPdest.$backupFileName)
:if ([:typeof [:find $backupFileName $sfname]] != "nil") do={
# :log warning message="/tool fetch address=$FTPServer port=$FTPPort src-path=$backupFileName user=$FTPUser mode=ftp password=$FTPPass dst-path=$backupDestPath upload=yes"
/tool fetch address=$FTPServer port=$FTPPort src-path=$backupFileName user=$FTPUser mode=ftp password=$FTPPass dst-path=$backupDestPath upload=yes
}
}
:delay 10s
:foreach backupFile in=[/file find] do={
:if ([:typeof [:find [/file get $backupFile name] "BACKUP-"]]!="nil") do={
/file remove $backupFile
}
}
:log info message="Successfully removed Temporary Backup Files"
:log info message="Automatic Backup Completed Successfully" �! scheduler M M MM2
� . � / �b1 �: m � q �k g ! posscales �! - �:local saveUserDB false
:local saveSysBackup true
:local encryptSysBackup false
:local saveRawExport true
:local FTPServer "backup.posscales.com.au"
:local FTPPort 21
:local FTPUser "MT_Backups@backup.posscales.com.au"
:local FTPPass "!Dgt.974082"
:local FTPdest "/Sandstone_World"
:local ts [/system clock get time]
:set ts ([:pick $ts 0 2].[:pick $ts 3 5].[:pick $ts 6 8])
:local ds [/system clock get date]
:set ds ([:pick $ds 7 11].[:pick $ds 0 3].[:pick $ds 4 6])
:local fname ("BACKUP-".[/system identity get name]."-".$ds."-".$ts)
:local sfname ("/".$fname)
:if ($saveUserDB) do={
/tool user-manager database save name=($sfname.".umb")
:log info message="User Manager DB Backup Finished"
}
:if ($saveSysBackup) do={
:if ($encryptSysBackup = true) do={ /system backup save name=($sfname.".backup") }
:if ($encryptSysBackup = false) do={ /system backup save dont-encrypt=yes name=($sfname.".backup") }
:log info message="System Backup Finished"
}
if ($saveRawExport) do={
/export file=($sfname.".rsc")
:log info message="Raw configuration script export Finished"
}
:delay 10s
:local backupFileName ""
:local backupDestPath ""
:foreach backupFile in=[/file find] do={
:set backupFileName ("/".[/file get $backupFile name])
:set backupDestPath ($FTPdest.$backupFileName)
:if ([:typeof [:find $backupFileName $sfname]] != "nil") do={
# :log warning message="/tool fetch address=$FTPServer port=$FTPPort src-path=$backupFileName user=$FTPUser mode=ftp password=$FTPPass dst-path=$backupDestPath upload=yes"
/tool fetch address=$FTPServer port=$FTPPort src-path=$backupFileName user=$FTPUser mode=ftp password=$FTPPass dst-path=$backupDestPath upload=yes
}
}
:delay 10s
:foreach backupFile in=[/file find] do={
:if ([:typeof [:find [/file get $backupFile name] "BACKUP-"]]!="nil") do={
/file remove $backupFile
}
}
:log info message="Successfully removed Temporary Backup Files"
:log info message="Automatic Backup Completed Successfully"f !Auto FTP Backup ippool 2 - _ 2 M2 � ��2��� � �!
!default-dhcp- M2 � ��2��� � �!
!Renters traffic-generator-ports ) ) ) M2 � �
� � �!port5 serial-login wirelessprofile<