CN102789456A - Method for cleaning redundancy files of disc - Google Patents

Method for cleaning redundancy files of disc Download PDF

Info

Publication number
CN102789456A
CN102789456A CN2011101270822A CN201110127082A CN102789456A CN 102789456 A CN102789456 A CN 102789456A CN 2011101270822 A CN2011101270822 A CN 2011101270822A CN 201110127082 A CN201110127082 A CN 201110127082A CN 102789456 A CN102789456 A CN 102789456A
Authority
CN
China
Prior art keywords
file
redundancy
disk
files
mark
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.)
Granted
Application number
CN2011101270822A
Other languages
Chinese (zh)
Other versions
CN102789456B (en
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.)
Acer Inc
Original Assignee
Acer Inc
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 Acer Inc filed Critical Acer Inc
Priority to CN201110127082.2A priority Critical patent/CN102789456B/en
Publication of CN102789456A publication Critical patent/CN102789456A/en
Application granted granted Critical
Publication of CN102789456B publication Critical patent/CN102789456B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Landscapes

  • Information Retrieval, Db Structures And Fs Structures Therefor (AREA)

Abstract

The invention discloses a method for cleaning redundancy files of a disc, which is applicable to an electronic device with a disc. The method comprises the steps of firstly, backing up a plurality of files stored in the disc to an external device and recording backup information of the files subjected to backup; secondly, acquiring accessed access time and size of each file in the disc last time; thirdly, calculating a redundancy fraction in a weighting mode by using time length of the access time and the size of each file so far; and finally, displaying the files subjected to backup in order according to the recorded backup information and the calculated redundancy fraction of each file, thus helping a user to clean the redundancy files.

Description

Remove the method for disk redundancy file
Technical field
The present invention relates to a kind of method of removing disk, relate in particular to a kind of method of removing the disk redundancy file.
Background technology
Progress along with semiconductor technology; The capacity of storer significantly promotes; And characteristic such as flash memory (Flash Memory) is non-volatile because of having, power saving, volume are little; Be particularly suitable for being used in portable electronic devices, therefore occurred in recent years a kind of use anti-and flash memory as the solid-state storage device of data storing media (Solid State Disk, SSD).
The special feature of solid-state storage device is to utilize the characteristic of flash memory to replace the physical construction of traditional storage device, writes and the mode of erasing is carried out data access by block, therefore can significantly promote the read-write efficiency of storage device.Compare advantage such as solid-state storage device has low power consumption, anti-ly shakes, stability is high, low temperature resistant with the traditional storage device.Portable electronic devices is considered for volume, has gradually adopted the main storage device of solid-state storage device as data.
Yet, the expensive of solid-state storage device, the capacity of the consumption electronic product solid-state storage device that can be equipped with is quite limited on the market.With respect to limited storage volume; The size that is recorded in file wherein then increases gradually; Especially audio/video file; Easily (Giga Byte, data volume GB) lets the user often in the face of the predicament to Insufficient disk space, just needs to rely on the Disk Cleanup instrument this moment and removes file to surpass gigabyte.
General Disk Cleanup instrument is that the size order of accordinging to file carries out when removing file; But because many small documents maybe be for a long time by access; Regular meeting is left in the basket in the process of carrying out the Disk Cleanup instrument, and these small documents build up, and are dispersed in numerous files.The user often need expend manual removing of quite a lot of time file as a result, but can't go out how many disk spaces clearly.
Summary of the invention
The present invention provides a kind of method of removing the disk redundancy file, can assist the user to remove the redundant file that has backed up in the disk.
The present invention proposes a kind of method of removing the disk redundancy file, is applicable to the electronic installation with disk.The method earlier with a plurality of file backups that store in the disk to external device (ED), and write down the backup information of backup file.Then, obtain in the disk before each file once by the file size of the access time of access and each file.Then, use the access time time span and the file size so far of each file, the redundant mark of weighted calculation.At last, according to the backup information that write down and the redundant mark of each file that calculates, the file that sequencing display has backed up.
In one embodiment of this invention; The access time of above-mentioned each file of use time span and file size so far; Weighted calculation should the redundancy mark step comprise that service time, length was carried out power exponentiation; Obtaining time score, and service time mark and file size compute weighted according to a preset ratio, to obtain redundant mark.Wherein, described power exponentiation comprises index (exponential) computing, square operation or cube computing.
In one embodiment of this invention; The access time of above-mentioned each file of use time span and file size so far; The step of the redundant mark of weighted calculation also comprises in the stored a plurality of files of the disk that adds up the redundant mark of All Files in each file, with the redundant mark as this file.
In one embodiment of this invention; The above-mentioned backup information that write down and the redundant mark of each file that calculates accordinged to; The step of the file that sequencing display has backed up also comprises and accordings to the backup information that write down and the redundant mark of each file that calculates, the file that sequencing display has backed up.
In one embodiment of this invention, at above-mentioned redundant mark according to each file, after the step of these files of sequencing display, comprise that also reception is for one of them delete instruction of institute's display file, to delete this file.
In one embodiment of this invention; After the step of above-mentioned deletion this document, also comprise the fileinfo that writes down deleted file, and receive restore instruction for file; With according to fileinfo that is write down and backup information, deleted file is returned to electronic installation by external device (ED).
In one embodiment of this invention, the above-mentioned backup information that write down and the redundant mark of each file that calculates accordinged to, the step of the file that sequencing display has backed up also comprises the file that sequencing display does not back up, with the prompting backup file.
In one embodiment of this invention, above-mentioned time span be with the moon, week, day, hour or minute be that unit calculates, above-mentioned file size then is to be that unit calculates with byte or kilobyte.
Based on above-mentioned; The method of removing disk redundancy file of the present invention is by with once being accessed to the calculating that modern time span and file size are included redundant mark in the disk before the backup file; Can find out the bigger file that do not use or take up room for a long time in the disk; And sequencing display selects to remove for the user, and can save disk space.
For letting the above-mentioned feature and advantage of the present invention can be more obviously understandable, hereinafter is special lifts embodiment, and conjunction with figs. elaborates as follows.
Description of drawings
Fig. 1 is the synoptic diagram according to the disk redundancy file purging system shown in one embodiment of the invention.
Fig. 2 is the method flow diagram according to the removing disk redundancy file shown in one embodiment of the invention.
Fig. 3 is the method flow diagram according to the removing disk redundancy file shown in one embodiment of the invention.
Reference numeral:
10: the file purging system
11: electronic installation
112: disk
114: backup software
12: external device (ED)
S202~S208: the method step of the removing disk redundancy file of one embodiment of the invention
S302~S310: the method step of the removing disk redundancy file of one embodiment of the invention
Embodiment
The present invention combines the score mechanism of backup software and file; Design a kind of file purging instrument; Assist the user of electronic installation to find out the file that is worth and takes up space more without reserve fast, can alleviate the burden that the user removes disk, and can go out disk space effectively clearly.
Fig. 1 is the synoptic diagram according to the disk redundancy file purging system shown in one embodiment of the invention.Please with reference to Fig. 1, the file purging system 10 of present embodiment comprises electronic installation 11 and external device (ED) 12, and its function division is following:
Electronic installation 11 for example is the devices such as mobile phone, personal digital assistant, flat computer, notebook computer or desk-top computer that possess disk 112; 112 of disks for example are hard disk, storer or solid-state storage device (Solid State Disk; Storage Media such as SSD), it can be used to store the foundation of user institute, copy or downloaded files.
External device (ED) 12 for example is through USB (Universal Serial Bus; USB), the hard disk that is connected with electronic installation 11 of interface such as CR, memory card or Storage Media such as dish with oneself; Or pass through far-end computer or the server that network is connected with electronic installation 11; It possesses jumbo storage area, and the usefulness of sub-device 11 as file backup of can supplying power.
What need explanation is, a backup software 114 also can be installed in the electronic installation 11, and the user can be used protection and being stored in the file in the disk 112 through file backup to the external device (ED) 12 of this backup software 114 with disk 112.Yet, the usefulness of the reduction the when backup file that stores in the external device (ED) 12 is only damaged as main storage device (being disk 112), the user generally still can keep source document in disk 112.Only need under the situation in defrag 112 spaces at insufficient space of disk 112 etc., the user just can go for the redundant file of seeking in the disk 112, and carries out cleanup action.To this, the present invention promptly provides a kind of method easily, helps the user to find out the file that is worth and takes up space more without reserve in the disk 112, to promote the effect of Disk Cleanup.
For instance, Fig. 2 is the method flow diagram according to the removing disk redundancy file shown in one embodiment of the invention.Please with reference to Fig. 2, the method for present embodiment is applicable to the file purging system 10 of Fig. 1, below promptly the arrange in pairs or groups detailed step of the various elements explanation disk redundancy file purging method of the present invention in the file purging system 10:
At first, by a plurality of file backups to the external device (ED) 12 of the backup software in the electronic installation 11 114, and in disk 112, write down the backup information of backup file (step S 202) with storage in the disk 112.This backup information for example is an inventory of backup file, comprising title, size and the BACKUP TIME of each file, and the foundation when it can be used as user's deletion in the future or goes back original.
Then, when the user started the disk clear program on the electronic installation 11, the All Files of this program in promptly can scanning disk 112 was to obtain in the disk 112 before each file once by the file size of the access time of access and each file (step S204).In detail; The header of each file (header) all can write down this file title, size, set up the date, revise information such as date and access date; And by the header of All Files in the accessing disk, electronic installation 11 can obtain the access time and the file size of each file.
Then, will use the access time time span and the file size so far of each file, redundant mark of weighted calculation (step S 206) by electronic installation 11.Wherein, the account form of this redundant mark for example is earlier time span to be carried out power exponentiation, to obtain time score.This time length for example be with the moon, week, day, hour or minute be that unit calculates.Then, this time mark and file size are computed weighted according to a preset ratio, finally promptly obtain redundant mark by electronic installation 11.Described file size for example is that (kilobyte KB) calculates for unit, and described power exponentiation for example is index (exponential) computing, square operation or cube computing with byte (byte) or kilobyte.
For instance, the computing formula definable of redundant mark Score, time span time and file size size is following:
Score=2 time×size
Wherein, time span time for example is to be once to be accessed to modern institute elapsed time before the file that unit calculated at interval with the week, and file size size for example is to be that unit calculates with kilobyte.
Obtain by above-mentioned computing method after the redundant mark of each file, last electronic installation 11 promptly according to the redundant mark of the previous backup information that writes down and each file that calculates, shows (step S208) with the file ordering that has backed up.In detail; Electronic installation 11 for example is to sort to the file that has backed up; Filter out more without reserve the file that is worth (promptly not using for a long time) and take up space (being that file is bigger); And according to the size of redundant mark, the mode with tabulation is presented at these files on the screen of electronic installation 11 from high to low, uses letting the user select.When treating that electronic installation 11 receives the user for the delete instruction of institute's display file, can be with this file delete.
What need explanation is; In electronic installation 11 deleted files; For example can write down the fileinfo of this deleted document again; Use after when receiving the user for the restore instruction of this file, can by external device (ED) 12 deleted file be returned to electronic installation 11 again according to fileinfo that is write down and backup information.
On the other hand, electronic installation 11 also can sort to the file of not backup, and accordings to the size of redundant mark, and the mode with tabulation is presented at these files on the screen of electronic installation 11 from high to low, uses letting the user select.When treating that electronic installation 11 receives the user for the selection instruction of institute's display file, can be with this file backup to external device (ED) 12, and can be chosen in after the backup this file delete.
In addition, consider that the number of files that stores in the disk 112 maybe be quite huge, the reset mode of above-mentioned file one by one may be wasted many time of user and energy.To this, the present invention provides another embodiment, and adopting with the file is that unit calculates redundant mark, and the foundation during in view of the above as deleted file.Specify with the next embodiment that lifts again.
Fig. 3 is the method flow diagram according to the removing disk redundancy file shown in one embodiment of the invention.Please with reference to Fig. 3, the method for present embodiment is applicable to the file purging system 10 of Fig. 1, below promptly arrange in pairs or groups various elements explanation in the file purging system 10 remove the detailed step of the method for disk redundancy file:
At first, by a plurality of file backups to the external device (ED) 12 of the backup software in the electronic installation 11 114, and in disk 112, write down the backup information of backup file (step S302) with storage in the disk 112.
Then, when the user started the disk clear program on the electronic installation 11, the All Files of this program in promptly can scanning disk 112 was to obtain in the disk 112 before each file once by the file size of the access time of access and each file (step S304).
Then, electronic installation 11 will use the access time time span and the file size so far of each file, a redundant mark of weighted calculation (step S306).At this moment, in a plurality of files that electronic installation 11 also can be stored with disk 112, the redundant mark of All Files adds up in each file, with the redundant mark (step S308) as this file.
At last, electronic installation 11 is promptly accordinged to the backup information that write down and the redundant mark of each file that calculates, with the file sequencing display (step S310) that has backed up.In detail, electronic installation 11 for example is the size according to redundant mark, and the mode with tabulation is presented at these files on the screen of electronic installation 11 from high to low, uses letting the user select.When treating that electronic installation 11 receives the user for the delete instruction of institute's folder, can the All Files under this file be deleted.By this, can provide a kind of convenience of user and fast mode remove the redundant file in the disk.
In sum; The method that the present invention removes the disk redundancy file is to calculate a redundant mark for each file in the disk; Comprising carrying out power exponentiations such as quadratic power, cube, exponent arithmetic to once being accessed to modern time span before the file; And combine file size to compute weighted, let the influence power of time elongate along with the time and increase fast, and then find out small documents outmoded in the disk.By this, can let the user when the defrag space, find out apace and backed up, and untapped file of a specified duration, and the efficient of increase Disk Cleanup.
Though the present invention discloses as above with embodiment, so it is not in order to limiting the present invention, any under those of ordinary skill in the technical field, when can doing a little change and retouching, and do not break away from the spirit and scope of the present invention.

Claims (10)

1. a method of removing the disk redundancy file is applicable to the electronic installation with a disk, and this method comprises the following steps:
Back up a plurality of file to external device (ED)s that store in this disk, and write down a backup information of those files that backed up;
Obtain in this disk before each those file once by a file size of an access time of access and each those file;
Use this an access time time length and this document size so far of each those file, weighted calculation one redundant mark; And
According to this backup information that is write down and respectively this redundancy mark of those files that calculates, those files that sequencing display has backed up.
2. the method for removing disk redundancy file according to claim 1 is wherein used this access time this time span and this document size so far of each those file, and the step that weighted calculation should the redundancy mark comprises:
Use this time span to carry out a power exponentiation, to obtain a time mark; And
Use this time score and this document size to carry out a ranking operation according to a preset ratio, should the redundancy mark with acquisition.
3. the method for removing disk redundancy file according to claim 2, wherein this power exponentiation comprises exponent arithmetic, square operation or cube computing.
4. the method for removing disk redundancy file according to claim 1 is wherein used this access time this time span and this document size so far of each those file, and the step that weighted calculation should the redundancy mark also comprises:
The redundant mark of All Files in each those file that adds up in the stored a plurality of files of this disk is with this redundancy mark as this document folder.
5. the method for removing disk redundancy file according to claim 4 wherein accordings to this backup information that is write down and respectively this redundancy mark of those files that calculates, and the step of those files that sequencing display has backed up also comprises:
According to this backup information that is write down and respectively this redundancy mark of those files that calculates, those files that sequencing display has backed up.
6. the method for removing disk redundancy file according to claim 1 wherein at this redundancy mark according to each those file, after the step of those files of sequencing display, also comprises:
Reception is for show one of them a delete instruction of those files, with deletion this document.
7. the method for removing disk redundancy file according to claim 6 wherein after the step of deletion this document, also comprises:
Write down a fileinfo of deleted this document; And
Reception with according to this document information that is write down and this backup information, recovers deleted this document to electronic installation by this external device (ED) for a restore instruction of this document.
8. the method for removing disk redundancy file according to claim 1 wherein accordings to this backup information that is write down and respectively this redundancy mark of those files that calculates, and the step of those files that sequencing display has backed up also comprises:
Those files that sequencing display does not back up are with those files of prompting backup.
9. the method for removing disk redundancy file according to claim 1, wherein this time span comprise with the moon, week, day, hour or minute be that unit calculates.
10. the method for removing disk redundancy file according to claim 1, wherein this document size comprises with byte or kilobyte being that unit calculates.
CN201110127082.2A 2011-05-17 2011-05-17 Method for cleaning redundancy files of disc Active CN102789456B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201110127082.2A CN102789456B (en) 2011-05-17 2011-05-17 Method for cleaning redundancy files of disc

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201110127082.2A CN102789456B (en) 2011-05-17 2011-05-17 Method for cleaning redundancy files of disc

Publications (2)

Publication Number Publication Date
CN102789456A true CN102789456A (en) 2012-11-21
CN102789456B CN102789456B (en) 2015-04-08

Family

ID=47154860

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201110127082.2A Active CN102789456B (en) 2011-05-17 2011-05-17 Method for cleaning redundancy files of disc

Country Status (1)

Country Link
CN (1) CN102789456B (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105095252A (en) * 2014-05-06 2015-11-25 腾讯科技(深圳)有限公司 File management method and system
CN105183902A (en) * 2015-09-30 2015-12-23 北京金山安全软件有限公司 File cleaning method and device and terminal
CN109491589A (en) * 2017-09-13 2019-03-19 北京易华录信息技术股份有限公司 A kind of delamination process and device based on file content

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1202061A (en) * 1998-05-26 1998-12-16 英业达股份有限公司 Method for dynamically managing common sources of network
US6134660A (en) * 1997-06-30 2000-10-17 Telcordia Technologies, Inc. Method for revoking computer backup files using cryptographic techniques
CN101937377A (en) * 2009-06-29 2011-01-05 百度在线网络技术(北京)有限公司 Data recovery method and device
CN101945378A (en) * 2010-09-19 2011-01-12 中兴通讯股份有限公司 Method and device for backing up mobile terminal file

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6134660A (en) * 1997-06-30 2000-10-17 Telcordia Technologies, Inc. Method for revoking computer backup files using cryptographic techniques
CN1202061A (en) * 1998-05-26 1998-12-16 英业达股份有限公司 Method for dynamically managing common sources of network
CN101937377A (en) * 2009-06-29 2011-01-05 百度在线网络技术(北京)有限公司 Data recovery method and device
CN101945378A (en) * 2010-09-19 2011-01-12 中兴通讯股份有限公司 Method and device for backing up mobile terminal file

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105095252A (en) * 2014-05-06 2015-11-25 腾讯科技(深圳)有限公司 File management method and system
CN105095252B (en) * 2014-05-06 2019-09-17 腾讯科技(深圳)有限公司 A kind of file management method and system
CN105183902A (en) * 2015-09-30 2015-12-23 北京金山安全软件有限公司 File cleaning method and device and terminal
CN105183902B (en) * 2015-09-30 2019-03-15 北京金山安全软件有限公司 File cleaning method and device and terminal
CN109491589A (en) * 2017-09-13 2019-03-19 北京易华录信息技术股份有限公司 A kind of delamination process and device based on file content

Also Published As

Publication number Publication date
CN102789456B (en) 2015-04-08

Similar Documents

Publication Publication Date Title
US10346079B2 (en) System and method for managing storage system snapshots
CN104350477A (en) Optimized context drop for solid state drive (SSD)
CN102511036B (en) Data store
CN102467969B (en) The method charged for the accessory power supply in data storage device and relevant device
CN103140827B (en) The method of storage system and use thereof
KR20150067583A (en) Nonvolatile memory device and dedeuplicatiton method thereof
TW201124844A (en) Nonvolatile memory system and related method of preserving stored data during power interruption
TW200917270A (en) Wear leveling method and controller using the same
CN105745624A (en) Virtual machine backup from storage snapshot
CN103365744A (en) System and method using metadata image backup and traditional backup
CN102779080B (en) Method for generating snapshot, method and device for data recovery by using snapshot
CN106294007B (en) Data recovery method and device
TW200540623A (en) System and method for drive recovery following a drive failure
JP2010535379A (en) I / O control method and apparatus optimized for flash memory
CN109992202A (en) Data storage device, its operating method and the data processing system including it
CN111007985B (en) Compatible processing method, system and equipment for space recovery of storage system
CN101702139A (en) Method and device for accessing data of Nand flash memory
CN102789456B (en) Method for cleaning redundancy files of disc
Lee et al. Augmenting RAID with an SSD for energy relief
TWI358023B (en) Method and apparatus combining once-writeable and
US20120084510A1 (en) Computing Machine and Computing System
Rizvi et al. Data storage framework on flash memory based SSD RAID 0 for performance oriented applications
KR102152724B1 (en) Video managing apparatus and method of surveillance systems
TW201124836A (en) Raid system
CN103714146B (en) Storage method and device

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant