KR102453870B1 - Method And Computer Program For Deleting File Permanently - Google Patents

Method And Computer Program For Deleting File Permanently Download PDF

Info

Publication number
KR102453870B1
KR102453870B1 KR1020200129275A KR20200129275A KR102453870B1 KR 102453870 B1 KR102453870 B1 KR 102453870B1 KR 1020200129275 A KR1020200129275 A KR 1020200129275A KR 20200129275 A KR20200129275 A KR 20200129275A KR 102453870 B1 KR102453870 B1 KR 102453870B1
Authority
KR
South Korea
Prior art keywords
file
deleted
temporary
deletion
data
Prior art date
Application number
KR1020200129275A
Other languages
Korean (ko)
Other versions
KR20220007484A (en
Inventor
이병배
Original Assignee
주식회사 토브업
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 주식회사 토브업 filed Critical 주식회사 토브업
Priority to PCT/KR2021/008145 priority Critical patent/WO2022010154A1/en
Publication of KR20220007484A publication Critical patent/KR20220007484A/en
Application granted granted Critical
Publication of KR102453870B1 publication Critical patent/KR102453870B1/en

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/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems
    • G06F16/162Delete operations
    • 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
    • G06F16/122File system administration, e.g. details of archiving or snapshots using management policies
    • 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/188Virtual file systems
    • G06F16/192Implementing virtual folder structures

Abstract

본 개시는 파일 영구삭제 방법 및 컴퓨터 프로그램을 제공한다.
본 개시의 일 측면에 의하면, 파일시스템의 파일의 실시간 감시를 통해 삭제파일을 감지하고, 삭제파일의 정보를 기초로 임시파일과 임시파일의 복사본파일을 각각 생성 및 삭제함으로써 삭제파일을 영구삭제하는 파일 영구삭제 방법 및 컴퓨터 프로그램을 제공한다.
본 개시의 다른 측면에 의하면, 모바일 환경의 파일시스템을 일정 간격으로 검색하고 비교하여 삭제파일을 찾아내고, 삭제파일의 임시파일을 생성 및 삭제함으로써 영구삭제하는 파일 영구삭제 방법 및 컴퓨터 프로그램을 제공한다.
The present disclosure provides a method for permanently deleting files and a computer program.
According to one aspect of the present disclosure, a deleted file is detected through real-time monitoring of a file in a file system, and a temporary file and a copy file of the temporary file are respectively created and deleted based on the information of the deleted file to permanently delete the deleted file. A method of permanently deleting files and a computer program are provided.
According to another aspect of the present disclosure, there is provided a file permanent deletion method and computer program for permanently deleting files by searching and comparing file systems in a mobile environment at regular intervals to find deleted files, and creating and deleting temporary files of deleted files. .

Description

파일 영구삭제 방법 및 컴퓨터 프로그램{Method And Computer Program For Deleting File Permanently}Method And Computer Program For Deleting File Permanently

본 발명은 파일 영구삭제 방법 및 컴퓨터 프로그램에 관한 것으로서, 더욱 상세하게는 파일시스템의 파일 감시를 통해 삭제된 파일을 감지하고, 감지된 삭제파일을 영구적으로 삭제하는 파일 영구삭제 방법 및 컴퓨터 프로그램에 관한 것이다.The present invention relates to a file permanent deletion method and a computer program, and more particularly, to a file permanent deletion method and a computer program for detecting a deleted file through file monitoring of a file system and permanently deleting the detected deleted file will be.

이 부분에 기술된 내용은 단순히 본 실시예에 대한 배경 정보를 제공할 뿐 종래기술을 구성하는 것은 아니다.The content described in this section merely provides background information for the present embodiment and does not constitute the prior art.

종래의 데이터 영구삭제는 디스크에서 삭제파일을 추출하여 삭제 파일 테이블을 생성하고, 작업스케줄에 따라 한꺼번에 삭제 처리하는 방식으로 이루어져 왔다. 이러한 방식은 작업의 부하가 작업스케줄에 따라 한번에 삭제 처리하는 시간에 집중되게 하여, 시스템에 부하를 주고, 영구삭제 효율이 떨어지는 문제가 있다.Conventional data permanent deletion has been achieved by extracting deleted files from a disk, creating a deleted file table, and deleting them all at once according to a work schedule. In this way, the load of the work is concentrated on the time to process the deletion at one time according to the work schedule, which puts a load on the system, and there is a problem that the permanent deletion efficiency is lowered.

또한, 기존의 데이터 영구삭제 방법은 배터리 소모량이 많아 모바일 환경에 적용하기 어려운 문제점이 있다.In addition, the existing method of permanently deleting data has a problem in that it is difficult to apply to a mobile environment due to a large amount of battery consumption.

따라서, 시스템 부하의 집중을 완화하고, 모바일 환경에서도 적용 가능한 파일 영구삭제 방안이 필요하다.Therefore, there is a need for a method for permanently deleting files that can alleviate the concentration of system load and can be applied even in a mobile environment.

한국 등록특허공보 제10-1518483호Korean Patent Publication No. 10-1518483

본 개시의 일 측면에 의하면, 파일시스템 내의 파일의 실시간 감시를 통해 삭제파일을 감지하고, 삭제파일의 정보를 기초로 임시파일과 임시파일의 복사본파일을 각각 생성 및 삭제함으로써 삭제파일을 영구삭제하는 파일 영구삭제 방법 및 컴퓨터 프로그램을 제공하는 데 주된 목적이 있다.According to one aspect of the present disclosure, a deleted file is detected through real-time monitoring of a file in a file system, and a temporary file and a copy file of the temporary file are created and deleted respectively based on the information of the deleted file to permanently delete the deleted file. Its main purpose is to provide a method for permanently deleting files and a computer program.

본 개시의 또 다른 측면에 의하면, 모바일 환경의 파일시스템을 일정 간격으로 검색하고 비교하여 삭제파일을 찾아내고, 삭제파일의 임시파일을 생성 및 삭제함으로써 영구삭제하는 파일 영구삭제 방법 및 컴퓨터 프로그램을 제공하는 데 다른 주된 목적이 있다.According to another aspect of the present disclosure, there is provided a file permanent deletion method and computer program for permanently deleting files by searching and comparing file systems in a mobile environment at regular intervals to find deleted files, and creating and deleting temporary files of deleted files. It has another main purpose.

본 개시의 일 측면에 의하면, 파일시스템(file system)에 저장된 파일을 영구삭제(permanent deletion)하는 방법에 있어서, 작업환경을 설정하는 과정; 상기 파일시스템에서 삭제파일의 존재 여부를 모니터링하는 과정; 상기 삭제파일이 있는 경우, 상기 삭제파일의 삭제파일정보를 추출하여 삭제파일테이블을 생성 또는 갱신하는 과정; 상기 삭제파일테이블로부터 상기 삭제파일정보를 추출하여 임시파일을 생성하는 과정; 상기 임시파일을 복사(copy)하여 복사본파일을 생성하는 과정; 상기 작업환경을 기초로 상기 임시파일 및 상기 복사본파일을 삭제하는 과정; 및 상기 삭제파일테이블에서 상기 임시파일 및 상기 복사본파일 각각의 상기 삭제파일정보를 삭제하는 과정을 포함하는 것을 특징으로 하는 파일 영구삭제 방법을 제공한다.According to an aspect of the present disclosure, there is provided a method of permanently deleting a file stored in a file system, the method comprising: setting a working environment; monitoring the existence of a deleted file in the file system; generating or updating a deleted file table by extracting deleted file information of the deleted file when there is the deleted file; generating a temporary file by extracting the deleted file information from the deleted file table; creating a copy file by copying the temporary file; deleting the temporary file and the copy file based on the working environment; and deleting the deleted file information of each of the temporary file and the copy file from the deleted file table.

본 개시의 다른 측면에 의하면, 파일시스템(file system)에 저장된 파일을 영구삭제(permanent deletion)하는 방법에 있어서, 삭제대상 및 대기시간을 포함하는 작업환경을 설정하는 과정; 상기 파일시스템으로부터 상기 삭제대상에 해당하는 파일을 추출하여 기준파일테이블을 생성하는 과정; 상기 대기시간이 경과한 이후, 상기 파일시스템으로부터 상기 삭제대상에 해당하는 파일을 추출하여 최근파일테이블을 생성하는 과정; 상기 기준파일테이블 및 상기 최근파일테이블을 비교하여 삭제파일정보를 추출하고, 삭제파일테이블을 생성하는 과정; 상기 삭제파일테이블로부터 상기 삭제파일정보를 추출하여 임시파일을 생성하는 과정; 상기 임시파일의 데이터인 임시파일 데이터를 삭제하는 과정; 및 상기 임시파일을 삭제하는 과정을 포함하는 것을 특징으로 하는 파일 영구삭제 방법을 제공한다.According to another aspect of the present disclosure, there is provided a method for permanent deletion of a file stored in a file system, the method comprising: setting a work environment including a deletion target and a waiting time; generating a reference file table by extracting a file corresponding to the deletion target from the file system; generating a recent file table by extracting a file corresponding to the deletion target from the file system after the waiting time has elapsed; extracting deleted file information by comparing the reference file table and the recent file table, and generating a deleted file table; generating a temporary file by extracting the deleted file information from the deleted file table; deleting temporary file data that is data of the temporary file; and deleting the temporary file.

본 개시의 또 다른 측면에 의하면, 전술한 파일 영구삭제 방법이 포함하는 각 과정을 실행시키기 위하여 컴퓨터로 읽을 수 있는 기록매체에 저장된 컴퓨터 프로그램을 제공한다.According to another aspect of the present disclosure, there is provided a computer program stored in a computer-readable recording medium in order to execute each process included in the above-described method for permanently deleting files.

본 개시의 일 측면에 의하면, 파일시스템 내의 파일의 실시간 감시를 통해 삭제파일을 감지하고, 삭제파일의 정보를 기초로 임시파일과 임시파일의 복사본파일을 각각 생성 및 삭제함으로써 삭제파일을 영구삭제하는 파일 영구삭제 방법을 제공할 수 있다.According to one aspect of the present disclosure, a deleted file is detected through real-time monitoring of a file in a file system, and a temporary file and a copy file of the temporary file are created and deleted respectively based on the information of the deleted file to permanently delete the deleted file. A method for permanently deleting files may be provided.

또한, 본 개시의 일 측면에 따른 파일 영구삭제 방법은, 임시파일 및 복사본파일의 생성 및 삭제로 삭제파일을 복구할 수 없도록 영구삭제하는 효과가 있다.In addition, the file permanent deletion method according to an aspect of the present disclosure has an effect of permanently deleting the deleted file so that the deleted file cannot be recovered due to the creation and deletion of the temporary file and the copy file.

뿐만 아니라, 본 개시의 일 측면에 따른 파일 영구삭제 방법을 모바일 환경에 적용 시, 파일시스템을 일정 간격으로 검색하고 비교하여 삭제파일을 찾아내고, 삭제파일의 정보를 기초로 임시파일을 생성 및 삭제함으로써 스케줄링에 따른 작업 부하를 방지하여, 과도한 에너지 소모 없이 모바일환경에서 파일을 영구삭제하는 효과가 있다.In addition, when the file permanent deletion method according to an aspect of the present disclosure is applied to a mobile environment, a file system is searched and compared at regular intervals to find a deleted file, and a temporary file is created and deleted based on the information of the deleted file This prevents the workload caused by scheduling, and has the effect of permanently deleting files in a mobile environment without excessive energy consumption.

도 1은 본 개시의 일 실시예에 따른 파일 영구삭제 방법을 나타내는 순서도이다.
도 2는 본 개시의 일 실시예에 따라 삭제허용시간을 기초로 수행되는 파일 영구삭제 방법을 나타내는 순서도이다.
도 3은 본 개시의 일 실시예에 따라 스케줄시간을 기초로 수행되는 파일 영구삭제 방법을 나타내는 순서도이다.
도 4는 본 개시의 일 실시예에 따라 모바일 환경에서의 파일 영구삭제 방법을 나타내는 순서도이다.
1 is a flowchart illustrating a file permanent deletion method according to an embodiment of the present disclosure.
2 is a flowchart illustrating a file permanent deletion method performed based on a permitted deletion time according to an embodiment of the present disclosure.
3 is a flowchart illustrating a file permanent deletion method performed based on a schedule time according to an embodiment of the present disclosure.
4 is a flowchart illustrating a method of permanently deleting files in a mobile environment according to an embodiment of the present disclosure.

이하, 본 개시의 일부 실시예들을 예시적인 도면을 통해 상세하게 설명한다. 각 도면의 구성요소들에 열람부호를 부가함에 있어서, 동일한 구성요소들에 대해서는 비록 다른 도면상에 표시되더라도 가능한 한 동일한 부호를 가지도록 하고 있음에 유의해야 한다. 또한, 본 개시를 설명함에 있어, 관련된 공지 구성 또는 기능에 대한 구체적인 설명이 본 개시의 요지를 흐릴 수 있다고 판단되는 경우에는 그 상세한 설명은 생략한다.Hereinafter, some embodiments of the present disclosure will be described in detail with reference to exemplary drawings. It should be noted that in adding the reading reference numerals to the components of each drawing, the same components are to have the same reference numerals as much as possible even though they are displayed on different drawings. In addition, in describing the present disclosure, if it is determined that a detailed description of a related known configuration or function may obscure the gist of the present disclosure, the detailed description thereof will be omitted.

또한, 본 개시의 구성 요소를 설명하는 데 있어서, 제2, 제1 등의 용어를 사용할 수 있다. 이러한 용어는 그 구성 요소를 다른 구성 요소와 구별하기 위한 것일 뿐, 그 용어에 의해 해당 구성 요소의 본질이나 차례 또는 순서 등이 한정되지 않는다. 명세서 전체에서, 어떤 부분이 어떤 구성요소를 '포함', '구비'한다고 할 때, 이는 특별히 반대되는 기재가 없는 한 다른 구성요소를 제외하는 것이 아니라 다른 구성요소를 더 포함할 수 있는 것을 의미한다. 또한, 명세서에 기재된 '…부', '모듈' 등의 용어는 적어도 하나의 기능이나 동작을 처리하는 단위를 의미하며, 이는 하드웨어나 소프트웨어 또는 하드웨어 및 소프트웨어의 결합으로 구현될 수 있다.In addition, in describing the components of the present disclosure, terms such as second, first, etc. may be used. These terms are only for distinguishing the elements from other elements, and the essence, order, or order of the elements are not limited by the terms. Throughout the specification, when a part 'includes' or 'includes' a certain component, this means that other components may be further included, rather than excluding other components, unless otherwise stated. . In addition, the '... Terms such as 'unit' and 'module' mean a unit that processes at least one function or operation, which may be implemented as hardware or software or a combination of hardware and software.

첨부된 도면과 함께 이하에 개시될 상세한 설명은 본 개시의 예시적인 실시형태를 설명하고자 하는 것이며, 본 개시가 실시될 수 있는 유일한 실시형태를 나타내고자 하는 것이 아니다.DETAILED DESCRIPTION The detailed description set forth below in conjunction with the appended drawings is intended to describe exemplary embodiments of the present disclosure and is not intended to represent the only embodiments in which the present disclosure may be practiced.

본 개시에서의 파일 영구삭제란, 파일시스템에 저장된 파일(바람직하게는 삭제파일)을 복구할 수 없도록 삭제하는 것을 의미한다.Permanent deletion of files in the present disclosure means deleting files (preferably deleted files) stored in the file system so that they cannot be recovered.

본 개시에서 파일 영구삭제 방법은, 삭제된 파일 경로(path)에 삭제파일의 내용과 무관한 내용의 데이터를 생성하여 파일을 생성하고, 생성된 파일을 삭제함으로써 수행된다. 즉 본 개시는 기존의 영구삭제 방법과 달리, 데이터 생성부분이 추가적으로 도입되었다. 또한, 삭제파일의 실시간 감시를 통해 영구삭제를 수행함으로써 기존 영구삭제 방법과 달리 작업스케줄 없이도 영구삭제가 이루어진다.The method of permanently deleting a file in the present disclosure is performed by creating a file by creating data having content irrelevant to the content of the deleted file in a deleted file path, and then deleting the created file. That is, in the present disclosure, unlike the existing permanent deletion method, a data generation part is additionally introduced. In addition, by performing permanent deletion through real-time monitoring of deleted files, permanent deletion is performed without a work schedule, unlike the existing permanent deletion method.

도 1은 본 개시의 일 실시예에 따른 파일 영구삭제 방법을 나타내는 순서도이다.1 is a flowchart illustrating a file permanent deletion method according to an embodiment of the present disclosure.

본 개시의 일 실시예에 따른 파일 영구삭제 방법은 먼저, 파일 영구삭제를 위한 작업환경(task setting)을 설정한다(S100).In the file permanent deletion method according to an embodiment of the present disclosure, first, a task setting for permanent file deletion is set ( S100 ).

작업환경은 파일시스템의 파일을 영구삭제하기 위한 데이터 생성방식 및 데이터 삭제방식, 삭제횟수, 삭제대상, 삭제허용시간(또는 스케줄시간), 임시폴더 설정의 전부 또는 일부를 포함하며, 이에 한하지 않는다.The working environment includes all or part of the data creation method and data deletion method for permanent deletion of files in the file system, the number of deletions, the deletion target, the deletion time (or schedule time), and temporary folder settings, but is not limited thereto. .

데이터 생성방식은 임의의 데이터를 생성하기 위한 방법으로서, 이 분야 통상의 기술자가 용이하게 채용할 수 있는 수단이면 족하고, 특정 생성방법에 한하지 않는다. 예컨대, 비트(bit) 또는 바이트(byte) 단위의 난수(random number)로 채워진 데이터를 만든 후, 데이터 암호화 알고리즘을 적용하여 최종 데이터를 생성하는 방법이 사용될 수 있다. 이때, 데이터 암호화 알고리즘은 평문(plain text)을 암호문(cipher text)으로 바꿀 수 있는 알고리즘이면 족하고, 특정 알고리즘에 한하지 않는다. The data generation method is a method for generating arbitrary data, and any means that can be easily employed by a person skilled in the art is sufficient, and is not limited to a specific generation method. For example, a method of generating final data by applying a data encryption algorithm after creating data filled with random numbers in units of bits or bytes may be used. In this case, the data encryption algorithm suffices to be an algorithm that can change plain text into cipher text, and is not limited to a specific algorithm.

데이터 삭제방식은 데이터를 다른 데이터로 덮어씀(overwrite)으로써 기존의 데이터를 복구할 수 없도록 삭제하는 방법으로서, 이 분야 통상의 기술자가 용이하게 채용할 수 있는 수단이면 족하고, 특정 삭제방법에 한하지 않는다. 예컨대, 데이터 삭제방식은 특정 데이터 삭제 알고리즘을 일정 횟수 수행하는 방법일 수 있다. 이러한 데이터 삭제 알고리즘으로는, DoD 5220.22-M 또는 제로필(Zero-Fill) 등이 사용될 수 있다. DoD 5220.22-M은 데이터 영역을 세번 덮어쓰는 방법으로, 특정한 데이터로 한번, 그의 보수(complement)로 한번, 무작위로 한번 덮어쓴다. 제로필은 모든 데이터를 0 비트로 바꾸는 것이다. 이러한 데이터 삭제 알고리즘은 데이터 영역의 데이터를 덮어쓸 수 있는 것이면 족하고, 특정 알고리즘에 한하지 않는다. 데이터 삭제 알고리즘을 수행하는 횟수가 많을수록 데이터의 복구 확률을 낮출 수 있다.The data deletion method is a method of erasing existing data so that it cannot be recovered by overwriting data with other data. It is sufficient as long as it is a method that can be easily employed by a person skilled in the art, and is not limited to a specific deletion method. does not For example, the data deletion method may be a method of performing a specific data deletion algorithm a predetermined number of times. As such a data deletion algorithm, DoD 5220.22-M or Zero-Fill may be used. DoD 5220.22-M overwrites the data area three times, once with specific data, once with its complement, and once randomly. Zerofill is to change all data to 0 bits. Such a data deletion algorithm suffices as long as the data in the data area can be overwritten, and is not limited to a specific algorithm. The more the data deletion algorithm is performed, the lower the probability of data recovery.

삭제대상은 특정 파일에 대하여만 영구삭제를 수행하기 위하여 설정된다. 따라서 특정 파일 또는 특정 경로를 삭제대상으로서 설정할 수 있고, 특정 파일 및 특정 경로를 제외한 파일을 삭제대상으로서 설정할 수도 있다. 예컨대, DOC, DOCX, PPT, PPTX, XLS 또는 XLSX의 확장자를 가진 파일만을 삭제대상으로 설정함으로써 마이크로소프트 오피스 파일만을 영구삭제하게 할 수 있다.The deletion target is set to permanently delete only a specific file. Accordingly, a specific file or a specific path may be set as a deletion target, and a specific file and a file excluding a specific path may be set as a deletion target. For example, only Microsoft Office files can be permanently deleted by setting only files with extensions of DOC, DOCX, PPT, PPTX, XLS, or XLSX to be deleted.

삭제허용시간 및 스케줄시간은 각각 도 2 및 도 3에서 구체적으로 후술한다.The allowable deletion time and the schedule time will be described later in detail with reference to FIGS. 2 and 3 , respectively.

임시폴더(temporary folder 또는 Temp)는 필요에 따라 임시파일을 복사하여 복사본파일을 저장하기 위한 폴더이다. 이러한 임시폴더는 삭제된 파일과 같은 파티션(partition)에 존재하는 것이 바람직하다. 대체로 하나의 물리적인 저장장치(stroage, 예: 디스크 드라이브(disk driver))는 여러 개의 논리 파티션으로 나뉘므로, 임시폴더도 각 논리 파티션에 나누어 만드는 게 효율적이다. 임시폴더 설정은 파일 시스템 내에서 임시폴더의 생성 방법, 예컨대 생성 위치, 크기, 속성 정보(예: 권한 설정 등) 등의 정보일 수 있다.The temporary folder (temporary folder or Temp) is a folder for copying temporary files as needed and storing the copy files. It is preferable that such a temporary folder exists in the same partition as the deleted file. Usually, one physical storage device (storage, for example, a disk drive) is divided into multiple logical partitions, so it is efficient to create a temporary folder in each logical partition as well. The temporary folder setting may be information such as a creation method of a temporary folder in the file system, for example, a creation location, size, attribute information (eg, permission setting, etc.).

작업환경이 설정되면, 파일시스템에서 삭제파일이 발생하는지를 모니터링한다(S110).When the working environment is set, it is monitored whether a file to be deleted occurs in the file system (S110).

삭제파일을 실시간 모니터링하는 방법은, 운영체제가 제공하는 파일감시 함수를 호출함으로써 수행될 수 있다. 파일감시 함수를 통해 파일의 생성, 변경, 삭제, 이름변경 등 파일의 속성 정보를 모니터링할 수 있다.The method of monitoring a deleted file in real time may be performed by calling a file monitoring function provided by the operating system. Through the file monitoring function, file attribute information such as file creation, change, deletion, and name change can be monitored.

S110 단계 중 삭제파일을 감지하면 S130 단계로 넘어가고, 그렇지 않으면 삭제파일의 모니터링을 계속 수행한다(S120). 이때, 본 개시의 일 실시예에 따른 파일 영구삭제 방법이 스레드(thread)를 기반으로 구현되는 경우, S110은 S130 단계를 수행하는 때에도 계속 수행될 수 있다.If a deleted file is detected during step S110, it goes to step S130, otherwise, monitoring of the deleted file is continued (S120). In this case, if the file permanent deletion method according to an embodiment of the present disclosure is implemented based on a thread, S110 may be continuously performed even when step S130 is performed.

삭제파일을 감지한 경우, 삭제파일로부터 삭제파일정보를 추출하여 삭제파일테이블을 생성 또는 갱신한다(S130). 여기서 생성 또는 갱신의 의미는, 삭제파일테이블이 생성되지 않은 경우 삭제파일테이블을 생성하고, 삭제파일정보에 기초한 엔트리(entry)를 생성하여 삭제파일테이블에 추가하는 것을 의미한다.When a deleted file is detected, deleted file information is extracted from the deleted file to create or update a deleted file table (S130). Here, creation or update means to create a deleted file table when the deleted file table is not created, to create an entry based on the deleted file information, and to add it to the deleted file table.

이때 삭제파일정보는, 삭제파일의 이름과 경로, 시간 정보를 포함한다. 시간 정보에는 파일의 삭제 시간이 포함되며, 그 외 삭제파일의 크기 및 생성시간 정보 등이 더 포함될 수 있다. 예컨대, 운영체제에 따라 삭제파일이 휴지통으로 이동하는 경우, 해당 삭제파일의 크기 등 상세정보를 가져올 수 있으나, 그렇지 않은 경우는 해당 정보를 가져올 수 없을 수 있다.At this time, the deleted file information includes the name, path, and time information of the deleted file. The time information includes the deletion time of the file, and may further include information on the size and creation time of the deleted file. For example, when a deleted file is moved to the recycle bin depending on the operating system, detailed information such as the size of the deleted file may be retrieved, but otherwise, the corresponding information may not be retrieved.

삭제파일이 단시간에 다수 발생하는 경우, 영구삭제 작업이 적체되어 지체될 수 있다. 이때 삭제파일테이블은 캐시(cache)와 같은 역할을 한다.If a large number of deleted files occur in a short time, the permanent deletion operation may be accumulated and delayed. At this time, the deleted file table acts like a cache.

삭제파일테이블이 생성 또는 갱신되었으면, 삭제파일테이블에 저장된 삭제파일정보를 순차적으로 인출하여 작업환경에서 설정한 데이터 생성방식에 따라(데이터 생성방식이 설정된 경우) 임시파일을 생성한다(S140). 이 경우, 임시파일의 속성은 삭제파일데이터에 기초하고, 임시파일의 데이터는 삭제파일데이터에 대응하는 삭제파일의 데이터와는 다르게 된다. 임시파일의 데이터는 전술한 것과 같이, 비트 또는 바이트 난수로 채워진 데이터를 암호화한 것일 수 있다.When the deleted file table is created or updated, the deleted file information stored in the deleted file table is sequentially fetched and a temporary file is created according to the data generation method set in the work environment (when the data generation method is set) (S140). In this case, the attribute of the temporary file is based on the deleted file data, and the data of the temporary file is different from the data of the deleted file corresponding to the deleted file data. The data of the temporary file may be encrypted data filled with bit or byte random numbers, as described above.

이러한 임시파일 생성의 기초가 된 삭제파일정보에 파일 크기 정보가 포함되지 않은 경우, 기 설정된 특정 크기 또는 임의로 정하여진 크기의 임시파일을 생성할 수 있다.When the file size information is not included in the deleted file information, which is the basis for creating such a temporary file, a temporary file of a predetermined specific size or an arbitrarily determined size may be created.

삭제파일의 복구 확률을 낮추기 위하여, 임시파일은 삭제파일과 이름은 동일하나, 파일의 크기를 다르게 하여 생성될 수 있다.In order to lower the recovery probability of a deleted file, a temporary file may be created with the same name as the deleted file, but with a different file size.

임시파일의 생성 여부를 판단한다(S150). 만약 상기 임시파일이 생성되지 않으면, 삭제파일정보를 다시 삭제파일테이블에 추가하여 삭제파일테이블을 갱신하고, S130부터 다시 수행한다.It is determined whether a temporary file is created (S150). If the temporary file is not created, the deleted file information is added to the deleted file table again to update the deleted file table, and the process is performed again from S130.

임시파일 생성이 실패하는 경우는 삭제파일에 쓰기금지 권한(예: Read-Only right)이 설정된 경우이다. 이 경우 쓰기금지 권한이 해제 때까지 잠시 영구삭제를 지연시킬 필요가 있다. 따라서, 삭제파일정보를 다시 삭제파일테이블에 추가하는 것이다.Temporary file creation fails when write-protection rights (eg Read-Only right) are set on the deleted file. In this case, it is necessary to delay the permanent deletion for a while until the write-protection permission is released. Accordingly, the deleted file information is added to the deleted file table again.

쓰기금지 권한이 해제되지 않는 경우, 더는 영구삭제가 진행될 수 없어, 삭제파일테이블에서 삭제파일정보를 삭제하거나, 해당 삭제파일정보를 삭제파일테이블에 추가하되 작업환경에서 설정한 삭제허용시간을 이용하여 해당 삭제파일정보에 대한 이후의 절차를 진행하지 않게 할 수 있다. 이에 관하여는 도 2에서 구체적으로 후술한다.If the write-protect permission is not released, permanent deletion cannot proceed any more, so either delete the deleted file information from the deleted file table or add the deleted file information to the deleted file table, but use the allowable deletion time set in the working environment. Therefore, it is possible not to proceed with the subsequent procedure for the deleted file information. This will be described later in detail with reference to FIG. 2 .

임시파일이 생성된 경우, 임시파일의 복사본파일을 생성한다(S160).When the temporary file is created, a copy file of the temporary file is created (S160).

복사본파일을 생성하는 이유는, 드라이브의 빈공간(slack space)에까지 영구삭제를 추가로 수행하기 위함이다.The reason for creating a copy file is to additionally perform permanent deletion up to the slack space of the drive.

이후, S140 및 S160에서 각각 생성된 임시파일 및 복사본파일을 삭제하고(S170), 대응하는 임시파일 및 복사본파일의 삭제파일정보를 삭제파일테이블에서 삭제한다(S180).Thereafter, the temporary file and the copy file respectively created in S140 and S160 are deleted (S170), and deleted file information of the corresponding temporary file and the copy file is deleted from the deletion file table (S180).

본 개시의 일 실시예에 따른 S110 단계는 다른 단계가 수행 중일 때도 중단되지 않고 계속 수행될 수 있다. 이 경우, S170 단계에서 임시파일 및 복사본파일이 삭제되면 대응하는 삭제파일이 실시간으로 감지되어 파일삭제정보가 다시 삭제파일테이블에 추가된다. 따라서, S180 단계를 통해 불필요한 삭제파일정보를 삭제파일테이블에서 삭제하여야 한다.Step S110 according to an embodiment of the present disclosure may be continuously performed without interruption even when other steps are being performed. In this case, when the temporary file and the copy file are deleted in step S170, the corresponding deleted file is detected in real time, and the file deletion information is added to the deleted file table again. Accordingly, unnecessary deleted file information should be deleted from the deleted file table through step S180.

임시파일 및 복사본파일을 삭제하는 경우, 파일의 이름 및/또는 크기를 다르게 변경한 후 삭제함으로써 복구 확률을 낮출 수 있다.When deleting temporary files and copy files, the recovery probability can be lowered by changing the name and/or size of the files differently and then deleting them.

도 2는 본 개시의 일 실시예에 따라 삭제허용시간을 기초로 파일 영구삭제 방법을 나타내는 순서도이다.2 is a flowchart illustrating a method of permanently deleting a file based on a permitted deletion time according to an embodiment of the present disclosure.

삭제허용시간을 기초로 파일 영구삭제를 수행하기 위하여, 삭제허용시간을 포함한 작업환경을 설정한다(S200). S200 단계는 전술한 대로, 데이터 생성방식, 데이터 삭제방식, 삭제대상, 임시폴더 설정 등을 더 설정할 수 있다. 도 2에서는 작업환경 설정에 삭제허용시간뿐 아니라, 데이터 생성방식, 데이터 삭제방식, 삭제대상 및 임시폴더 설정(환경설정)을 설정한 것을 전제로 한다.In order to perform permanent file deletion based on the allowable deletion time, a work environment including the allowable deletion time is set (S200). In step S200, as described above, a data generation method, a data deletion method, a deletion target, a temporary folder setting, and the like may be further set. In FIG. 2, it is assumed that not only the deletion permitted time but also the data creation method, the data deletion method, the deletion target and the temporary folder setting (environment setting) are set in the work environment setting.

삭제허용시간은 삭제파일 감지로부터 삭제허용시간 이내의 시간에만 감지된 삭제파일의 영구 삭제를 수행하도록 하기 위하여 설정된다. 본 개시의 일 실시예에 따르면, 삭제파일의 영구삭제는 삭제파일테이블에 저장된 삭제파일정보를 기초로 수행되는데, 영구삭제에 실패하는 경우 실패한 파일에 대한 정보가 다시 삭제파일테이블에 추가되는 문제가 있다. 따라서, 삭제허용시간을 두어 삭제파일을 감지한 시간으로부터 삭제허용시간이 지난 경우 더는 영구삭제 과정을 진행하지 않게 한다. 예컨대, 삭제허용시간을 10초로 설정하면, 삭제파일 감지 후 10초가 경과한 후에는 해당 삭제파일정보에 대해서는 더는 영구삭제를 수행하지 않는다.The allowable deletion time is set in order to perform permanent deletion of the detected deleted file only within the period of time within the allowable deletion time from the detection of the deleted file. According to an embodiment of the present disclosure, permanent deletion of a deleted file is performed based on deleted file information stored in the deleted file table. When permanent deletion fails, information on the failed file is added to the deleted file table again. have. Therefore, when the allowable time for deletion has elapsed from the time when the deletion file is detected by setting the allowable time for deletion, the permanent deletion process is no longer performed. For example, if the allowable deletion time is set to 10 seconds, after 10 seconds have elapsed after the detection of the deleted file, permanent deletion of the corresponding deleted file information is not performed any more.

작업환경이 설정되면, 파일시스템 내에서 삭제파일 존재 여부를 모니터링한다(S210). S210 단계 중 삭제파일을 감지하면 S230 단계로 넘어가고, 그렇지 않으면 삭제파일의 모니터링을 계속 수행한다(S220).When the working environment is set, the existence of the deleted file in the file system is monitored (S210). If a deleted file is detected during step S210, the process proceeds to step S230, otherwise, monitoring of the deleted file is continued (S220).

삭제파일을 감지한 경우, 해당 삭제파일이 작업환경에서 설정된 삭제대상에 포함되는 때에만 삭제파일로부터 삭제파일정보를 추출하여 삭제파일테이블을 생성 또는 갱신한다(S230).When a deleted file is detected, the deleted file table is created or updated by extracting the deleted file information from the deleted file only when the corresponding deleted file is included in the deletion target set in the working environment (S230).

삭제파일테이블이 생성 또는 갱신되었고, 현 시각이 삭제허용시간 내인 경우, 삭제파일테이블에 저장된 삭제파일정보를 인출하여 작업환경에서 설정한 데이터 생성방식에 따라 삭제파일(또는 삭제파일정보)에 대응하는 임시파일을 생성한다(S240). 이때, 임시파일은 삭제파일과 이름은 같되, 파일의 파일 크기는 다르게 생성된 것일 수 있다.If the deleted file table has been created or updated and the current time is within the allowable time for deletion, the deleted file information stored in the deleted file table is retrieved and the corresponding deleted file (or deleted file information) is retrieved according to the data creation method set in the working environment A temporary file is created (S240). In this case, the temporary file may have the same name as the deleted file, but the file size of the file may be different.

다음으로, S240에서 임시파일이 생성되었는지를 판단한다(S250). 만약 임시파일이 생성되지 않은 경우, 대응하는 삭제파일정보를 다시 삭제파일테이블에 추가하여 S230 단계부터 다시 시도한다.Next, it is determined whether the temporary file is created in S240 (S250). If the temporary file is not created, the corresponding deleted file information is added to the deleted file table again, and a retry is made from step S230.

S240에서 임시파일이 성공적으로 생성되었다면, 임시폴더 설정을 기초로 생성된 임시폴더에 임시파일의 복사본파일을 생성한다(S260).If the temporary file is successfully created in S240, a copy of the temporary file is created in the temporary folder created based on the temporary folder setting (S260).

이후, S240 단계에서 생성된 임시파일의 데이터를 작업환경에서 설정한 데이터 삭제방식에 따라 삭제한다(S270).Thereafter, the data of the temporary file created in step S240 is deleted according to the data deletion method set in the work environment (S270).

S270 단계는 데이터 삭제방식으로 어떤 데이터 삭제 알고리즘을 선택하느냐에 따라 소요 시간이 달라진다. 이러한 소요 시간은, 데이터 삭제 알고리즘을 수행하는 횟수에 비례하여 증가한다.In step S270, the required time varies depending on which data deletion algorithm is selected as the data deletion method. This required time increases in proportion to the number of times the data deletion algorithm is performed.

마지막으로, S240 및 S260에서 각각 생성된 임시파일 및 복사본파일을 삭제하고(S280), 대응하는 임시파일 및 복사본파일의 삭제파일정보를 삭제파일테이블에서 삭제한다(S290). 이러한 삭제는 전술한 것과 같이, 임시파일 및 복사본파일의 이름 및 크기를 다르게 변경한 후에 수행될 수 있다.Finally, the temporary file and the copy file created in S240 and S260 are deleted respectively (S280), and deleted file information of the corresponding temporary file and the copy file is deleted from the deleted file table (S290). Such deletion may be performed after changing the names and sizes of the temporary file and the copy file differently, as described above.

도 3은 본 개시의 일 실시예에 따라 스케줄시간을 기초로 파일 영구삭제 방법을 나타내는 순서도이다.3 is a flowchart illustrating a method for permanently deleting files based on a schedule time according to an embodiment of the present disclosure.

스케줄시간(schedule time)을 기초로 파일 영구삭제를 수행하기 위하여, 삭제허용시간을 포함한 작업환경을 설정한다(S300). S300 단계는 전술한 대로, 데이터 생성방식, 데이터 삭제방식, 삭제대상, 임시폴더 설정 등을 더 설정할 수 있다. 도 3에서는 작업환경 설정에 스케줄시간뿐 아니라, 데이터 생성방식, 데이터 삭제방식, 삭제대상 및 임시폴더 설정(환경설정)을 설정한 것을 전제로 한다.In order to perform permanent file deletion based on a schedule time, a work environment including a time allowed for deletion is set ( S300 ). In step S300, as described above, a data generation method, a data deletion method, a deletion target, a temporary folder setting, and the like may be further set. In FIG. 3, it is assumed that not only the schedule time but also the data generation method, the data deletion method, the deletion target, and the temporary folder setting (environment setting) are set in the work environment setting.

스케줄시간은 파일시스템의 모니터링을 통해 감지된 삭제파일들을 실제로 영구삭제하도록 설정된 시간이다. 예컨대, 스케줄시간을 매일 낮 12시로 설정한 경우 매일 낮 12시에 삭제파일들의 영구삭제가 이루어진다.The schedule time is the time set to permanently delete the deleted files detected through the monitoring of the file system. For example, if the schedule time is set to 12:00 noon every day, the deleted files are permanently deleted at 12:00 noon every day.

작업환경이 설정되면, 파일시스템에서 삭제파일이 발생하는지를 모니터링한다(S310). S310 단계 중 삭제파일을 감지하면 S330 단계로 넘어가고, 그렇지 않으면 삭제파일의 모니터링을 계속 수행한다(S320).When the working environment is set, it is monitored whether a file to be deleted occurs in the file system (S310). If a deleted file is detected during step S310, the process goes to step S330, otherwise, monitoring of the deleted file is continued (S320).

삭제파일을 감지한 경우, 해당 삭제파일로부터 삭제파일정보를 추출하여 삭제파일테이블을 생성 또는 갱신한다(S330).When a deleted file is detected, deleted file information is extracted from the corresponding deleted file to create or update a deleted file table (S330).

이후, 삭제파일테이블에 저장된 삭제파일정보를 인출하여 작업환경에서 설정한 데이터 생성방식에 따라 삭제파일(또는 삭제파일정보)에 대응하는 임시파일을 생성한다(S340). 이때, 임시파일은 삭제파일과 이름은 동일하되, 파일의 파일 크기는 다르게 생성된 것일 수 있다.Thereafter, the deleted file information stored in the deleted file table is fetched and a temporary file corresponding to the deleted file (or deleted file information) is generated according to the data generation method set in the working environment (S340). In this case, the temporary file may have the same name as the deleted file, but the file size may be different.

다음으로, 설정된 스케줄시간이 되었는지를 판단한다(S350). 스케줄시간이 되었으면 S360 단계로 넘어가고, 그렇지 않으면 상기 S310 단계의 삭제파일의 실시간 모니터링을 계속 수행한다.Next, it is determined whether the set schedule time has come (S350). If the schedule time has come, it goes to step S360, otherwise, real-time monitoring of the deleted file in step S310 is continued.

스케줄시간에 해당하는 경우, S310 단계의 모니터링을 중단하고, 임시폴더에 생성된 모든 임시파일에 대해 복사본파일을 각각 생성한다(S360). 이때, 각 복사본파일은 각 임시파일에 대응하는 삭제파일의 이름과 동일한 이름을 가지고, 삭제파일의 경로와 동일한 경로에 생성한다. 이러한 삭제파일의 이름 및 경로는 삭제파일테이블에 저장된 삭제파일정보에 포함된 것이다.If it corresponds to the schedule time, the monitoring of step S310 is stopped, and a copy file is created for all temporary files created in the temporary folder, respectively (S360). At this time, each copy file has the same name as the name of the deleted file corresponding to each temporary file, and is created in the same path as the path of the deleted file. The names and paths of these deleted files are included in the deleted file information stored in the deleted file table.

복사본파일 생성 후, 복사본파일의 데이터를 작업환경에서 설정한 데이터 삭제방식에 따라 삭제한다(S370).After the copy file is created, the data of the copy file is deleted according to the data deletion method set in the working environment (S370).

이후, S340 및 S360 단계에서 각각 생성된 임시파일 및 복사본파일을 삭제한다(S380). 또한, 삭제된 임시파일 및 복사본파일의 삭제파일정보를 삭제파일테이블에서 삭제하고, 중단되었던 S310 단계의 모니터링을 재개한다(S390).Thereafter, the temporary file and the copy file respectively created in steps S340 and S360 are deleted (S380). In addition, the deleted temporary file and the deleted file information of the copy file are deleted from the deleted file table, and the monitoring of the stopped step S310 is resumed (S390).

상기 S190에서 임시파일 및 복사본파일을 삭제할 때, 파일의 이름 및 크기를 다르게 변경한 후 삭제하는 것이 복구확률을 낮추는 데 유리하다. 이러한 삭제는 전술한 것과 같이, 임시파일 및 복사본파일의 이름 및 크기를 변경한 후에 수행될 수 있다.When deleting the temporary file and the copy file in S190, changing the name and size of the file differently and then deleting the file is advantageous to lower the recovery probability. Such deletion may be performed after changing the names and sizes of temporary files and copy files, as described above.

도 4는 본 개시의 일 실시예에 따라 모바일 환경에서의 파일 영구삭제 방법을 나타내는 순서도이다.4 is a flowchart illustrating a method of permanently deleting files in a mobile environment according to an embodiment of the present disclosure.

도 4의 실시예에서는 복사본파일을 저장하기 위함이 아닌 임시파일을 생성하는 장소로서 임시폴더를 사용한다. 삭제파일을 영구 삭제하기 위해서는, 삭제파일의 원래의 경로에 임시파일을 생성해야 하는데, 원래의 경로에 접근권한(access authority)이 없거나, 파일쓰기 권한이 제한된 경우 해당 경로에의 임시파일 생성이 불가능하다. 이런 경우 본 개시의 일 실시예에 따른 파일 영구삭제 방법에서는, 임시파일을 임시폴더에 생성한다.In the embodiment of Fig. 4, a temporary folder is used as a place for creating a temporary file, not for storing a copy file. To permanently delete a deleted file, a temporary file must be created in the original path of the deleted file. do. In this case, in the file permanent deletion method according to an embodiment of the present disclosure, a temporary file is created in a temporary folder.

모바일 환경에서도 작업의 적체 및 과도한 에너지의 사용 없이 파일 영구삭제를 수행하게 하기 위하여, 도 4의 실시예에서는 파일시스템을 실시간 모니터링하는 것이 아닌, 특정 시간에 해당하는 대기시간을 주기로 파일시스템을 검색하는 방식을 이용한다. 대기시간은 영구삭제의 다음 작업(단계)을 수행할 때까지 대기하여야 하는 시간이다. 예컨대, 대기시간을 3시간으로 설정하면, 기준파일테이블 생성 후 3시간 이후에 최근파일테이블을 생성하게 된다.In order to perform permanent file deletion without overloading of work and using excessive energy even in a mobile environment, in the embodiment of FIG. 4, the file system is searched for a period of waiting time corresponding to a specific time, rather than monitoring the file system in real time. use the method The waiting time is the time to wait until the next operation (step) of permanent deletion is performed. For example, if the waiting time is set to 3 hours, the latest file table is created 3 hours after the reference file table is created.

대기시간을 포함한 작업환경을 설정한다(S400). S400 단계는 전술한 대로, 데이터 생성방식, 데이터 삭제방식, 삭제대상, 임시폴더 설정 등을 더 설정할 수 있다. 도 4에서는 작업환경 설정에 대기시간뿐 아니라, 데이터 생성방식, 데이터 삭제방식, 삭제대상 및 임시폴더 설정(환경설정)을 설정한 것을 전제로 한다.A work environment including the waiting time is set (S400). In step S400, as described above, a data generation method, a data deletion method, a deletion target, a temporary folder setting, and the like may be further set. In FIG. 4 , it is assumed that not only the waiting time but also the data generation method, the data deletion method, the deletion target and the temporary folder setting (environment setting) are set in the work environment setting.

도 4에서는 영구삭제 대상이 되는 삭제파일의 감지에 두 번의 파일시스템 검색을 이용하다. 첫 번째 파일시스템 검색은 기준파일테이블을 생성하기 위한 것이고, 두 번째 파일시스템 검색은 최근파일테이블을 생성하기 위한 것이다. 삭제파일은 각 파일테이블을 비교함으로써 찾는다. 이때, 첫 번째 파일시스템 검색과 두 번째 파일시스템 검색이 일정한 시간 간격(대기시간)을 두고 수행되도록 한다.In FIG. 4, two file system searches are used to detect a deleted file to be permanently deleted. The first file system search is to create a reference file table, and the second file system search is to create a recent file table. Deleted files are found by comparing each file table. At this time, the first file system search and the second file system search are performed with a certain time interval (waiting time).

작업환경이 설정되면, 설정한 삭제대상에 해당하는 모든 파일을 파일시스템에서 검색하고, 검색된 파일에서 파일정보를 추출하여 기준파일테이블을 생성한다(S410).When the working environment is set, all files corresponding to the set deletion target are searched in the file system, and file information is extracted from the searched files to generate a reference file table (S410).

기준파일테이블 생성 후, 대기시간이 경과할 때까지 대기한다(S420).After the reference file table is created, it waits until the waiting time elapses (S420).

대기시간이 경과하였으므로, 삭제대상에 해당하는 모든 파일을 파일시스템에서 다시 검색하여 파일정보를 추출하고, 최근파일테이블을 생성한다(S430).Since the waiting time has elapsed, all files corresponding to the deletion target are searched again in the file system, file information is extracted, and a recent file table is created (S430).

이후, 기준파일테이블과 최근파일테이블을 비교하여 삭제파일정보를 추출하고, 삭제파일테이블을 생성한다(S440). 삭제파일정보를 추출하는 방법은, 기준파일테이블에는 있지만 최근파일테이블에 없는 파일을 삭제파일로 간주하여 추출하는 방법이 사용될 수 있으나, 이에 한하지 않는다. 삭제파일테이블에 포함되는 삭제파일정보에는 삭제파일의 이름과 패스, 크기, 생성 및 삭제 시간 정보가 포함됨이 바람직하다.Thereafter, the deleted file information is extracted by comparing the reference file table with the recent file table, and a deleted file table is generated (S440). As a method of extracting deleted file information, a method of extracting a file in the reference file table but not in the recent file table as a deleted file may be used, but is not limited thereto. The deleted file information included in the deleted file table preferably includes the name, path, size, and creation and deletion time of the deleted file.

생성된 삭제파일테이블에 저장된 삭제파일정보를 순차적으로 인출하여, 작업환경으로 설정한 데이터 생성방식에 따라 각 삭제파일에 대응하는 임시파일을 생성한다(S450). 만약 임시파일이 삭제파일정보의 경로에 생성되지 않으면, 작업환경에서 설정된 임시폴더 설정에 기초하여 생성된 임시폴더에 임시파일이 생성하도록 한다. 임시파일의 데이터는 작업환경에서 설정한 데이터 생성방식에 따라 생성한다. 이때, 임시파일은 삭제파일과 이름은 동일하되, 파일의 파일 크기는 다르게 생성된 것일 수 있다.The deleted file information stored in the created deleted file table is sequentially fetched, and a temporary file corresponding to each deleted file is generated according to the data generation method set in the working environment (S450). If the temporary file is not created in the path of the deleted file information, the temporary file is created in the created temporary folder based on the temporary folder setting set in the working environment. Temporary file data is created according to the data creation method set in the working environment. In this case, the temporary file may have the same name as the deleted file, but the file size may be different.

이후, 작업환경에서 설정한 데이터 삭제방식에 따라 임시파일의 데이터를 삭제한다(S460).Thereafter, the data of the temporary file is deleted according to the data deletion method set in the work environment (S460).

마지막으로, 임시파일을 삭제한다(S470). 이러한 삭제는 전술한 것과 같이, 임시파일의 이름 및 크기를 다르게 변경한 후에 수행될 수 있다Finally, the temporary file is deleted (S470). Such deletion can be performed after changing the name and size of the temporary file differently, as described above.

S470 단계까지 모두 완료되면, 지속적인 삭제파일의 영구삭제를 위하여 S410 단계로 돌아가 영구삭제 과정을 다시 수행함이 바람직하다.When all steps up to step S470 are completed, it is preferable to return to step S410 to permanently delete the permanently deleted file and perform the permanent deletion process again.

도 1 내지 도 4에서는 과정 각 과정을 순차적으로 실행하는 것으로 기재하고 있으나, 이는 본 개시의 일 실시예의 기술 사상을 예시적으로 설명한 것에 불과한 것이다. 다시 말해, 본 개시의 일 실시예가 속하는 기술 분야에서 통상의 지식을 가진 자라면 본 개시의 일 실시예의 본질적인 특성에서 벗어나지 않는 범위에서 도 1 내지 도 4에 기재된 순서를 변경하여 실행하거나 각 과정 중 하나 이상의 과정을 병렬적으로 실행하는 것으로 다양하게 수정 및 변형하여 적용 가능할 것이므로, 도 1 내지 도 4의 시계열적인 순서로 한정되는 것은 아니다.Although it is described that each process is sequentially executed in FIGS. 1 to 4 , this is merely illustrative of the technical idea of an embodiment of the present disclosure. In other words, one of ordinary skill in the art to which an embodiment of the present disclosure pertains may change the order described in FIGS. Since the above process can be variously modified and modified by executing the above process in parallel, it is not limited to the time-series sequence of FIGS. 1 to 4 .

본 명세서에 설명되는 각 과정, 단계, 알고리즘 및 파일 테이블들의 다양한 구현예들은, 디지털 전자 회로, 집적 회로, FPGA(field programmable gate array), ASIC(application specific integrated circuit), 컴퓨터 하드웨어, 펌웨어, 소프트웨어, 및/또는 이들의 조합으로 실현될 수 있다. 이러한 다양한 구현예들은 프로그래밍 가능 시스템상에서 실행 가능한 하나 이상의 컴퓨터 프로그램들로 구현되는 것을 포함할 수 있다. 프로그래밍 가능 시스템은, 저장 시스템, 적어도 하나의 입력 디바이스, 그리고 적어도 하나의 출력 디바이스로부터 데이터 및 명령을 수신하고 이들에게 데이터 및 명령을 전송하도록 결합된 적어도 하나의 프로그래밍 가능 프로세서(이것은 특수 목적 프로세서일 수 있거나 혹은 범용 프로세서일 수 있음)를 포함한다. 컴퓨터 프로그램들(이것은 또한 프로그램들, 소프트웨어, 소프트웨어 애플리케이션들 혹은 코드로서 알려져 있음)은 프로그래밍 가능 프로세서에 대한 명령어들을 포함하며 "컴퓨터가 읽을 수 있는 기록매체"에 저장된다. Various implementations of each process, step, algorithm, and file table described herein may include a digital electronic circuit, an integrated circuit, a field programmable gate array (FPGA), an application specific integrated circuit (ASIC), computer hardware, firmware, software, and/or combinations thereof. These various implementations may include being implemented in one or more computer programs executable on a programmable system. The programmable system includes at least one programmable processor (which may be a special purpose processor) coupled to receive data and instructions from, and transmit data and instructions to, a storage system, at least one input device, and at least one output device. or may be a general-purpose processor). Computer programs (also known as programs, software, software applications or code) contain instructions for a programmable processor and are stored on a "computer-readable recording medium".

컴퓨터가 읽을 수 있는 기록매체는, 컴퓨터 시스템에 의하여 읽혀질 수 있는 데이터가 저장되는 모든 종류의 기록장치를 포함한다. 이러한 컴퓨터가 읽을 수 있는 기록매체는 ROM, CD-ROM, 자기 테이프, 플로피디스크, 메모리 카드, 하드 디스크, 광자기 디스크, 스토리지 디바이스 등의 비휘발성(non-volatile) 또는 비 일시적인(non-transitory) 매체 또는 데이터 전송 매체(data transmission medium)와 같은 일시적인(transitory) 매체를 더 포함할 수도 있다. 또한, 컴퓨터가 읽을 수 있는 기록매체는 네트워크로 연결된 컴퓨터 시스템에 분산되어, 분산 방식으로 컴퓨터가 읽을 수 있는 코드가 저장되고 실행될 수도 있다.The computer-readable recording medium includes all types of recording devices in which data readable by a computer system is stored. These computer-readable recording media are non-volatile or non-transitory, such as ROM, CD-ROM, magnetic tape, floppy disk, memory card, hard disk, magneto-optical disk, and storage device. It may further include a medium or a transitory medium such as a data transmission medium. In addition, the computer-readable   recording medium may be distributed in a network-connected computer system, and the computer-readable code may be stored and executed in a distributed manner.

