developer | 15a4331 | 2022-04-12 11:23:23 +0800 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | ########################################################################## |
| 3 | # If not stated otherwise in this file or this component's Licenses.txt |
| 4 | # file the following copyright and licenses apply: |
| 5 | # |
| 6 | # Copyright 2018 RDK Management |
| 7 | # |
| 8 | # Licensed under the Apache License, Version 2.0 (the "License"); |
| 9 | # you may not use this file except in compliance with the License. |
| 10 | # You may obtain a copy of the License at |
| 11 | # |
| 12 | # http://www.apache.org/licenses/LICENSE-2.0 |
| 13 | # |
| 14 | # Unless required by applicable law or agreed to in writing, software |
| 15 | # distributed under the License is distributed on an "AS IS" BASIS, |
| 16 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 17 | # See the License for the specific language governing permissions and |
| 18 | # limitations under the License. |
| 19 | ########################################################################## |
| 20 | # |
| 21 | |
| 22 | . /etc/include.properties |
| 23 | . /etc/device.properties |
| 24 | |
| 25 | #RDK-B LOGS |
| 26 | BootTimeLog="BootTime.log" |
| 27 | BootTimeLogBackup="BootTime.log.*" |
| 28 | speedtestLog="speedtest.log" |
| 29 | speedtestLogBackup="speedtest.log.*" |
| 30 | ArmConsolelog="ArmConsolelog.txt.0" |
| 31 | ArmConsolelogBackup="ArmConsolelog.txt.*" |
| 32 | Consolelog="Consolelog.txt.0" |
| 33 | ConsolelogBackup="Consolelog.txt.*" |
| 34 | LMlog="LM.txt.0" |
| 35 | LMlogBackup="LM.txt.*" |
| 36 | PAMlog="PAMlog.txt.0" |
| 37 | PAMlogBackup="PAMlog.txt.*" |
| 38 | PARODUSlog="PARODUSlog.txt.0" |
| 39 | PARODUSlogBackup="PARODUSlog.txt.*" |
| 40 | PSMlog="PSMlog.txt.0" |
| 41 | PSMlogBackup="PSMlog.txt.*" |
| 42 | TDMlog="TDMlog.txt.0" |
| 43 | TDMlogBackup="TDMlog.txt.*" |
| 44 | TR69log="TR69log.txt.0" |
| 45 | TR69logBackup="TR69log.txt.*" |
| 46 | WEBPAlog="WEBPAlog.txt.0" |
| 47 | WEBPAlogBackup="WEBPAlog.txt.*" |
| 48 | WiFilog="WiFilog.txt.0" |
| 49 | WiFilogBackup="WiFilog.txt.*" |
| 50 | FirewallDebug="FirewallDebug.txt" |
| 51 | FirewallDebugBackup="FirewallDebug.txt.*" |
| 52 | MnetDebug="MnetDebug.txt" |
| 53 | MnetDebugBackup="MnetDebug.txt.*" |
| 54 | wifihealthlog="wifihealth.txt" |
| 55 | wifihealthBackup="wifihealth.txt.*" |
| 56 | CRLog="CRlog.txt.0" |
| 57 | CRLogBackup="CRlog.txt.*" |
| 58 | |
| 59 | xreLog="receiver.log" |
| 60 | cecLog="cec_log.txt" |
| 61 | cecLogsBackup="cec_log.txt.*" |
| 62 | xreLogsBackup="receiver.log.*" |
| 63 | receiverMON="ReceiverMON.txt" |
| 64 | runXreLog="runXRE_log.txt" |
| 65 | runXreLogsBackup="runXRE_log.txt.*" |
| 66 | greenpeakLog="greenpeak.log" |
| 67 | greenpeakLogsBackup="greenpeak.log.*" |
| 68 | appStatusLog="app_status.log" |
| 69 | appStatusLogsBackup="app_status.log.*" |
| 70 | gpInitLog="gp_init.log" |
| 71 | gpInitLogsBackup="gp_init.log.*" |
| 72 | #demsg Logs |
| 73 | dmesgLog="messages_printk.txt" |
| 74 | dmesgLogsBackup="messages_printk_bak*" |
| 75 | sysLog="messages.txt" |
| 76 | ntpLog="ntp.log" |
| 77 | sysLogsBackup="messages.txt.*" |
| 78 | ntpLogsBackup="ntp.log.*" |
| 79 | sysDmesgLog="messages-dmesg.txt" |
| 80 | sysDmesgLogsBackup="messages-dmesg.txt.*" |
| 81 | startupDmesgLog="startup_stdout_log.txt" |
| 82 | startupDmesgLogsBackup="startup_stdout_log.*" |
| 83 | lighttpdErrorLog="lighttpd.error.log" |
| 84 | lighttpdErrorLogsBackup="lighttpd.error.log.*" |
| 85 | lighttpdAccessLog="lighttpd.access.log" |
| 86 | lighttpdAccessLogsBackup="lighttpd.access.log.*" |
| 87 | dcmLog="dcmscript.log" |
| 88 | dcmLogsBackup="dcmscript.log.*" |
| 89 | uiLog="uimgr_log.txt" |
| 90 | uiLogsBackup="uimgr_log.txt.*" |
| 91 | storagemgrLog="storagemgr.log" |
| 92 | storagemgrLogsBackup="storagemgr.log.*" |
| 93 | rf4ceLog="rf4ce_log.txt" |
| 94 | rf4ceLogsBackup="rf4ce_log.txt.*" |
| 95 | ctrlmLog="ctrlm_log.txt" |
| 96 | ctrlmLogsBackup="ctrlm_log.txt.*" |
| 97 | xDiscoveryLog="xdiscovery.log" |
| 98 | xDiscoveryLogsBackup="xdiscovery.log.*" |
| 99 | xDiscoveryListLog="xdiscoverylist.log" |
| 100 | xDiscoveryListLogsBackup="xdiscoverylist.log.*" |
| 101 | hdmiLog="hdmi_log.txt" |
| 102 | rebootLog="reboot.log" |
| 103 | rebootInfoLog="rebootInfo.log" |
| 104 | ueiLog="uei_init.log" |
| 105 | wbLog="wbdevice.log" |
| 106 | swUpdateLog="swupdate.log" |
| 107 | topLog="top_log.txt" |
| 108 | topLogsBackup="top_log.txt.*" |
| 109 | mocaLog="mocalog.txt" |
| 110 | coreLog="coredump.log" |
| 111 | coreDumpLog="core_log.txt" |
| 112 | coreDumpLogsBackup="core_log.txt.*" |
| 113 | version="version.txt" |
| 114 | fusionDaleLog="fusiondale_log.txt" |
| 115 | socProvisionLog="socprov.log" |
| 116 | socProvisionLogsBackup="socprov.log.*" |
| 117 | socProvisionCryptoLog="socprov-crypto.log" |
| 118 | socProvisionCryptoLogsBackup="socprov-crypto.log.*" |
| 119 | applicationsLog="applications.log" |
| 120 | applicationsLogsBackup="applications.log.*" |
| 121 | systemLog="system.log" |
| 122 | systemLogsBackup="system.log.*" |
| 123 | bootUpLog="bootlog" |
| 124 | resetLog="Reset.txt" |
| 125 | resetLogsBackup="Reset.txt" |
| 126 | backUpDumpLog="backupCoreDumpLog.txt" |
| 127 | gpLog="gp.log" |
| 128 | gpLogsBackup="gp.log.*" |
| 129 | diskInfoLog="diskInfo.txt" |
| 130 | diskEventsLog="diskEvents.txt" |
| 131 | |
| 132 | rmfLog="rmfstr_log.txt" |
| 133 | rmfLogsBackup="rmfstr_log.txt.*" |
| 134 | podLog="pod_log.txt" |
| 135 | podLogsBackup="pod_log.txt.*" |
| 136 | vodLog="vodclient_log.txt" |
| 137 | vodLogsBackup="vodclient_log.txt.*" |
| 138 | rstreamFdLog="rstreamer_fdlist.txt" |
| 139 | |
| 140 | recorderLog="/opt/rec_debug.log" |
| 141 | fdsLog="fds.log" |
| 142 | fdsLogsBackup="fds.log.*" |
| 143 | trmLog="trm.log" |
| 144 | trmMgrLog="trmmgr.log" |
| 145 | trmLogsBackup="trm.log.*" |
| 146 | trmMgrLogsBackup="trmmgr.log.*" |
| 147 | threadLog="vlthreadanalyzer_log.txt" |
| 148 | threadLogsBackup="vlthreadanalyzer_log.txt.*" |
| 149 | xDeviceLog="xdevice.log" |
| 150 | xDeviceLogsBackup="xdevice.log.*" |
| 151 | authServiceLog="authservice.log" |
| 152 | cardProvisionCheckLog="card-provision-check.log" |
| 153 | ipdnlLog="ipdllogfile.txt" |
| 154 | diskCleanupInfoLog="disk_cleanup_info.log" |
| 155 | topOsalLog="top_osal.txt" |
| 156 | topOsalLogsBackup="top_osal.txt.*" |
| 157 | mocaStatusLog="mocaStatus.log" |
| 158 | mocaStatusLogsBackup="mocaStatus.log.*" |
| 159 | mfrLog="mfrlib_log.txt" |
| 160 | mfrLogsBackup="mfrlib_log.txt.*" |
| 161 | mfrLogRdk="mfr_log.txt" |
| 162 | mfrLogsRdkBackup="mfr_log.txt.*" |
| 163 | adobeCleanupLog="cleanAdobe.log" |
| 164 | |
| 165 | cefLog="cef.log" |
| 166 | cefLogsBackup="cef.log.*" |
| 167 | diskCleanupLog="disk_cleanup.log" |
| 168 | diskCleanupLog1="disk_cleanup.log" |
| 169 | diskCleanupLogsBackup="disk_cleanup.log.*" |
| 170 | decoderStatusLog="procStatus.log" |
| 171 | decoderStatusLogsBackup="procStatus.log.*" |
| 172 | recorderLog="/opt/rec_debug.log" |
| 173 | psLogsBackup=ps_out.txt* |
| 174 | netsrvLog="netsrvmgr.log" |
| 175 | netsrvLogsBackup="netsrvmgr.log.*" |
| 176 | samhainLog="samhain.log" |
| 177 | samhainLogsBackup="samhain.log.*" |
| 178 | fogLog="fog.log" |
| 179 | fogLogsBackup="fog.log.*" |
| 180 | hddStatusLog="diskinfo.log" |
| 181 | hddStatusLogsBackup="diskinfo.log.*" |
| 182 | xiRecoveryLog="discoverV4Client.log" |
| 183 | xiRecoveryLogsBackup="discoverV4Client.log.*" |
| 184 | dropbearLog="dropbear.log" |
| 185 | dropbearLogsBackup="dropbear.log.*" |
| 186 | bluetoothLog="btmgrlog.txt" |
| 187 | bluetoothLogBackup="btmgrlog.txt.*" |
| 188 | mountLog="mount_log.txt" |
| 189 | mountLogBackup="mount_log.txt.*" |
| 190 | rbiDaemonLog="rbiDaemon.log" |
| 191 | rbiDaemonLogsBackup="rbiDaemon.log.*" |
| 192 | rfcLog="rfcscript.log" |
| 193 | rfcLogsBackup="rfcscript.log.*" |
| 194 | tlsLog="tlsError.log" |
| 195 | tlsLogsBackup="tlsError.log.*" |
| 196 | playreadycdmiLog="playreadycdmi.log" |
| 197 | playreadycdmiLogsBackup="playreadycdmi.log.*" |
| 198 | wpecdmiLog="wpecdmi.log" |
| 199 | wpecdmiLogsBackup="wpecdmi.log.*" |
| 200 | pingTelemetryLog="ping_telemetry.log" |
| 201 | pingTelemetryLogsBackup="ping_telemetry.log.*" |
| 202 | deviceDetailsLog="device_details.log" |
| 203 | zramLog="zram.log" |
| 204 | zramLogsBackup="zram.log.*" |
| 205 | appmanagerLog="appmanager.log" |
| 206 | appmanagerLogsBackup="appmanager.log.*" |
| 207 | hwselfLog="hwselftest.log" |
| 208 | hwselfLogsBackup="hwselftest.log.*" |
| 209 | easPcapFile="eas.pcap" |
| 210 | mocaPcapFile="moca.pcap" |
| 211 | nlmonLog="nlmon.log" |
| 212 | nlmonLogsBackup="nlmon.log.*" |
| 213 | audiocapturemgrLogs="audiocapturemgr.log" |
| 214 | |
| 215 | if [ "$CONTAINER_SUPPORT" == "true" ];then |
| 216 | xreLxcLog="xre.log" |
| 217 | xreLxcLogsBackup="xre.log.*" |
| 218 | xreLxcApplicationsLog="xre-applications.log" |
| 219 | xreLxcApplicationsLogsBackup="xre-applications.log.*" |
| 220 | fi |
| 221 | |
| 222 | if [ "$SOC" = "BRCM" ];then |
| 223 | nxSvrLog="nxserver.log" |
| 224 | nxSvrLogsBackup="nxserver.log.*" |
| 225 | procStatusLog="proc-status-logger.log" |
| 226 | procStatusLogsBackup="proc-status-logger.log.*" |
| 227 | fi |
| 228 | |
| 229 | |
| 230 | if [ "$DEVICE_TYPE" != "mediaclient" ]; then |
| 231 | riLog="ocapri_log.txt" |
| 232 | riLogsBackup="ocapri_log.txt.*" |
| 233 | riLogsBackup1="ocapri_log.txt_1" |
| 234 | mpeosmainMON="mpeos-mainMON.txt" |
| 235 | mpeosRebootLog="/opt/mpeos_reboot_log.txt" |
| 236 | cardStatusLog="card_status.log" |
| 237 | heapDmpLog="jvmheapdump.txt" |
| 238 | rfStatisticsLog="rf_statistics_log.txt" |
| 239 | ablReasonLog="ABLReason.txt" |
| 240 | ecmLog="messages-ecm.txt" |
| 241 | ecmLogsBackup="messages-ecm.txt.*" |
| 242 | pumaLog="messages-puma.txt" |
| 243 | pumaLogsBackup="messages-puma.txt.*" |
| 244 | pumaLog1="messages-ecm.txt" |
| 245 | pumaLogsBackup1="messages-ecm.txt.*" |
| 246 | xfsdmesgLog="xfs_mount_dmesg.txt" |
| 247 | snmpdLog="snmpd.log" |
| 248 | snmpdLogsBackup="snmpd.log.*" |
| 249 | upstreamStatsLog="upstream_stats.log" |
| 250 | upstreamStatsLogsBackup="upstream_stats.log.*" |
| 251 | dibblerLog="dibbler.log" |
| 252 | dibblerLogsBackup="dibbler.log.*" |
| 253 | dnsmasqLog="dnsmasq.log" |
| 254 | dnsmasqLogsBackup="dnsmasq.log.*" |
| 255 | else |
| 256 | ablReasonLog="ABLReason.txt" |
| 257 | wifiTelemetryLog="wifi_telemetry.log" |
| 258 | wifiTelemetryLogBackup="wifi_telemetry.log.*" |
| 259 | tr69Log="tr69Client.log" |
| 260 | tr69AgentLog="tr69agent.log" |
| 261 | tr69HostIfLog="tr69hostif.log" |
| 262 | gatewayLog="gwSetupLogs.txt" |
| 263 | ipSetupLog="ipSetupLogs.txt" |
| 264 | tr69DownloadLog="tr69FWDnld.log" |
| 265 | tr69AgentHttpLog="tr69agent_HTTP.log" |
| 266 | tr69AgentHttpLogsBackup="tr69agent_HTTP.log.*" |
| 267 | tr69AgentSoapLog="tr69agent_SoapDebug.log" |
| 268 | tr69AgentSoapLogsBackup="tr69agent_SoapDebug.log.*" |
| 269 | webpavideoLog="webpavideo.log" |
| 270 | webpavideoLogsBackup="webpavideo.log.*" |
| 271 | xiConnectionStatusLog="xiConnectionStats.txt" |
| 272 | xiConnectionStatusLogsBackup="xiConnectionStats.txt.*" |
| 273 | fi |
| 274 | if [ "$WIFI_SUPPORT" == "true" ];then |
| 275 | wpaSupplicantLog="wpa_supplicant.log" |
| 276 | wpaSupplicantLogsBackup="wpa_supplicant.log.*" |
| 277 | dhcpWifiLog="dhcp-wifi.log" |
| 278 | dhcpWifiLogsBackup="dhcp-wifi.log.*" |
| 279 | fi |
| 280 | if [ "$DEVICE_TYPE" == "XHC1" ];then |
| 281 | |
| 282 | streamsrvLog="stream_server_log.txt" |
| 283 | streamsrvLogsBackup="stream_server_log.txt.*" |
| 284 | |
| 285 | stunnelHttpsLog="stunnel_https_log.txt" |
| 286 | stunnelHttpsLogsBackup="stunnel_https_log.txt.*" |
| 287 | |
| 288 | upnpLog="upnp_log.txt" |
| 289 | upnpLogsBackup="upnp_log.txt.*" |
| 290 | |
| 291 | upnpigdLog="upnpigd_log.txt" |
| 292 | upnpigdLogsBackup="upnpigd_log.txt.*" |
| 293 | |
| 294 | cgiLog="cgi_log.txt" |
| 295 | cgiLogsBackup="cgi_log.txt.*" |
| 296 | |
| 297 | systemLog="system_log.txt" |
| 298 | systemLogsBackup="system_log.txt.*" |
| 299 | |
| 300 | eventLog="event_log.txt" |
| 301 | eventLogsBackup="event_log.txt.*" |
| 302 | |
| 303 | xw3MonitorLog="oem_log.txt" |
| 304 | xw3MonitorLogsBackup="oem_log.txt.*" |
| 305 | |
| 306 | sensorDLog="sensor_daemon_log.txt" |
| 307 | sensorDLogsBackup="sensor_daemon_log.txt.*" |
| 308 | |
| 309 | webpaLog="webpa_log.txt" |
| 310 | webpaLogsBackup="webpa_log.txt.*" |
| 311 | |
| 312 | xwclientLog="xwclient_log.txt" |
| 313 | xwclientLogsBackup="xwclient_log.txt.*" |
| 314 | |
| 315 | xwswupdateLog="xwswupdate.log" |
| 316 | xwswupdateLogsBackup="xwswupdate.log.*" |
| 317 | |
| 318 | userLog="user_log.txt" |
| 319 | userLogsBackup="user_log.txt.*" |
| 320 | |
| 321 | webrtcStreamingLog="webrtc_streaming_log.txt" |
| 322 | webrtcStreamingLogsBackup="webrtc_streaming_log.txt.*" |
| 323 | |
| 324 | cvrPollLog="cvrpoll_log.txt" |
| 325 | cvrPollLogsBackup="cvrpoll_log.txt.*" |
| 326 | |
| 327 | thumbnailUploadLog="thumbnail_log.txt" |
| 328 | thumbnailUploadBackupLog="thumbnail_log.txt.*" |
| 329 | |
| 330 | metricsLog="dmesg_log.txt" |
| 331 | metricsLogsBackup="dmesg_log.txt.*" |
| 332 | |
| 333 | wifiLog="wifi_log.txt" |
| 334 | wifiLogsBackup="wifi_log.txt.*" |
| 335 | |
| 336 | rfcLog="rfcscript.log" |
| 337 | rfcLogsBackup="rfcscript.log.*" |
| 338 | |
| 339 | overlayLog="overlay_log.txt" |
| 340 | overlayLogsBackup="overlay_log.txt.*" |
| 341 | |
| 342 | xvisionLog="xvision_log.txt" |
| 343 | xvisionLogsBackup="xvision_log.txt.*" |
| 344 | |
| 345 | ivaDaemonLog="iva_daemon_log.txt" |
| 346 | ivaDaemonLogsBackup="iva_daemon_log.txt.*" |
| 347 | |
| 348 | evoLog="evo_log.txt" |
| 349 | evoBackupLog="evo_log.txt.*" |
| 350 | |
| 351 | camstreamsrvLog="camstreamserver.log" |
| 352 | camstreamsrvLogsBackup="camstreamserver.log.*" |
| 353 | |
| 354 | mongsLog="mongoose-cam-stream-server.txt" |
| 355 | mongsLogsBackup="mongoose-cam-stream-server.txt.*" |
| 356 | fi |
| 357 | |
| 358 | if [ "$HDD_ENABLED" = "false" ]; then |
| 359 | sysLogBAK1="bak1_messages.txt" |
| 360 | sysLogBAK2="bak2_messages.txt" |
| 361 | sysLogBAK3="bak3_messages.txt" |
| 362 | logBAK1="bak1_*" |
| 363 | logBAK2="bak2_*" |
| 364 | logBAK3="bak3_*" |
| 365 | fi |
| 366 | |
| 367 | moveFile() |
| 368 | { |
| 369 | if [[ -f $1 ]]; then mv $1 $2; fi |
| 370 | } |
| 371 | |
| 372 | moveFiles() |
| 373 | { |
| 374 | currentDir=`pwd` |
| 375 | cd $2 |
| 376 | |
| 377 | for f in `ls $3 2>/dev/null` |
| 378 | do |
| 379 | $1 $f $4 |
| 380 | done |
| 381 | |
| 382 | cd $currentDir |
| 383 | } |
| 384 | |
| 385 | backup() |
| 386 | { |
| 387 | source=$1 |
| 388 | destn=$2 |
| 389 | operation=$3 |
| 390 | if [ "$DEVICE_TYPE" != "mediaclient" ]; then |
| 391 | if [ -f $source$riLog ] ; then $operation $source$riLog $destn; fi |
| 392 | if [ -f $mpeosRebootLog ] ; then |
| 393 | if [ "$BUILD_TYPE" = "dev" ]; then |
| 394 | cp $mpeosRebootLog $destn |
| 395 | mv $recorderLog $destn |
| 396 | else |
| 397 | mv $recorderLog $destn |
| 398 | $operation $mpeosRebootLog $destn |
| 399 | fi |
| 400 | fi |
| 401 | fi |
| 402 | if [ -f $source$xreLog ] ; then $operation $source$xreLog $destn; fi |
| 403 | if [ -f $source$cecLog ] ; then $operation $source$cecLog $destn; fi |
| 404 | if [ -f $source$wbLog ] ; then $operation $source$wbLog $destn; fi |
| 405 | if [ -f $source$sysLog ] ; then $operation $source$sysLog $destn; fi |
| 406 | if [ -f $source$ntpLog ] ; then $operation $source$ntpLog $destn; fi |
| 407 | if [ -f $source/$uiLog ] ; then $operation $source/$uiLog $destn; fi |
| 408 | if [ -f $source/$storagemgrLog ] ; then $operation $source/$storagemgrLog $destn; fi |
| 409 | if [ -f $source/$rf4ceLog ] ; then $operation $source/$rf4ceLog $destn; fi |
| 410 | if [ -f $source/$ctrlmLog ] ; then $operation $source/$ctrlmLog $destn; fi |
| 411 | if [ -f $source/$applicationsLog ] ; then $operation $source/$applicationsLog $destn; fi |
| 412 | if [ -f $source/$systemLog ] ; then $operation $source/$systemLog $destn; fi |
| 413 | if [ -f $source/$bootUpLog ] ; then $operation $source/$bootUpLog $destn; fi |
| 414 | if [ -f $source/$startupDmesgLog ] ; then $operation $source/$startupDmesgLog $destn; fi |
| 415 | if [ -f $source/$diskCleanupLog ] ; then $operation $source/$diskCleanupLog $destn; fi |
| 416 | if [ -f $source/$diskCleanupInfoLog ] ; then $operation $source/$diskCleanupInfoLog $destn; fi |
| 417 | if [ -f $source/$diskCleanupLog1 ] ; then $operation $source/$diskCleanupLog1 $destn; fi |
| 418 | if [ -f $source$sysDmesgLog ] ; then $operation $source$sysDmesgLog $destn; fi |
| 419 | if [ -f $source$coreDumpLog ] ; then $operation $source$coreDumpLog $destn; fi |
| 420 | if [ -f $source$adobeCleanupLog ] ; then $operation $source$adobeCleanupLog $destn; fi |
| 421 | if [ -f $source$bluetoothLog ] ; then $operation $source$bluetoothLog $destn; fi |
| 422 | if [ -f $source$easPcapFile ] ; then $operation $source$easPcapFile $destn; fi |
| 423 | if [ -f $source$mocaPcapFile ] ; then $operation $source$mocaPcapFile $destn; fi |
| 424 | if [ -f $source$mountLog ] ; then $operation $source$mountLog $destn; fi |
| 425 | if [ "$CONTAINER_SUPPORT" == "true" ];then |
| 426 | if [ -f $source$xreLxcLog ] ; then $operation $source$xreLxcLog $destn; fi |
| 427 | if [ -f $source/$xreLxcApplicationsLog ] ; then $operation $source/$xreLxcApplicationsLog $destn; fi |
| 428 | fi |
| 429 | |
| 430 | if [ "$SOC" = "BRCM" ];then |
| 431 | if [ -f $source$nxSvrLog ] ; then $operation $source$nxSvrLog $destn; fi |
| 432 | if [ -f $source$procStatusLog ] ; then $operation $source$procStatusLog $destn; fi |
| 433 | fi |
| 434 | } |
| 435 | |
| 436 | crashLogsBackup() |
| 437 | { |
| 438 | opern=$1 |
| 439 | src=$2 |
| 440 | destn=$3 |
| 441 | |
| 442 | moveFiles $opern $src receiver.log_* $destn |
| 443 | moveFiles $opern $src ocapri_log.txt_* $destn |
| 444 | moveFiles $opern $src messages.txt_* $destn |
| 445 | moveFiles $opern $src app_status_backup.log_* $destn |
| 446 | } |
| 447 | |
| 448 | backupAppBackupLogFiles() |
| 449 | { |
| 450 | opern=$1 |
| 451 | source=$2 |
| 452 | destn=$3 |
| 453 | |
| 454 | if [ "$DEVICE_TYPE" != "mediaclient" ]; then |
| 455 | moveFiles $opern $source $BootTimeLogBackup $destn |
| 456 | moveFiles $opern $source $speedtestLogBackup $destn |
| 457 | moveFiles $opern $source $ArmConsolelogBackup $destn |
| 458 | moveFiles $opern $source $ConsolelogBackup $destn |
| 459 | moveFiles $opern $source $PAMlogBackup $destn |
| 460 | moveFiles $opern $source $PARODUSlogBackup $destn |
| 461 | moveFiles $opern $source $PSMlogBackup $destn |
| 462 | moveFiles $opern $source $TDMlogBackup $destn |
| 463 | moveFiles $opern $source $TR69logBackup $destn |
| 464 | moveFiles $opern $source $WEBPAlogBackup $destn |
| 465 | moveFiles $opern $source $WiFilogBackup $destn |
| 466 | moveFiles $opern $source $FirewallDebugBackup $destn |
| 467 | moveFiles $opern $source $MnetDebugBackup $destn |
| 468 | moveFiles $opern $source $wifihealthBackup $destn |
| 469 | moveFiles $opern $source $CRLogBackup $destn |
| 470 | moveFiles $opern $source $LMlogBackup $destn |
| 471 | |
| 472 | moveFiles $opern $source $riLogsBackup $destn |
| 473 | moveFiles $opern $source $riLogsBackup1 $destn |
| 474 | moveFiles $opern $source $ecmLogsBackup $destn |
| 475 | moveFiles $opern $source $pumaLogsBackup $destn |
| 476 | moveFiles $opern $source $pumaLogsBackup1 $destn |
| 477 | moveFiles $opern $source $snmpdLogsBackup $destn |
| 478 | moveFiles $opern $source $upstreamStatsLogsBackup $destn |
| 479 | moveFiles $opern $source $dibblerLogsBackup $destn |
| 480 | moveFiles $opern $source $dnsmasqLogsBackup $destn |
| 481 | else |
| 482 | moveFiles $opern $source $wifiTelemetryLogBackup $destn |
| 483 | moveFiles $opern $source $tr69AgentHttpLogsBackup $destn |
| 484 | moveFiles $opern $source $tr69AgentSoapLogsBackup $destn |
| 485 | moveFiles $opern $source $webpavideoLogsBackup $destn |
| 486 | moveFiles $opern $source $xiConnectionStatusLogsBackup $destn |
| 487 | fi |
| 488 | if [ "$WIFI_SUPPORT" == "true" ];then |
| 489 | moveFiles $opern $source $wpaSupplicantLogsBackup $destn |
| 490 | moveFiles $opern $source $dhcpWifiLogsBackup $destn |
| 491 | fi |
| 492 | if [ "$DEVICE_TYPE" == "XHC1" ];then |
| 493 | moveFiles $opern $source $streamsrvLogsBackup $destn |
| 494 | moveFiles $opern $source $stunnelHttpsLogsBackup $destn |
| 495 | moveFiles $opern $source $upnpLogsBackup $destn |
| 496 | moveFiles $opern $source $upnpigdLogsBackup $destn |
| 497 | moveFiles $opern $source $cgiLogsBackup $destn |
| 498 | moveFiles $opern $source $systemLogsBackup $destn |
| 499 | moveFiles $opern $source $eventLogsBackup $destn |
| 500 | moveFiles $opern $source $xw3MonitorLogsBackup $destn |
| 501 | moveFiles $opern $source $sensorDLogsBackup $destn |
| 502 | moveFiles $opern $source $webpaLogsBackup $destn |
| 503 | moveFiles $opern $source $xwclientLogsBackup $destn |
| 504 | moveFiles $opern $source $xwswupdateLogsBackup $destn |
| 505 | moveFiles $opern $source $userLogsBackup $destn |
| 506 | moveFiles $opern $source $webrtcStreamingLogsBackup $destn |
| 507 | moveFiles $opern $source $cvrPollLogsBackup $destn |
| 508 | moveFiles $opern $source $ivaDaemonLogsBackup $destn |
| 509 | moveFiles $opern $source $thumbnailUploadBackupLog $destn |
| 510 | moveFiles $opern $source $metricsLogsBackup $destn |
| 511 | moveFiles $opern $source $wifiLogsBackup $destn |
| 512 | moveFiles $opern $source $dcmLogsBackup $destn |
| 513 | moveFiles $opern $source $netsrvLogsBackup $destn |
| 514 | moveFiles $opern $source $diskCleanupLogsBackup $destn |
| 515 | moveFiles $opern $source $applicationsLogsBackup $destn |
| 516 | moveFiles $opern $source $rfcLogsBackup $destn |
| 517 | moveFiles $opern $source $overlayLogsBackup $destn |
| 518 | moveFiles $opern $source $sysLogsBackup $destn |
| 519 | moveFiles $opern $source $startupDmesgLogsBackup $destn |
| 520 | moveFiles $opern $source $sysDmesgLogsBackup $destn |
| 521 | moveFiles $opern $source $xvisionLogsBackup $destn |
| 522 | moveFiles $opern $source $evoBackupLog $destn |
| 523 | moveFiles $opern $source $camstreamsrvLogsBackup $destn |
| 524 | moveFiles $opern $source $mongsLogsBackup $destn |
| 525 | else |
| 526 | moveFiles $opern $source $mocaStatusLogsBackup $destn |
| 527 | moveFiles $opern $source $runXreLogsBackup $destn |
| 528 | moveFiles $opern $source $xreLogsBackup $destn |
| 529 | moveFiles $opern $source $cecLogsBackup $destn |
| 530 | moveFiles $opern $source $sysLogsBackup $destn |
| 531 | moveFiles $opern $source $ntpLogsBackup $destn |
| 532 | moveFiles $opern $source $startupDmesgLogsBackup $destn |
| 533 | moveFiles $opern $source $gpInitLogsBackup $destn |
| 534 | moveFiles $opern $source $appStatusLogsBackup $destn |
| 535 | moveFiles $opern $source $dmesgLogsBackup $destn |
| 536 | moveFiles $opern $source $xDiscoveryLogsBackup $destn |
| 537 | moveFiles $opern $source $xDiscoveryListLogsBackup $destn |
| 538 | moveFiles $opern $source $uiLogsBackup $destn |
| 539 | moveFiles $opern $source $storagemgrLogsBackup $destn |
| 540 | moveFiles $opern $source $rf4ceLogsBackup $destn |
| 541 | moveFiles $opern $source $ctrlmLogsBackup $destn |
| 542 | moveFiles $opern $source $lighttpdErrorLogsBackup $destn |
| 543 | moveFiles $opern $source $lighttpdAccessLogsBackup $destn |
| 544 | moveFiles $opern $source $dcmLogsBackup $destn |
| 545 | moveFiles $opern $source $greenpeakLogsBackup $destn |
| 546 | moveFiles $opern $source $trmLogsBackup $destn |
| 547 | moveFiles $opern $source $trmMgrLogsBackup $destn |
| 548 | moveFiles $opern $source $rmfLogsBackup $destn |
| 549 | moveFiles $opern $source $podLogsBackup $destn |
| 550 | moveFiles $opern $source $vodLogsBackup $destn |
| 551 | moveFiles $opern $source $fdsLogsBackup $destn |
| 552 | moveFiles $opern $source $threadLogsBackup $destn |
| 553 | moveFiles $opern $source $xDeviceLogsBackup $destn |
| 554 | moveFiles $opern $source $coreDumpLogsBackup $destn |
| 555 | moveFiles $opern $source $applicationsLogsBackup $destn |
| 556 | moveFiles $opern $source $socProvisionLogsBackup $destn |
| 557 | moveFiles $opern $source $socProvisionCryptoLogsBackup $destn |
| 558 | moveFiles $opern $source $topOsalLogsBackup $destn |
| 559 | moveFiles $opern $source $decoderStatusLogsBackup $destn |
| 560 | moveFiles $opern $source $mfrLogsBackup $destn |
| 561 | moveFiles $opern $source $mfrLogsRdkBackup $destn |
| 562 | moveFiles $opern $source $sysDmesgLogsBackup $destn |
| 563 | moveFiles $opern $source $resetLogsBackup $destn |
| 564 | moveFiles $opern $source $gpLogsBackup $destn |
| 565 | moveFiles $opern $source $psLogsBackup $destn |
| 566 | moveFiles $opern $source $cefLogsBackup $destn |
| 567 | moveFiles $opern $source $topLogsBackup $destn |
| 568 | moveFiles $opern $source $netsrvLogsBackup $destn |
| 569 | moveFiles $opern $source $diskCleanupLogsBackup $destn |
| 570 | moveFiles $opern $source $samhainLogsBackup $destn |
| 571 | moveFiles $opern $source $fogLogsBackup $destn |
| 572 | moveFiles $opern $source $hddStatusLogsBackup $destn |
| 573 | moveFiles $opern $source $xiRecoveryLogsBackup $destn |
| 574 | moveFiles $opern $source $dropbearLogsBackup $destn |
| 575 | moveFiles $opern $source $bluetoothLogBackup $destn |
| 576 | moveFiles $opern $source $easPcapFile $destn |
| 577 | moveFiles $opern $source $mocaPcapFile $destn |
| 578 | moveFiles $opern $source $mountLogBackup $destn |
| 579 | moveFiles $opern $source $rbiDaemonLogsBackup $destn |
| 580 | moveFiles $opern $source $rfcLogsBackup $destn |
| 581 | moveFiles $opern $source $tlsLogsBackup $destn |
| 582 | moveFiles $opern $source $playreadycdmiLogsBackup $destn |
| 583 | moveFiles $opern $source $wpecdmiLogsBackup $destn |
| 584 | moveFiles $opern $source $pingTelemetryLogsBackup $destn |
| 585 | moveFiles $opern $source $zramLogsBackup $destn |
| 586 | moveFiles $opern $source $appmanagerLogsBackup $destn |
| 587 | moveFiles $opern $source $nlmonLogsBackup $destn |
| 588 | moveFiles $opern $source $hwselfLogsBackup $destn |
| 589 | fi |
| 590 | |
| 591 | if [ "$CONTAINER_SUPPORT" == "true" ];then |
| 592 | moveFiles $opern $source $xreLxcLogsBackup $destn |
| 593 | moveFiles $opern $source $xreLxcApplicationsLogsBackup $destn |
| 594 | fi |
| 595 | |
| 596 | moveFiles $opern $source $systemLogsBackup $destn |
| 597 | if [ "$SOC" = "BRCM" ];then |
| 598 | moveFiles $opern $source $nxSvrLogsBackup $destn |
| 599 | moveFiles $opern $source $procStatusLogsBackup $destn |
| 600 | fi |
| 601 | # backup older cycle logs |
| 602 | if [ "$MEMORY_LIMITATION_FLAG" = "true" ]; then |
| 603 | moveFiles $opern $source $logBAK1 $destn |
| 604 | moveFiles $opern $source $logBAK2 $destn |
| 605 | moveFiles $opern $source $logBAK3 $destn |
| 606 | fi |
| 607 | |
| 608 | } |
| 609 | |
| 610 | backupSystemLogFiles() |
| 611 | { |
| 612 | operation=$1 |
| 613 | source=$2 |
| 614 | destn=$3 |
| 615 | |
| 616 | if [ -f $source/$BootTimeLog ] ; then $operation $source/$BootTimeLog $destn; fi |
| 617 | if [ -f $source/$speedtestLog ] ; then $operation $source/$speedtestLog $destn; fi |
| 618 | if [ -f $source/$ArmConsolelog ] ; then $operation $source/$ArmConsolelog $destn; fi |
| 619 | if [ -f $source/$Consolelog ] ; then $operation $source/$Consolelog $destn; fi |
| 620 | if [ -f $source/$LMlog ] ; then $operation $source/$LMlog $destn; fi |
| 621 | if [ -f $source/$PAMlog ] ; then $operation $source/$PAMlog $destn; fi |
| 622 | if [ -f $source/$PARODUSlog ] ; then $operation $source/$PARODUSlog $destn; fi |
| 623 | if [ -f $source/$PSMlog ] ; then $operation $source/$PSMlog $destn; fi |
| 624 | if [ -f $source/$TDMlog ] ; then $operation $source/$TDMlog $destn; fi |
| 625 | if [ -f $source/$TR69log ] ; then $operation $source/$TR69log $destn; fi |
| 626 | if [ -f $source/$WEBPAlog ] ; then $operation $source/$WEBPAlog $destn; fi |
| 627 | if [ -f $source/$WiFilog ] ; then $operation $source/$WiFilog $destn; fi |
| 628 | if [ -f $source/$FirewallDebug ] ; then $operation $source/$FirewallDebug $destn; fi |
| 629 | if [ -f $source/$MnetDebug ] ; then $operation $source/$MnetDebug $destn; fi |
| 630 | if [ -f $source/$wifihealthlog ] ; then $operation $source/$wifihealthlog $destn; fi |
| 631 | if [ -f $source/$CRLog ] ; then $operation $source/$CRLog $destn; fi |
| 632 | |
| 633 | |
| 634 | # generic Logs |
| 635 | if [ -f $source/$systemLog ] ; then $operation $source/$systemLog $destn; fi |
| 636 | if [ -f $source/$resetLog ] ; then $operation $source/$resetLog $destn; fi |
| 637 | if [ -f $source/$backUpDumpLog ] ; then $operation $source/$backUpDumpLog $destn; fi |
| 638 | if [ -f $source/$bootUpLog ] ; then $operation $source/$bootUpLog $destn; fi |
| 639 | if [ -f $source/$applicationsLog ] ; then $operation $source/$applicationsLog $destn; fi |
| 640 | if [ -f $source/$runXreLog ] ; then $operation $source/$runXreLog $destn; fi |
| 641 | if [ -f $source/$xreLog ] ; then $operation $source/$xreLog $destn; fi |
| 642 | if [ -f $source/$cecLog ] ; then $operation $source/$cecLog $destn; fi |
| 643 | if [ -f $source/$gpInitLog ] ; then $operation $source/$gpInitLog $destn; fi |
| 644 | if [ -f $source/$hdmiLog ] ; then $operation $source/$hdmiLog $destn; fi |
| 645 | if [ -f $source/$uiLog ] ; then $operation $source/$uiLog $destn; fi |
| 646 | if [ -f $source/$storagemgrLog ] ; then $operation $source/$storagemgrLog $destn; fi |
| 647 | if [ -f $source/$rf4ceLog ] ; then $operation $source/$rf4ceLog $destn; fi |
| 648 | if [ -f $source/$ctrlmLog ] ; then $operation $source/$ctrlmLog $destn; fi |
| 649 | if [ -f $source/$ipdnlLog ] ; then $operation $source/$ipdnlLog $destn; fi |
| 650 | |
| 651 | if [ -f $source/$fdsLog ] ; then $operation $source/$fdsLog $destn; fi |
| 652 | if [ -f $source/$dmesgLog ] ; then $operation $source/$dmesgLog $destn; fi |
| 653 | if [ -f $source/$appStatusLog ] ; then $operation $source/$appStatusLog $destn; fi |
| 654 | if [ -f $source/$gpLog ]; then $operation $source/$gpLog $destn; fi |
| 655 | if [ -f $source/$sysLog ] ; then $operation $source/$sysLog $destn; fi |
| 656 | if [ -f $source/$ntpLog ] ; then $operation $source/$ntpLog $destn; fi |
| 657 | if [ -f $source/$wbLog ] ; then $operation $source/$wbLog $destn; fi |
| 658 | if [ -f $source/$ueiLog ] ; then $operation $source/$ueiLog $destn; fi |
| 659 | if [ -f $source/$receiverMON ] ; then $operation $source/$receiverMON $destn; fi |
| 660 | if [ -f $source/$swUpdateLog ] ; then $operation $source/$swUpdateLog $destn; fi |
| 661 | if [ -f $source/$topLog ] ; then $operation $source/$topLog $destn; fi |
| 662 | if [ -f $source/$fusionDaleLog ] ; then $operation $source/$fusionDaleLog $destn; fi |
| 663 | |
| 664 | if [ -f $source/$mfrLog ] ; then $operation $source/$mfrLog $destn; fi |
| 665 | if [ -f $source/$mocaLog ] ; then $operation $source/$mocaLog $destn; fi |
| 666 | if [ -f $source/$rebootLog ] ; then $operation $source/$rebootLog $destn; fi |
| 667 | if [ -f $source/$rebootInfoLog ] ; then $operation $source/$rebootInfoLog $destn; fi |
| 668 | if [ -f $source/$xDiscoveryLog ] ; then $operation $source/$xDiscoveryLog $destn; fi |
| 669 | if [ -f $source/$xDiscoveryListLog ] ; then $operation $source/$xDiscoveryListLog $destn; fi |
| 670 | |
| 671 | if [ -f $source/$socProvisionLog ] ; then $operation $source/$socProvisionLog $destn; fi |
| 672 | if [ -f $source/$socProvisionCryptoLog ] ; then $operation $source/$socProvisionCryptoLog $destn; fi |
| 673 | if [ -f $source/$lighttpdErrorLog ] ; then $operation $source/$lighttpdErrorLog $destn; fi |
| 674 | if [ -f $source/$lighttpdAccessLog ] ; then $operation $source/$lighttpdAccessLog $destn; fi |
| 675 | if [ -f $source/$dcmLog ] ; then $operation $source/$dcmLog $destn; fi |
| 676 | if [ -f $source/$coreDumpLog ] ; then $operation $source/$coreDumpLog $destn; fi |
| 677 | if [ -f $source/$mountLog ] ; then $operation $source/$mountLog $destn; fi |
| 678 | if [ -f $source/$rbiDaemonLog ] ; then $operation $source/$rbiDaemonLog $destn; fi |
| 679 | if [ -f $source/$rfcLog ] ; then $operation $source/$rfcLog $destn; fi |
| 680 | if [ -f $source/$tlsLog ] ; then $operation $source/$tlsLog $destn; fi |
| 681 | if [ -f $source/$playreadycdmiLog ] ; then $operation $source/$playreadycdmiLog $destn; fi |
| 682 | if [ -f $source/$wpecdmiLog ] ; then $operation $source/$wpecdmiLog $destn; fi |
| 683 | if [ -f $source/$pingTelemetryLog ] ; then $operation $source/$pingTelemetryLog $destn; fi |
| 684 | if [ -f $source/$deviceDetailsLog ] ; then $operation $source/$deviceDetailsLog $destn; fi |
| 685 | if [ -f $source/$zramLog ] ; then $operation $source/$zramLog $destn; fi |
| 686 | if [ -f $source/$appmanagerLog ] ; then $operation $source/$appmanagerLog $destn; fi |
| 687 | if [ -f $source/$nlmonLog ] ; then $operation $source/$nlmonLog $destn; fi |
| 688 | if [ -f $source/$hwselfLog ] ; then $operation $source/$hwselfLog $destn; fi |
| 689 | if [ "$CONTAINER_SUPPORT" == "true" ];then |
| 690 | if [ -f $source/$xreLxcApplicationsLog ] ; then $operation $source/$xreLxcApplicationsLog $destn; fi |
| 691 | if [ -f $source/$xreLxcLog ] ; then $operation $source/$xreLxcLog $destn; fi |
| 692 | fi |
| 693 | |
| 694 | #Adding a work around to create core_log.txt whith restricted user privilege |
| 695 | #if linux multi user is enabled |
| 696 | if [ "$ENABLE_MULTI_USER" == "true" ] && [ ! -f /etc/os-release ] ; then |
| 697 | if [ "$BUILD_TYPE" == "prod" ] ; then |
| 698 | touch $source/$coreDumpLog |
| 699 | chown restricteduser:restrictedgroup $source/$coreDumpLog |
| 700 | else |
| 701 | if [ ! -f /opt/disable_chrootXREJail ]; then |
| 702 | touch $source/$coreDumpLog |
| 703 | chown restricteduser:restrictedgroup $source/$coreDumpLog |
| 704 | fi |
| 705 | fi |
| 706 | fi |
| 707 | #End of work around related to core_log.txt for Linux multi user support |
| 708 | if [ -f $source/$trmLog ] ; then $operation $source/$trmLog $destn; fi |
| 709 | if [ -f $source/$trmMgrLog ] ; then $operation $source/$trmMgrLog $destn; fi |
| 710 | if [ -f $source/$threadLog ] ; then $operation $source/$threadLog $destn; fi |
| 711 | if [ -f $source/$greenpeakLog ]; then $operation $source/$greenpeakLog $destn; fi |
| 712 | if [ -f $source/$startupDmesgLog ] ; then $operation $source/$startupDmesgLog $destn; fi |
| 713 | if [ -f $source/$coreLog ] ; then $operation $source/$coreLog $destn; fi |
| 714 | if [ -f $source/$xDeviceLog ] ; then $operation $source/$xDeviceLog $destn; fi |
| 715 | if [ -f $source/$rmfLog ] ; then $operation $source/$rmfLog $destn; fi |
| 716 | if [ "$DEVICE_TYPE" != "mediaclient" ]; then |
| 717 | if [ -f $source/$podLog ] ; then $operation $source/$podLog $destn; fi |
| 718 | if [ -f $source/$vodLog ] ; then $operation $source/$vodLog $destn; fi |
| 719 | if [ -f $source/$diskEventsLog ] ; then $operation $source/$diskEventsLog $destn; fi |
| 720 | if [ -f $source/$diskInfoLog ] ; then $operation $source/$diskInfoLog $destn; fi |
| 721 | if [ -f $source/$ablReasonLog ] ; then $operation $source/$ablReasonLog $destn; fi |
| 722 | if [ -f $source/$mpeosmainMON ] ; then $operation $source/$mpeosmainMON $destn; fi |
| 723 | if [ -f $source/$ecmLog ] ; then $operation $source/$ecmLog $destn; fi |
| 724 | if [ -f $source/$pumaLog ] ; then $operation $source/$pumaLog $destn; fi |
| 725 | if [ -f $source/$pumaLog1 ] ; then $operation $source/$pumaLog1 $destn; fi |
| 726 | if [ -f $source/$heapDmpLog ] ; then $operation $source/$heapDmpLog $destn; fi |
| 727 | if [ -f $source/$cardStatusLog ] ; then $operation $source/$cardStatusLog $destn; fi |
| 728 | if [ -f $source/$rfStatisticsLog ] ; then $operation $source/$rfStatisticsLog $destn; fi |
| 729 | if [ -f $source/$riLog ] ; then $operation $source/$riLog $destn; fi |
| 730 | if [ -f $source/$xfsdmesgLog ] ; then $operation $source/$xfsdmesgLog $destn; fi |
| 731 | if [ -f $mpeosRebootLog ] ; then |
| 732 | if [ "$BUILD_TYPE" = "dev" ]; then |
| 733 | cp $mpeosRebootLog $destn |
| 734 | else |
| 735 | $operation $mpeosRebootLog $destn |
| 736 | fi |
| 737 | fi |
| 738 | if [ "$LIGHTSLEEP_ENABLE" = "true" ]; then |
| 739 | if [ -f $source/lightsleep.log ] ; then $operation $source/lightsleep.log $destn; fi |
| 740 | fi |
| 741 | if [ -f $source/$snmpdLog ] ; then $operation $source/$snmpdLog $destn; fi |
| 742 | if [ -f $source/$upstreamStatsLog ] ; then $operation $source/$upstreamStatsLog $destn; fi |
| 743 | if [ -f $source/$dibblerLog ] ; then $operation $source/$dibblerLog $destn; fi |
| 744 | if [ -f $source/$dnsmasqLog ] ; then $operation $source/$dnsmasqLog $destn; fi |
| 745 | else |
| 746 | if [ -f $source/$wifiTelemetryLog ] ; then $operation $source/$wifiTelemetryLog $destn; fi |
| 747 | if [ -f $source/$tr69Log ] ; then $operation $source/$tr69Log $destn; fi |
| 748 | if [ -f $source/$tr69AgentLog ] ; then $operation $source/$tr69AgentLog $destn; fi |
| 749 | if [ -f $source/$tr69HostIfLog ] ; then $operation $source/$tr69HostIfLog $destn; fi |
| 750 | if [ -f $source/$tr69DownloadLog ] ; then $operation $source/$tr69DownloadLog $destn; fi |
| 751 | if [ -f $source/$gatewayLog ] ; then $operation $source/$gatewayLog $destn; fi |
| 752 | if [ -f $source/$ipSetupLog ] ; then $operation $source/$ipSetupLog $destn; fi |
| 753 | if [ -f $source/$tr69AgentHttpLog ] ; then $operation $source/$tr69AgentHttpLog $destn; fi |
| 754 | if [ -f $source/$tr69AgentSoapLog ] ; then $operation $source/$tr69AgentSoapLog $destn; fi |
| 755 | if [ -f $source/$webpavideoLog ] ; then $operation $source/$webpavideoLog $destn; fi |
| 756 | if [ -f $source/$xiConnectionStatusLog ] ; then $operation $source/$xiConnectionStatusLog $destn; fi |
| 757 | fi |
| 758 | # backup version.txt |
| 759 | if [ -f $source/$version ] ; then |
| 760 | $operation $source/$version $destn |
| 761 | else |
| 762 | cp /$version $destn |
| 763 | fi |
| 764 | # backup older cycle logs |
| 765 | if [ -f $source/$rstreamFdLog ] ; then $operation $source/$rstreamFdLog $destn; fi |
| 766 | if [ -f $source/$authServiceLog ] ; then $operation $source/$authServiceLog $destn; fi |
| 767 | if [ -f $source/$cardProvisionCheckLog ] ; then $operation $source/$cardProvisionCheckLog $destn; fi |
| 768 | if [ -f $source/$diskCleanupLog ] ; then $operation $source/$diskCleanupLog $destn; fi |
| 769 | if [ -f $source/$diskCleanupInfoLog ] ; then $operation $source/$diskCleanupInfoLog $destn; fi |
| 770 | if [ -f $recorderLog ]; then mv $recorderLog $destn; fi |
| 771 | if [ -f $source/$topOsalLog ] ; then $operation $source/$topOsalLog $destn; fi |
| 772 | if [ -f $source/$mocaStatusLog ] ; then $operation $source/$mocaStatusLog $destn; fi |
| 773 | if [ -f $source/$decoderStatusLog ] ; then $operation $source/$decoderStatusLog $destn; fi |
| 774 | if [ -f $source/$mfrLogRdk ] ; then $operation $source/$mfrLogRdk $destn; fi |
| 775 | if [ -f $source/$cefLog ] ; then $operation $source/$cefLog $destn; fi |
| 776 | if [ -f $source/$diskCleanupLog1 ] ; then $operation $source/$diskCleanupLog1 $destn; fi |
| 777 | if [ -f $source/$sysDmesgLog ] ; then $operation $source/$sysDmesgLog $destn; fi |
| 778 | if [ -f $source/$samhainLog ] ; then $operation $source/$samhainLog $destn; fi |
| 779 | if [ -f $source/$fogLog ] ; then $operation $source/$fogLog $destn; fi |
| 780 | if [ -f $source/$hddStatusLog ] ; then $operation $source/$hddStatusLog $destn; fi |
| 781 | if [ -f $source/$xiRecoveryLog ] ; then $operation $source/$xiRecoveryLog $destn; fi |
| 782 | if [ -f $source/$dropbearLog ] ; then $operation $source/$dropbearLog $destn; fi |
| 783 | |
| 784 | if [ "$SOC" = "BRCM" ];then |
| 785 | if [ -f $source/$nxSvrLog ] ; then $operation $source/$nxSvrLog $destn; fi |
| 786 | if [ -f $source/$procStatusLog ] ; then $operation $source/$procStatusLog $destn; fi |
| 787 | fi |
| 788 | if [ -f $source/$netsrvLog ] ; then $operation $source/$netsrvLog $destn; fi |
| 789 | if [ -f $source/$adobeCleanupLog ] ; then $operation $source/$adobeCleanupLog $destn; fi |
| 790 | |
| 791 | if [ "$DEVICE_TYPE" == "XHC1" ];then |
| 792 | if [ -f $source/$streamsrvLog ] ; then $operation $source/$streamsrvLog $destn; fi |
| 793 | if [ -f $source/$stunnelHttpsLog ] ; then $operation $source/$stunnelHttpsLog $destn; fi |
| 794 | if [ -f $source/$upnpLog ] ; then $operation $source/$upnpLog $destn; fi |
| 795 | if [ -f $source/$upnpigdLog ] ; then $operation $source/$upnpigdLog $destn; fi |
| 796 | if [ -f $source/$cgiLog ] ; then $operation $source/$cgiLog $destn; fi |
| 797 | if [ -f $source/$systemLog ] ; then $operation $source/$systemLog $destn; fi |
| 798 | if [ -f $source/$eventLog ] ; then $operation $source/$eventLog $destn; fi |
| 799 | if [ -f $source/$xw3MonitorLog ] ; then $operation $source/$xw3MonitorLog $destn; fi |
| 800 | if [ -f $source/$sensorDLog ] ; then $operation $source/$sensorDLog $destn; fi |
| 801 | if [ -f $source/$webpaLog ] ; then $operation $source/$webpaLog $destn; fi |
| 802 | if [ -f $source/$xwclientLog ] ; then $operation $source/$xwclientLog $destn; fi |
| 803 | if [ -f $source/$xwswupdateLog ] ; then $operation $source/$xwswupdateLog $destn; fi |
| 804 | if [ -f $source/$userLog ] ; then $operation $source/$userLog $destn; fi |
| 805 | if [ -f $source/$webrtcStreamingLog ] ; then $operation $source/$webrtcStreamingLog $destn; fi |
| 806 | if [ -f $source/$cvrPollLog ] ; then $operation $source/$cvrPollLog $destn; fi |
| 807 | if [ -f $source/$ivaDaemonLog ] ; then $operation $source/$ivaDaemonLog $destn; fi |
| 808 | if [ -f $source/$thumbnailUploadLog ] ; then $operation $source/$thumbnailUploadLog $destn; fi |
| 809 | if [ -f $source/$metricsLog ] ; then $operation $source/$metricsLog $destn; fi |
| 810 | if [ -f $source/$wifiLog ] ; then $operation $source/$wifiLog $destn; fi |
| 811 | if [ -f $source/$overlayLog ] ; then $operation $source/$overlayLog $destn; fi |
| 812 | if [ -f $source/$xvisionLog ] ; then $operation $source/$xvisionLog $destn; fi |
| 813 | if [ -f $source/$evoLog ] ; then $operation $source/$evoLog $destn; fi |
| 814 | if [ -f $source/$camstreamsrvLog ] ; then $operation $source/$camstreamsrvLog $destn; fi |
| 815 | if [ -f $source/$mongsLog ] ; then $operation $source/$mongsLog $destn; fi |
| 816 | fi |
| 817 | if [ "$WIFI_SUPPORT" == "true" ];then |
| 818 | if [ -f $source/$wpaSupplicantLog ] ; then $operation $source/$wpaSupplicantLog $destn; fi |
| 819 | if [ -f $source/$dhcpWifiLog ] ; then $operation $source/$dhcpWifiLog $destn; fi |
| 820 | fi |
| 821 | if [ -f $source/$audiocapturemgrLogs ] ; then $operation $source/$audiocapturemgrLogs $destn; fi |
| 822 | |
| 823 | } |
| 824 | |
| 825 | logCleanup() |
| 826 | { |
| 827 | echo "Done Log Backup" |
| 828 | } |
| 829 | |