CN113032330A - File supervision method and device and multimedia broadcast control equipment - Google Patents

File supervision method and device and multimedia broadcast control equipment Download PDF

Info

Publication number
CN113032330A
CN113032330A CN201911253365.4A CN201911253365A CN113032330A CN 113032330 A CN113032330 A CN 113032330A CN 201911253365 A CN201911253365 A CN 201911253365A CN 113032330 A CN113032330 A CN 113032330A
Authority
CN
China
Prior art keywords
file
supervised
backup
alarm clock
supervision
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201911253365.4A
Other languages
Chinese (zh)
Inventor
王文博
韩丹
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Xian Novastar Electronic Technology Co Ltd
Original Assignee
Xian Novastar Electronic Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Xian Novastar Electronic Technology Co Ltd filed Critical Xian Novastar Electronic Technology Co Ltd
Priority to CN201911253365.4A priority Critical patent/CN113032330A/en
Publication of CN113032330A publication Critical patent/CN113032330A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/14Error detection or correction of the data by redundancy in operation
    • G06F11/1402Saving, restoring, recovering or retrying
    • G06F11/1446Point-in-time backing up or restoration of persistent data
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/17Details of further file system functions
    • G06F16/174Redundancy elimination performed by the file system
    • G06F16/1744Redundancy elimination performed by the file system using compression, e.g. sparse files
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/18File system types
    • G06F16/1805Append-only file systems, e.g. using logs or journals to store data
    • G06F16/1815Journaling file systems

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • Quality & Reliability (AREA)
  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
  • Debugging And Monitoring (AREA)

Abstract

The embodiment of the invention discloses a file supervision method and device and multimedia broadcast control equipment. The file supervision method comprises the following steps: determining a file to be supervised; acquiring a backup threshold value of the file to be supervised; setting a supervision alarm clock; and calling a designated alarm clock processing function to process the file to be supervised based on the supervision alarm clock trigger, wherein the processing operation comprises the steps of backing up the file to be supervised when the file to be supervised meets the backup threshold value to obtain a backup file, and clearing the backed-up content of the file to be supervised so that the file to be supervised caches new content. The embodiment of the invention can avoid the influence on the running performance and efficiency of the embedded equipment caused by the operations of reading, writing, transmission and the like of a single huge file, and improves the working performance of the embedded equipment.

Description