본 명세서에 설명되는 시스템들 및 기법들의 다양한 구현예들은, 프로그램가능 컴퓨터에 의하여 구현될 수 있다. 여기서, 컴퓨터는 프로그램가능 프로세서, 데이터 저장 시스템(휘발성 메모리, 비휘발성 메모리, 또는 다른 종류의 저장 시스템이거나 이들의 조합을 포함함) 및 적어도 한 개의 커뮤니케이션 인터페이스를 포함한다. 예컨대, 프로그램가능 컴퓨터는 서버, 네트워크 기기, 셋톱박스, 내장형 장치, 컴퓨터 확장 모듈, 개인용 컴퓨터, 랩톱, PDA(Personal Data Assistant), 클라우드 컴퓨팅 시스템 또는 모바일 장치 중 하나일 수 있다.Various implementations of the systems and techniques described herein may be implemented by a programmable computer. Here, the computer includes a programmable processor, a data storage system (including volatile memory, non-volatile memory, or other types of storage systems or combinations thereof), and at least one communication interface. For example, the programmable computer may be one of a server, a network appliance, a set-top box, an embedded device, a computer expansion module, a personal computer, a laptop, a Personal Data Assistant (PDA), a cloud computing system, or a mobile device.

이상의 설명은 본 실시예의 기술 사상을 예시적으로 설명한 것에 불과한 것으로서, 본 실시예가 속하는 기술 분야에서 통상의 지식을 가진 자라면 본 실시예의 본질적인 특성에서 벗어나지 않는 범위에서 다양한 수정 및 변형이 가능할 것이다. 따라서, 본 실시예들은 본 실시예의 기술 사상을 한정하기 위한 것이 아니라 설명하기 위한 것이고, 이러한 실시예에 의하여 본 실시예의 기술 사상의 범위가 한정되는 것은 아니다. 본 실시예의 보호 범위는 아래의 청구범위에 의하여 해석되어야 하며, 그와 동등한 범위 내에 있는 모든 기술 사상은 본 실시예의 권리범위에 포함되는 것으로 해석되어야 할 것이다.The above description is merely illustrative of the technical idea of this embodiment, and various modifications and variations will be possible without departing from the essential characteristics of the present embodiment by those of ordinary skill in the art to which this embodiment belongs. Accordingly, the present embodiments are intended to explain rather than limit the technical spirit of the present embodiment, and the scope of the technical spirit of the present embodiment is not limited by these embodiments. The protection scope of this embodiment should be interpreted by the claims below, and all technical ideas within the scope equivalent thereto should be construed as being included in the scope of the present embodiment.

Claims (19)

PC 환경에서 프로그램을 실행하는 시스템에서 수행되는 파일시스템(file system)에 저장된 파일을 영구삭제(permanent deletion)하는 방법에 있어서,
작업환경을 설정하는 과정;
상기 파일시스템에서 삭제파일의 존재 여부를 모니터링하는 과정;
상기 삭제파일이 있는 경우, 상기 삭제파일의 삭제파일정보를 추출하여 삭제파일테이블을 생성 또는 갱신하는 과정;
상기 삭제파일테이블로부터 상기 삭제파일정보를 추출하여 임시파일을 생성하는 과정;
상기 임시파일을 복사(copy)하여 복사본파일을 생성하는 과정;
상기 작업환경을 기초로 상기 임시파일 및 상기 복사본파일을 삭제하는 과정; 및
상기 삭제파일테이블에서 상기 임시파일 및 상기 복사본파일 각각의 상기 삭제파일정보를 삭제하는 과정을 포함하되,
상기 복사본파일을 생성하는 과정은, 상기 작업환경에 기초하여 생성된 임시폴더에 상기 임시파일을 복사함으로써 상기 복사본파일을 생성하는 것을 특징으로 하는 파일 영구삭제 방법.
In a method for permanent deletion of a file stored in a file system performed in a system running a program in a PC environment,
the process of setting up a working environment;
monitoring the existence of a deleted file in the file system;
generating or updating a deleted file table by extracting deleted file information of the deleted file when there is the deleted file;
generating a temporary file by extracting the deleted file information from the deleted file table;
creating a copy file by copying the temporary file;
deleting the temporary file and the copy file based on the working environment; and
Deleting the deleted file information of each of the temporary file and the copy file from the deleted file table,
The process of creating the copy file includes creating the copy file by copying the temporary file to a temporary folder created based on the working environment.
제1항에 있어서,
상기 작업환경은, 데이터 생성방식, 데이터 삭제방식, 삭제대상 및 임시폴더 설정방식을 포함하는 것을 특징으로 하는 파일 영구삭제 방법.
According to claim 1,
The work environment is a method for permanently deleting files, characterized in that it includes a data creation method, a data deletion method, a deletion target and a temporary folder setting method.
제2항에 있어서,
상기 데이터 생성방식에 따른 데이터 생성은,
비트(bit) 또는 바이트(byte) 난수(random number)로 채워진 데이터를 생성하여 암호화함으로써 수행되는 것을 특징으로 하는 파일 영구삭제 방법.
3. The method of claim 2,
Data generation according to the data generation method,
A method of permanently deleting a file, characterized in that it is performed by generating and encrypting data filled with bit or byte random numbers.
제2항에 있어서,
상기 작업환경에는, 삭제허용시간이 더 포함되고,
상기 임시파일을 생성하는 과정은,
상기 삭제허용시간 내인 경우에만 상기 임시파일을 생성하는 것을 특징으로 하는 파일 영구삭제 방법.
3. The method of claim 2,
The work environment further includes a time allowed for deletion,
The process of creating the temporary file is,
The method of permanently deleting files, characterized in that the temporary file is created only within the allowable time for deletion.
제1항에 있어서,
상기 복사본파일을 생성하는 과정 이후, 상기 임시파일의 데이터인 임시파일 데이터를 삭제하는 과정
을 더 포함하는 것을 특징으로 하는 파일 영구삭제 방법.
The method of claim 1,
After the process of creating the copy file, the process of deleting temporary file data that is data of the temporary file
File permanent deletion method, characterized in that it further comprises.
제5항에 있어서,
상기 데이터 삭제방식에 따른 데이터 삭제는,
데이터 삭제 알고리즘을 기 설정된 횟수만큼 수행하는 것이고,
상기 임시파일 데이터를 삭제하는 과정은,
상기 임시파일 데이터를 상기 데이터 삭제방식을 이용하여 삭제하는 것을 특징으로 하는 파일 영구삭제 방법.
6. The method of claim 5,
Data deletion according to the data deletion method,
The data deletion algorithm is performed a preset number of times,
The process of deleting the temporary file data is,
The file permanent deletion method, characterized in that the temporary file data is deleted using the data deletion method.
제2항에 있어서,
상기 작업환경에는, 스케줄시간(schedule time)이 더 포함되고,
상기 임시파일을 생성하는 과정은,
상기 임시폴더 설정방식에 기초하여 생성된 임시폴더에 상기 임시파일 생성하는 것을 특징으로 하는 파일 영구삭제 방법.
3. The method of claim 2,
The work environment further includes a schedule time,
The process of creating the temporary file is,
The method of permanently deleting files, characterized in that the temporary file is created in a temporary folder created based on the temporary folder setting method.
제7항에 있어서,
상기 스케줄시간에 도달 시, 상기 모니터링하는 과정은 중단되고,
상기 복사본파일을 생성하는 과정은,
상기 임시폴더에 포함된 하나 이상의 임시파일에 있어, 상기 삭제파일테이블로부터 상기 삭제파일정보를 각각 추출하여, 상기 하나 이상의 임시파일에 대응하는 상기 복사본파일을 각각 생성하는 것을 특징으로 하는 파일 영구삭제 방법.
8. The method of claim 7,
When the schedule time is reached, the monitoring process is stopped,
The process of creating the copy file is:
In the one or more temporary files included in the temporary folder, each of the deleted file information is extracted from the deleted file table, and the copy files corresponding to the one or more temporary files are respectively created. .
제8항에 있어서,
상기 삭제파일정보는, 상기 삭제파일의 이름 및 경로(path)를 포함하고,
상기 복사본파일을 생성하는 과정은,
상기 삭제파일과 이름 및 경로가 같은 상기 복사본파일을 생성하는 것을 특징으로 하는 파일 영구삭제 방법.
9. The method of claim 8,
The deleted file information includes a name and a path of the deleted file,
The process of creating the copy file is:
File permanent deletion method, characterized in that the copy file is created with the same name and path as the deleted file.
제9항에 있어서,
상기 복사본파일을 생성하는 과정 이후, 상기 복사본파일의 데이터인 복사본파일 데이터를 삭제하는 과정
을 더 포함하는 것을 특징으로 하는 파일 영구삭제 방법.
10. The method of claim 9,
After the process of creating the copy file, the process of deleting the copy file data that is the data of the copy file
File permanent deletion method, characterized in that it further comprises.
제10항에 있어서,
상기 데이터 삭제방식에 따른 데이터 삭제는,
데이터 삭제 알고리즘을 기 설정된 횟수만큼 수행하는 것이고,
상기 복사본파일 데이터를 삭제하는 과정은,
상기 복사본파일 데이터를 상기 데이터 삭제방식을 이용하여 삭제하는 것을 특징으로 하는 파일 영구삭제 방법.
11. The method of claim 10,
Data deletion according to the data deletion method,
The data deletion algorithm is performed a preset number of times,
The process of deleting the copy file data is,
The file permanent deletion method, characterized in that the copy file data is deleted using the data deletion method.
제11항에 있어서,
상기 삭제파일정보를 삭제하는 과정 이후, 상기 모니터링하는 과정이 재개되는 것을 특징으로 하는 파일 영구삭제 방법.
12. The method of claim 11,
After the process of deleting the deleted file information, the file permanent deletion method, characterized in that the monitoring process is resumed.
제1항에 있어서,
상기 임시파일을 생성하는 과정은,
상기 삭제파일정보에 포함된 삭제파일의 이름 및 크기 정보를 기초로, 상기 삭제파일의 이름과 이름은 동일하나 상기 삭제파일의 크기와는 파일 크기가 다른 임시파일을 생성하는 것을 특징으로 하는 파일 영구삭제 방법.
According to claim 1,
The process of creating the temporary file is,
Permanent file, characterized in that based on the name and size information of the deleted file included in the deleted file information, a temporary file having the same name and name but a different file size from the size of the deleted file is created. How to delete.
제1항에 있어서,
상기 임시파일 및 상기 복사본파일을 삭제하는 과정은,
상기 임시파일 및 상기 복사본파일 각각의 이름 및 크기를 변경하여 삭제하는 것을 특징으로 하는 파일 영구삭제 방법.
According to claim 1,
The process of deleting the temporary file and the copy file is,
A file permanent deletion method, characterized in that the temporary file and the copy file are deleted by changing the name and size of each.
모바일 환경에서 프로그램을 실행하는 시스템에서 수행되는 파일시스템(file system)에 저장된 파일을 영구삭제(permanent deletion)하는 방법에 있어서,
삭제대상 및 대기시간을 포함하는 작업환경을 설정하는 과정;
상기 파일시스템으로부터 상기 삭제대상에 해당하는 파일을 추출하여 기준파일테이블을 생성하는 과정;
상기 대기시간이 경과한 이후, 상기 파일시스템으로부터 상기 삭제대상에 해당하는 파일을 추출하여 최근파일테이블을 생성하는 과정;
상기 기준파일테이블 및 상기 최근파일테이블을 비교하여 삭제파일정보를 추출하고, 삭제파일테이블을 생성하는 과정;
상기 삭제파일테이블로부터 상기 삭제파일정보를 추출하여 임시파일을 생성하는 과정;
상기 임시파일의 데이터인 임시파일 데이터를 삭제하는 과정; 및
상기 임시파일을 삭제하는 과정을 포함하되,
상기 임시파일을 생성하는 과정은, 상기 삭제파일정보에 포함된 삭제파일의 이름 및 크기 정보를 기초로, 상기 삭제파일의 이름과 이름은 동일하나 상기 삭제파일의 크기와는 파일 크기가 다른 임시파일을 생성하는 것을 특징으로 하는 파일 영구삭제 방법.
In a method for permanent deletion of a file stored in a file system performed in a system running a program in a mobile environment,
The process of setting a work environment including a deletion target and a waiting time;
generating a reference file table by extracting a file corresponding to the deletion target from the file system;
generating a recent file table by extracting a file corresponding to the deletion target from the file system after the waiting time has elapsed;
extracting deleted file information by comparing the reference file table and the recent file table, and generating a deleted file table;
generating a temporary file by extracting the deleted file information from the deleted file table;
deleting temporary file data that is data of the temporary file; and
Including the process of deleting the temporary file,
In the process of creating the temporary file, based on the name and size information of the deleted file included in the deleted file information, the name and name of the deleted file are the same, but the file size is different from the size of the deleted file. File permanent deletion method, characterized in that to create a.
제15항에 있어서,
상기 임시파일을 삭제하는 과정은,
상기 임시파일의 이름 및 크기를 변경하여 삭제하는 것을 특징으로 하는 파일 영구삭제 방법.
16. The method of claim 15,
The process of deleting the temporary file is:
File permanent deletion method, characterized in that the deletion by changing the name and size of the temporary file.
제1항 내지 제16항 중 어느 한 항에 따른 파일 영구삭제 방법이 포함하는 각 과정을 실행시키기 위하여 컴퓨터로 읽을 수 있는 기록매체에 저장된 컴퓨터 프로그램.

A computer program stored in a computer-readable recording medium to execute each process included in the method for permanently deleting files according to any one of claims 1 to 16.

삭제delete 삭제delete
KR1020200129275A 2020-07-10 2020-10-07 Method And Computer Program For Deleting File Permanently KR102453870B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
PCT/KR2021/008145 WO2022010154A1 (en) 2020-07-10 2021-06-29 Method and computer program for permanently deleting file

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR20200085092 2020-07-10
KR1020200085092 2020-07-10

Publications (2)

Publication Number Publication Date
KR20220007484A KR20220007484A (en) 2022-01-18
KR102453870B1 true KR102453870B1 (en) 2022-10-12

Family

ID=80052202

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020200129275A KR102453870B1 (en) 2020-07-10 2020-10-07 Method And Computer Program For Deleting File Permanently

Country Status (1)

Country Link
KR (1) KR102453870B1 (en)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010002185A2 (en) 2008-07-03 2010-01-07 (주) 애니컴페니언 Method for automatically and completely deleting temporary files used in application programs
KR100970700B1 (en) 2007-11-26 2010-07-16 (주)크레프리 Method for perpetual data deleting
JP2011008332A (en) * 2009-06-23 2011-01-13 Nippon Telegr & Teleph Corp <Ntt> File storage device and file storage method
KR101181980B1 (en) 2010-09-15 2012-09-11 한국모바일인증 주식회사 Method for deleting data permanently with enhanced security
KR101518483B1 (en) * 2014-10-14 2015-05-07 엑스투씨앤씨(주) Method for permanently deleting the data on hard disk

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20080098164A (en) * 2007-05-04 2008-11-07 (주)에스엠에스 Method of data elimination and hard disk management
KR20100025116A (en) * 2008-08-27 2010-03-09 (주) 애니컴페니언 Fully automatic deletion using the system to prevent the leakage of documents
KR101055287B1 (en) * 2009-05-14 2011-08-09 (주) 애니컴페니언 How to manage temporary files used by applications

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100970700B1 (en) 2007-11-26 2010-07-16 (주)크레프리 Method for perpetual data deleting
WO2010002185A2 (en) 2008-07-03 2010-01-07 (주) 애니컴페니언 Method for automatically and completely deleting temporary files used in application programs
JP2011008332A (en) * 2009-06-23 2011-01-13 Nippon Telegr & Teleph Corp <Ntt> File storage device and file storage method
KR101181980B1 (en) 2010-09-15 2012-09-11 한국모바일인증 주식회사 Method for deleting data permanently with enhanced security
KR101518483B1 (en) * 2014-10-14 2015-05-07 엑스투씨앤씨(주) Method for permanently deleting the data on hard disk

Also Published As

Publication number Publication date
KR20220007484A (en) 2022-01-18

Similar Documents

Publication Publication Date Title
US20230259623A1 (en) Ransomware attack onset detection
US8751763B1 (en) Low-overhead deduplication within a block-based data storage
US10303363B2 (en) System and method for data storage using log-structured merge trees
CN110109915B (en) Method, apparatus and computer program product for managing hash tables
US10983867B1 (en) Fingerprint change during data operations
US20070266441A1 (en) Method and apparatus for creating and applying secure file indentifier of rights object by using random numbers
US10013312B2 (en) Method and system for a safe archiving of data
CN110018998B (en) File management method and system, electronic equipment and storage medium
WO2020093501A1 (en) File storage method and deletion method, server, and storage medium
US11392545B1 (en) Tracking access pattern of inodes and pre-fetching inodes
CN111008034B (en) Patch generation method and device
CN109284066B (en) Data processing method, device, equipment and system
US10509767B2 (en) Systems and methods for managing snapshots of a file system volume
US10983718B2 (en) Method, device and computer program product for data backup
US8572730B1 (en) Systems and methods for revoking digital signatures
CN111190899B (en) Buried data processing method, buried data processing device, server and storage medium
KR20080010906A (en) Method and apparatus for managing license
WO2018064319A1 (en) Tracking access pattern of inodes and pre-fetching inodes
EP2669806A1 (en) Storage system
US20160078227A1 (en) Data processing system security device and security method
CN111143113A (en) Method, electronic device and computer program product for copying metadata
KR102453870B1 (en) Method And Computer Program For Deleting File Permanently
CN111488117B (en) Method, electronic device, and computer-readable medium for managing metadata
US20200349186A1 (en) Method, apparatus and computer program product for managing metadata of storage object
US10235293B2 (en) Tracking access pattern of inodes and pre-fetching inodes

Legal Events

Date Code Title Description
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant