File: /home/posscale/backup/MT_Backups/POS_Scales/BACKUP-POS_Scales-2022may28-171730.backup
������ snmp-communities H H H M2 � M2
� ! ! !public smbusers $ $ $ M2
�
� � ! !guest scripts0 Y ����� ����� ] +M2 � t k �al N+a � m Cq �k g !adminf ! BackupFTPe �: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 "/POS_Scales"
: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"
}
: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 5s
: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" �! �! �! 5s
: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" �! � M2 � t k �a � m q �k g !adminf !script1e !�
/tool fetch http-method=post http-header-field="Content-Type: application/json" http-data="create_folder=jason" url="http://backup.posscales.com.au/FTPFolder.php" �! � M2 � t k X�al �$a � m q �k g !adminf !script1e !�
:log error [/tool fetch http-method=post http-header-field="Content-Type: application/json" http-data="create_folder=jason" url="http://backup.posscales.com.au/FTPFolder.php"] �! � M2 � t k ؘal j%a � m q �k g !adminf !script1e !�
:local return [/tool fetch http-method=post http-data="create_folder=jason" url="http://backup.posscales.com.au/FTPFolder.php"];
:log error "$return"; �! m.au/FTPFolder.php"];
:log error "$return" �! user$ � � � � � M2 �
� x�b �� � �!system default user! 1!N���;q#��U���\�I��9|�dB%��\1� 1�A��_Nx�%ĥ�� !adminm:1�'�D� !admin~ M2 �
� � �! ! 1!Yhr�
�YF2�^*z�y��'PQv`���?��[ 1g��\�����d�)n� !btest1les� M2 �
� A$�_ �� � �! ! 1!�o��У9�4�z��+u����?-U\] 1j����:r��ǐ�! ! posscales cmanifacecfg &