File supervision method and device and multimedia broadcast control equipment
Technical Field
The present invention relates to the field of file processing technologies, and in particular, to a file monitoring method, a file monitoring device, a file monitoring system, a multimedia broadcast control device, and a computer-readable storage medium.
Background
Various application software such as monitoring software, business software and the like run on the embedded device. The respective application software will typically cache various files on the disk of the embedded device, such as a log file that records application software operating state data or parameters. These files record useful information about events that occur during the operation of the embedded device, which are often used during troubleshooting or system performance analysis. In the existing embedded device, each application software usually only generates one log file and stores the log file under a corresponding folder. The size of the log file becomes larger and larger over time, taking up more disk space. The current embedded devices do not monitor and manage the files well. The operations of reading, writing, transmitting and the like of a single large file are very troublesome, and all of them affect the operation performance and the working efficiency of the embedded device.
Disclosure of Invention
The embodiment of the invention provides a file supervision method, a file supervision device, a file supervision system, a multimedia broadcast control device and a computer readable storage medium, which can avoid the influence on the running performance and efficiency of embedded equipment due to the operations of reading, writing, transmission and the like of a single huge file and improve the working performance of the embedded equipment.
In one aspect, a file supervision method provided by an embodiment of the present invention includes: determining a file to be supervised; acquiring a backup threshold value of the file to be supervised; setting a supervision alarm clock; and calling a designated alarm clock processing function to process the file to be supervised based on the supervision alarm clock trigger, wherein the processing operation comprises the steps of backing up the file to be supervised when the file to be supervised meets the backup threshold value to obtain a backup file, and clearing the backed-up content of the file to be supervised so that the file to be supervised caches new content.
According to the scheme, the alarm clock processing function is called according to the backup threshold value through the supervision alarm clock to backup the file to be supervised and clear the content, so that the size of the file to be supervised is effectively controlled, the problem that the performance and efficiency of a system are influenced by file transmission or file operation due to the fact that a single file is too large is avoided, and the working performance of the embedded equipment is improved.
In an embodiment of the present invention, the backup threshold is a file size threshold of the file to be supervised; the calling of the designated alarm clock processing function based on the supervision alarm clock triggering to process the file to be supervised further comprises: periodically acquiring the file size of the file to be supervised based on the supervision alarm clock; and calling the designated alarm clock processing function to judge whether the file size of the file to be supervised is larger than the file size threshold of the file to be supervised.
In one embodiment of the present invention, the document supervision method further includes: and compressing the backup file to obtain a backup compressed file.
In one embodiment of the present invention, the document supervision method further includes: and deleting the oldest backup compressed file in response to the number of the backup compressed files meeting a preset value.
In an embodiment of the present invention, the file to be supervised is a log file.
On the other hand, an embodiment of the present invention provides a log file monitoring apparatus, including: the supervision file determining module is used for determining a file to be supervised; the backup threshold value acquisition module is used for acquiring a backup threshold value of the file to be supervised; the supervision alarm clock setting module is used for setting a supervision alarm clock; and the file backup clearing module is used for triggering and calling a designated alarm clock processing function based on the supervision alarm clock to process the file to be supervised, wherein the processing operation comprises the steps of backing up the file to be supervised to obtain a backup file when the file to be supervised meets the backup threshold value, and clearing the backed-up content of the file to be supervised so that the file to be supervised caches new content.
In an embodiment of the present invention, the backup threshold is a file size threshold of the file to be supervised; the file backup clearing module further comprises: periodically acquiring the file size of the file to be supervised based on the supervision alarm clock; and calling the designated alarm clock processing function to judge whether the file size of the file to be supervised is larger than the file size threshold of the file to be supervised.
In one embodiment of the present invention, the document supervision apparatus further comprises: and the backup file compression module is used for compressing the backup file to obtain a backup compressed file.
In one embodiment of the present invention, the document supervision apparatus further comprises: and the compressed file deleting module is used for deleting the backup compressed file with the earliest backup time in response to the fact that the number of the backup compressed files meets a preset value.
In an embodiment of the present invention, the file to be supervised is a log file.
In another aspect, an embodiment of the present invention provides a multimedia playing and controlling device, including: an embedded processor; the nonvolatile memory is connected with the embedded processor and is used for storing a file to be supervised; wherein the embedded processor is to: determining the file to be supervised, obtaining a backup threshold of the file to be supervised, setting a supervision alarm clock, and triggering and calling a designated alarm clock processing function based on the supervision alarm clock to perform processing operation on the file to be supervised, wherein the processing operation comprises the steps of backing up the file to be supervised when the file to be supervised meets the backup threshold to obtain the backup file, and clearing the backed-up content of the file to be supervised so that the file to be supervised caches new content.
In an embodiment of the present invention, the embedded processor is further configured to compress the backup files to obtain backup compressed files, and delete the backup compressed file with the earliest backup time in response to the number of the backup compressed files satisfying a preset value.
In another aspect, an embodiment of the present invention provides a file administration system, including: the file supervision method comprises a memory and a processor connected with the memory, wherein the memory stores a computer program, and the processor executes the file supervision method when running the computer program.
In another aspect, an embodiment of the present invention provides a computer-readable storage medium, which is a non-volatile memory and stores computer-executable instructions, where the computer-executable instructions are used to execute the file administration method described in any one of the foregoing items.
One or more of the above technical solutions may have the following advantages or beneficial effects: according to the embodiment of the invention, the alarm clock processing function is called by the supervision alarm clock according to the backup threshold value to backup the file to be supervised and clear the content, so that the size of the file to be supervised is effectively controlled, the problem that the performance and efficiency of the system are influenced by file transmission or file operation due to too large single file is avoided, and the working performance of the embedded equipment is improved. In addition, the backup compressed file is obtained by compressing the backup file, and the backup file is deleted, so that the backup file occupies a larger disk space, the occurrence of faults such as abnormal operation of system or service software and the like caused by too much disk space occupied by the file is further reduced, and the stability and the reliability are further improved. Moreover, by monitoring the number of files on the disk and deleting the backup compressed file with the earliest backup time when the number exceeds a preset value, system or application software running abnormity caused by disk explosion due to too much disk space occupied by the file is further avoided, and stability and reliability are further improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a file supervision method according to a first embodiment of the present invention.
Fig. 2 is another schematic flow chart of the file supervision method according to the first embodiment of the present invention.
Fig. 3 is a schematic structural diagram of a hardware architecture for implementing the file supervision method according to the embodiment of the present invention.
Fig. 4 is a detailed flowchart of a file supervision method according to a first embodiment of the present invention.
Fig. 5 is a schematic structural diagram of a file administration apparatus according to a second embodiment of the present invention.
Fig. 6 is another schematic structural diagram of a document supervising device according to a second embodiment of the present invention.
Fig. 7 is a schematic structural diagram of a file administration system according to a third embodiment of the present invention.
Fig. 8 is a schematic structural diagram of a computer-readable storage medium according to a fourth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be described in detail below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
[ first embodiment ] A method for manufacturing a semiconductor device
As shown in fig. 1, a first embodiment of the present invention provides a file administration method. Specifically, the file supervision method provided by the embodiment of the present invention includes, for example, the steps of:
s11: determining a file to be supervised;
s12: acquiring a backup threshold value of the file to be supervised;
s13: setting a supervision alarm clock;
s14: and calling a designated alarm clock processing function to process the file to be supervised based on the supervision alarm clock trigger, wherein the processing operation comprises the steps of backing up the file to be supervised when the file to be supervised meets the backup threshold value to obtain a backup file, and clearing the backed-up content of the file to be supervised so that the file to be supervised caches new content.
Therefore, the alarm clock processing function is called according to the backup threshold value through the supervision alarm clock to backup the file to be supervised and clear the content, so that the size of the file to be supervised is effectively controlled, the problem that the performance and efficiency of the system are influenced by file transmission or file operation due to the fact that a single file is too large is avoided, and the working performance of the embedded equipment is improved.
Specifically, as shown in fig. 2, when the backup threshold is the file size threshold of the file to be supervised, step S13, for example, further includes the steps of:
periodically acquiring the file size of the file to be supervised based on the supervision alarm clock;
and calling the designated alarm clock processing function to judge whether the file size of the file to be supervised is larger than the file size threshold of the file to be supervised.
Further, as shown in fig. 2, the document supervision method may further include the steps of:
s15: and compressing the backup file to obtain a backup compressed file.
As shown in fig. 2, the document supervision method may further include the steps of:
s16: and deleting the backup compressed file with the earliest backup time in response to the number of the backup compressed files meeting a preset value.
In order to facilitate understanding of the present invention, the steps of the document supervision method of the present embodiment will be described in detail below with reference to fig. 3 and 4.
The file supervision method provided by the embodiment of the invention is suitable for file supervision of embedded equipment such as multimedia broadcast control equipment and the like, and can avoid the influence of file transmission or file operation on the performance and efficiency of a system due to too large single file. Typically, as shown in fig. 3, the multimedia playback device includes, for example, an embedded processor and a non-volatile memory connected to the embedded processor. The embedded processor is, for example, an ARM core-based processor, on which an embedded operating system, such as an Android system based on Linux, is installed, and is mainly used for managing and controlling the multimedia broadcast control device. Various application software such as monitoring software, service software such as media playing control software and the like can be installed on the embedded operating system. Various application software generally generates files in the running process to cache corresponding data and parameters for later troubleshooting, performance analysis and the like. The nonvolatile memory is, for example, an EMMC (Embedded multimedia Card), which can be used to store the aforementioned various files or other spare data files, such as log files. Of course, the non-volatile memory may also be other memories such as FLASH (FLASH memory). In addition, the multimedia broadcast control device can also comprise a programmable logic device. The programmable logic device is connected with the embedded processor. The Programmable logic device is, for example, an FPGA (Field-Programmable Gate Array), and is used for receiving media input, processing the media, and finally outputting the processed media for display. The following describes in detail a specific implementation process of the file supervision method provided by the embodiment of the present invention.
First, as shown in FIG. 4, the embedded processor determines the file to be curated. The file to be supervised here can be, for example, a log file generated by application software installed on the Android operating system, such as multimedia broadcast control software. The file to be supervised can be one file to be supervised of one application software or a plurality of files to be supervised of a plurality of application software. The embedded processor may obtain and determine the file to be supervised by responding to the user operation, or may read the name of the file to be supervised from, for example, a supervision configuration file, so as to determine the file to be supervised, which is not limited herein. Of course, the supervision configuration file may include file names of files to be supervised corresponding to a plurality of application software.
Then, the embedded processor obtains the backup threshold value of the file to be supervised. The backup threshold may be used, for example, to control the size of the files to be curated. The backup threshold is, for example, a file size threshold, or a file cache time threshold to be supervised. When the backup threshold is the file size threshold, the embedded processor is indicated to process the file to be supervised by controlling the size of the file to be supervised. For example, the file size threshold is 100MB, i.e., the size of the file to be policed is not greater than 100 MB. And when the backup threshold is the cache time threshold of the file to be supervised, the embedded processor is indicated to process the file to be supervised by controlling the cache time of the file to be supervised. For example, the caching time threshold of the file to be supervised is 24 hours, that is, the caching time of the file to be supervised does not exceed 24 hours. It is worth mentioning here that the embedded processor obtains the backup threshold of the file to be supervised in response to the user operation. The backup threshold may also be stored in a monitoring configuration file of the file to be monitored, and the embedded processor is obtained by reading the backup threshold corresponding to the file to be monitored in the monitoring configuration file, which is not limited in the present invention.
Secondly, the embedded processor sets up a supervision alarm clock. Specifically, the embedded processor sets a monitoring period of the supervision alarm clock. The monitoring period here may be, for example, 1 minute, 1 hour, 24 hours, or the like. The monitoring period can be set by a user according to actual conditions. When the backup threshold is the caching time threshold of the file to be supervised, the monitoring period of the supervision alarm clock can be equal to the caching time threshold of the file to be supervised.
Then, as shown in fig. 4, the embedded processor calls a designated alarm clock processing function based on the supervision alarm clock trigger to perform a processing operation on the file to be supervised. Specifically, the embedded processor periodically triggers and calls a designated alarm clock processing function to monitor the state of the file to be supervised according to the monitoring period of the supervision alarm clock. And when the file to be supervised meets the backup threshold value, backing up the file to be supervised to obtain a backup file, and removing the backed-up content of the file to be supervised so that the file to be supervised caches new content. The clearing of the backed-up content of the file to be supervised may be partial clearing or complete clearing, and the present invention is not limited thereto. More specifically, when the backup threshold is the cache time threshold of the file to be supervised, it indicates that the embedded processor performs the processing operation on the file to be supervised by monitoring the cache time of the file to be supervised, and the monitoring period of the supervision alarm clock is equal to the cache time threshold of the file to be supervised, for example, 24 hours. Therefore, the embedded processor starts the supervision alarm clock once every 24 hours and triggers and calls a specified alarm clock processing function corresponding to the supervision mode corresponding to the cache time threshold of the file to be supervised, such as the file cache time supervision mode, to perform processing operation, for example, when the cache time of the file to be supervised reaches the cache time threshold of the file to be supervised, such as 24 hours, the embedded processor triggers and calls the alarm clock processing function to backup the file to be supervised to obtain a backup file, and removes the backed-up content of the file to be supervised, so that the file to be supervised caches new content. When the backup threshold is the file size threshold, for example, 100MB, it indicates that the embedded processor performs processing operation on the file to be supervised by monitoring the file size of the file to be supervised, and the monitoring period of the supervision alarm clock may be equal to 1 minute, for example. Therefore, the embedded processor starts the supervision alarm clock once every 1 minute and triggers and calls a specified alarm clock processing function corresponding to a supervision mode corresponding to a file size threshold value, for example, a file size supervision mode, to perform processing operation, for example, the method includes periodically obtaining the file size of a file to be supervised based on a management alarm clock, calling the specified alarm clock processing function to judge whether the file size of the file to be supervised is larger than the file size threshold value of the file to be supervised, when the size of the file to be supervised is larger than the file size threshold value, for example, 100MB, the embedded processor triggers and calls the alarm clock processing function to backup the file to be supervised to obtain a backup file, and removes the backed-up content of the file to be supervised, so that the file to be supervised caches new. It should be noted here that clearing the backed-up content of the file to be supervised can be understood as clearing all the backed-up content of the file to be supervised, and can also be understood as clearing part of the backed-up content of the file to be supervised. If the monitored size of the file to be monitored is not larger than the file size threshold, stopping monitoring, entering a sleep state, and starting the alarm clock again for monitoring after the next monitoring period, so that too much CPU resource is not consumed. It should be noted here that the supervision mode may also be stored in the supervision configuration file as a parameter, and the embedded processor reads the parameter value from the supervision configuration file to determine a designated alarm clock processing function corresponding to the supervision mode, so as to perform a corresponding processing operation.
Log, when the supervision mode is a file size supervision mode, the backup threshold is a file size threshold, and the file size threshold is 100 MB. The embedded processor determines a file to be supervised, acquires a backup threshold value and sets the monitoring period of the supervision alarm clock to be 1 minute. The embedded processor starts a supervision alarm clock every 1 minute, calls an alarm clock processing function based on the triggering of the supervision alarm clock to perform processing operation on the example.log, for example, the size of the example.log is acquired, whether the size of the example.log is larger than a file size threshold is judged, when the monitored result shows that the size of the example.log is larger than the set file size threshold of 100MB, the embedded processor copies the example.log through the alarm clock processing function to obtain a copy of the example.log.1, namely a backup file, and then clears the backed-up content in the example.log, so that new content can be continuously cached into the example.log file. Therefore, the size of the file to be supervised can be controlled to be about 100MB, so that the influence of file transmission or file operation on the performance and efficiency of the system due to the overlarge file to be supervised is avoided, and the running performance and stability of the system are improved.
Log, and when the supervision mode is a file cache time supervision mode, the cache time threshold of the file to be supervised is 24 hours, so that the monitoring period of the supervision alarm clock is also 24 hours. The embedded processor copies example log every 24 hours to get a copy of example log.1, i.e. a backup file, and then clears, e.g. empties, the backed up content in example log, so that it can continue to cache new content into example log files. Therefore, the files to be monitored can be backed up and cleared regularly, and the size of a single file to be monitored is ensured not to be too large, so that the influence on the performance and efficiency of the system caused by file transmission or file operation due to overlarge files is avoided, and the running performance and stability of the system are improved.
Furthermore, after the files to be monitored are backed up and emptied, the embedded processor can also compress the backup files to obtain compressed backup files and delete the backup files. Log.1 is a backup file, for example. The embedded processor compresses example.log.1 to obtain an example.log.1.gz compressed package, namely a compressed backup file, and then deletes the backup file, namely an example.log.1 file. Therefore, the compressed backup file example.log.1 occupies a smaller disk space than the backup file example.log.1. gz. Typically, compressed backup files are about 15-20 times smaller than uncompressed backup files. Therefore, the occupation of the backup files on the disk space can be further reduced, the occurrence of system or service software abnormal operation and other faults caused by too much occupied disk space of the files is reduced, and the stability and the reliability are further improved.
Furthermore, the embedded processor can also control the occupied space of the disk by setting a preset value of the total number of files, namely the total number of files which can be stored on the disk. The total number of files herein may be, for example, the total number of files to be supervised and compressed backup files, may also refer to the total number of compressed backup files, and may also be the total number of files to be supervised, backup files and compressed backup files, which is not limited in this disclosure. The embedded processor monitors the number of files stored on the disk. When the number of files meets a preset value, for example, the number of files reaches the preset value, the embedded processor deletes the file with the oldest generation time, namely the file with the oldest backup time. Therefore, the number of the files on the disk can be continuously monitored, abnormal operation of a system or application software caused by disk explosion due to too much disk space occupied by the files is further avoided, and the stability and the reliability are further improved.
In summary, according to the embodiment of the present invention, the alarm clock processing function is called by the supervision alarm clock according to the backup threshold value to backup and empty the content of the file to be supervised, so that the size of the file to be supervised is effectively controlled, the influence on the performance and efficiency of the system due to file transmission or file operation caused by too large single file is avoided, and the working performance of the embedded device is improved. In addition, the backup compressed file is obtained by compressing the backup file, and the backup file is deleted, so that the backup file occupies a larger disk space, the occurrence of faults such as abnormal operation of system or service software and the like caused by too much disk space occupied by the file is further reduced, and the stability and the reliability are further improved. Moreover, by monitoring the number of the files on the disk and deleting the file with the earliest backup time when the number exceeds a preset value, the abnormal operation of a system or application software caused by the disk fullness due to too much disk space occupied by the file is further avoided, and the stability and the reliability are further improved. In addition, by monitoring the files to be monitored, the storage space can be saved, the cost of a storage chip is reduced, the files to be monitored of the application software to be monitored can be randomly specified, the controllability of the system on the whole log cache is improved, system-level debugging logs can be monitored, and the monitoring device is greatly helped. Therefore, the unified management of all the files to be supervised of the system can be realized, the files can be managed according to time and the size of the files to be supervised, and the problems of disorder and nonuniform management of the files to be supervised in the system are solved.
[ second embodiment ]
As shown in fig. 5, a second embodiment of the present invention provides a document supervision apparatus 400. The file administration apparatus 400 includes, for example: a supervisory file determination module 410, a backup threshold acquisition module 420, a supervisory alarm setting module 430, and a file backup cleanup module 440.
A supervision file determining module 410, configured to determine a file to be supervised;
a backup threshold obtaining module 420, configured to obtain a backup threshold of the file to be supervised;
a supervision alarm clock setting module 430 for setting a supervision alarm clock;
a file backup clearing module 440, configured to invoke a designated alarm clock processing function to perform a processing operation on the file to be supervised based on the supervision alarm clock, where the processing operation includes backing up the file to be supervised to obtain a backup file when the file to be supervised meets the backup threshold, and clearing the backed-up content of the file to be supervised so that the file to be supervised caches new content.
Further, as shown in fig. 6, the document supervision apparatus 400 may further include:
the backup file compressing module 450 is configured to compress the backup file to obtain a backup compressed file.
Further, as shown in fig. 6, the document supervision apparatus 400 may further include:
and a compressed file deleting module 460, configured to delete the backup compressed file with the earliest backup time in response to that the number of the backup compressed files meets a preset value.
For specific working processes and technical effects among the modules in the file supervision apparatus 400 in this embodiment, reference is made to the description of the first embodiment, and details are not repeated here.
[ third embodiment ]
As shown in FIG. 7, a third embodiment of the present invention provides a document administration system 500. Typically, the file administration system 500 may be an embedded device such as a multimedia playback device. The file administration system 500 includes, for example, a memory 510 and a processor 530 coupled to the memory 510. The memory 510 may be, for example, a non-volatile memory having stored thereon a computer program 511. Processor 530 may be, for example, an embedded processor. The processor 530, when running the computer program 511, performs the file administration method in the first embodiment described above.
The specific operation and technical effects of the document supervision system 500 in this embodiment are described in the foregoing first embodiment.
[ fourth example ] A
As shown in fig. 8, a fourth embodiment of the present invention provides a storage medium such as a computer-readable storage medium 600. The computer-readable storage medium 600 is, for example, a nonvolatile memory, which is, for example: magnetic media (e.g., hard disks, floppy disks, and magnetic tape), optical media (e.g., CDROM disks and DVDs), magneto-optical media (e.g., optical disks), and hardware devices specially constructed for storing and executing computer-executable instructions (e.g., Read Only Memories (ROMs), Random Access Memories (RAMs), flash memories, etc.). Computer-readable storage medium 600 has stored thereon computer-executable instructions 610. The computer-readable storage medium 600 may execute the computer-executable instructions 610 by one or more processors or processing devices to implement the document administration method in the foregoing first embodiment.
In addition, it should be understood that the foregoing embodiments are merely exemplary illustrations of the present invention, and the technical solutions of the embodiments can be arbitrarily combined and collocated without conflict between technical features and structural contradictions, which do not violate the purpose of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit is merely a division of one logic function, and an actual implementation may have another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may also be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (10)

1. A method of document administration, comprising:
determining a file to be supervised;
acquiring a backup threshold value of the file to be supervised;
setting a supervision alarm clock;
and calling a designated alarm clock processing function to process the file to be supervised based on the supervision alarm clock trigger, wherein the processing operation comprises the steps of backing up the file to be supervised when the file to be supervised meets the backup threshold value to obtain a backup file, and clearing the backed-up content of the file to be supervised so that the file to be supervised caches new content.
2. The file administration method of claim 1, wherein the backup threshold is a file size threshold for the file to be administered; the calling of the designated alarm clock processing function based on the supervision alarm clock triggering to process the file to be supervised further comprises:
periodically acquiring the file size of the file to be supervised based on the supervision alarm clock;
and calling the designated alarm clock processing function to judge whether the file size of the file to be supervised is larger than the file size threshold of the file to be supervised.
3. The document administration method of claim 1, further comprising:
and compressing the backup file to obtain a backup compressed file.
4. The document administration method of claim 3, further comprising:
and deleting the backup compressed file with the earliest backup time in response to the number of the backup compressed files meeting a preset value.
5. A log file administration apparatus, comprising:
the supervision file determining module is used for determining a file to be supervised;
the backup threshold value acquisition module is used for acquiring a backup threshold value of the file to be supervised;
the supervision alarm clock setting module is used for setting a supervision alarm clock;
and the file backup clearing module is used for triggering and calling a designated alarm clock processing function based on the supervision alarm clock to process the file to be supervised, wherein the processing operation comprises the steps of backing up the file to be supervised to obtain a backup file when the file to be supervised meets the backup threshold value, and clearing the backed-up content of the file to be supervised so that the file to be supervised caches new content.
6. The file administration apparatus of claim 5, wherein the backup threshold is a file size threshold for the file to be administered; the file backup clearing module further comprises:
periodically acquiring the file size of the file to be supervised based on the supervision alarm clock;
and calling the designated alarm clock processing function to judge whether the file size of the file to be supervised is larger than the file size threshold of the file to be supervised.
7. The document supervision apparatus of claim 5, further comprising:
and the backup file compression module is used for compressing the backup file to obtain a backup compressed file.
8. The document supervision apparatus of claim 7, further comprising:
and the compressed file deleting module is used for deleting the backup compressed file with the earliest backup time in response to the fact that the number of the backup compressed files meets a preset value.
9. A multimedia playback device, comprising:
an embedded processor; and
the nonvolatile memory is connected with the embedded processor and is used for storing a file to be supervised;
wherein the embedded processor is to: determining the file to be supervised, obtaining a backup threshold of the file to be supervised, setting a supervision alarm clock, and triggering and calling a designated alarm clock processing function based on the supervision alarm clock to perform processing operation on the file to be supervised, wherein the processing operation comprises the steps of backing up the file to be supervised when the file to be supervised meets the backup threshold to obtain a backup file, and clearing the backed-up content of the file to be supervised so that the file to be supervised caches new content.
10. The multimedia playback device as claimed in claim 9, wherein the embedded processor is further configured to compress the backup files to obtain backup compressed files, and delete the backup compressed file with the earliest backup time in response to the number of the backup compressed files satisfying a predetermined value.
CN201911253365.4A 2019-12-09 2019-12-09 File supervision method and device and multimedia broadcast control equipment Pending CN113032330A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201911253365.4A CN113032330A (en) 2019-12-09 2019-12-09 File supervision method and device and multimedia broadcast control equipment

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201911253365.4A CN113032330A (en) 2019-12-09 2019-12-09 File supervision method and device and multimedia broadcast control equipment

Publications (1)

Publication Number Publication Date
CN113032330A true CN113032330A (en) 2021-06-25

Family

ID=76451134

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201911253365.4A Pending CN113032330A (en) 2019-12-09 2019-12-09 File supervision method and device and multimedia broadcast control equipment

Country Status (1)

Country Link
CN (1) CN113032330A (en)

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018000524A1 (en) * 2016-07-01 2018-01-04 中兴通讯股份有限公司 Backup file method and apparatus
CN109324983A (en) * 2017-07-31 2019-02-12 武汉斗鱼网络科技有限公司 A kind of method, storage medium, equipment and the system of automatic cleaning cache file
CN109933462A (en) * 2019-02-25 2019-06-25 深圳小云字符信息科技有限公司 Log information processing method

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2018000524A1 (en) * 2016-07-01 2018-01-04 中兴通讯股份有限公司 Backup file method and apparatus
CN109324983A (en) * 2017-07-31 2019-02-12 武汉斗鱼网络科技有限公司 A kind of method, storage medium, equipment and the system of automatic cleaning cache file
CN109933462A (en) * 2019-02-25 2019-06-25 深圳小云字符信息科技有限公司 Log information processing method

Similar Documents

Publication Publication Date Title
US11397648B2 (en) Virtual machine recovery method and virtual machine management device
US6697972B1 (en) Method for monitoring fault of operating system and application program
US11907561B2 (en) Data backup method and apparatus
US8028201B2 (en) Leveled logging data automation for virtual tape server applications
CN106682162B (en) Log management method and device
US20060031487A1 (en) Apparatuses for generation and collection of information, and computer-readable recording medium
US20220027254A1 (en) Storage-based log file management
US7010719B2 (en) External storage device capable of selectively storing data in a semiconductor memory or a hard disk
CN115407943A (en) Memory dump file generation method, device and equipment and readable storage medium
CN114610567A (en) Container monitoring method, network device and storage medium
CN100372307C (en) Method for managing system log
JP2004234557A (en) Data management method, controller, and program
CN111522598A (en) Method and device for recording restart information of embedded equipment
CN113032330A (en) File supervision method and device and multimedia broadcast control equipment
CN114518985B (en) Failure indication for storage system commands
CN114978885A (en) Log management method and device, computer equipment and system
CN115421997A (en) Reporting method, processor, terminal equipment and computer readable storage medium
TWI711288B (en) Remote backup method
JP2003308238A (en) Storage network system
CN112905127A (en) Data processing method and data processing system
CN116028276B (en) Delay data reconstruction method, delay data reconstruction device, storage node and storage medium
CN110658989B (en) System and method for backup storage garbage collection
CN114003477B (en) Method, system, terminal and storage medium for collecting diagnosis information of slow disk
CN111858528B (en) BMC log collection and management method, system, terminal and storage medium
CN111831206B (en) Storage space switching method and back-end monitoring system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination