User data processing method and apparatus, network disk, and storage medium

By identifying users as invalid users and migrating their data to the archive storage space, the problems of invalid users occupying storage space and putting pressure on performance are solved, achieving efficient data management and convenient data recovery for returning users.

CN123157663APending Publication Date: 2026-11-24BEIJING LENOVO SYNERGY TECH CO LTD
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202611075137.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2026-07-20
Publication Date
2026-11-24

AI Technical Summary

Technical Problem

In the existing cloud storage, invalid user data consumes a lot of storage space and puts a lot of pressure on performance. Furthermore, invalid user data cannot be directly deleted, which increases storage costs and hardware requirements.

Method used

By obtaining the interval between the user's last operation time and the current time, the user is determined to be an invalid user, and their data is migrated to the archive storage space of the archive cloud drive. At the same time, when the user logs in, they are determined to be a returning user and their data is migrated back to the original storage space.

Benefits of technology

It reduces the space usage and performance pressure of invalid user data on the group cloud drive, avoids data loss, and makes it easier for users to retrieve historical data in a timely manner when returning to the network.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN123157663A_ABST
    Figure CN123157663A_ABST
Patent Text Reader

Abstract

This invention provides a user data processing method, apparatus, cloud storage, and storage medium. The method includes: determining that the user is an invalid user; creating an archive account in an archive cloud storage based on the invalid user's account information, and allocating archive storage space for the archive account in the archive cloud storage; migrating files from the invalid user's personal storage space in a group cloud storage to the archive storage space in the archive cloud storage; when a user issuing a login request is an invalid user, determining that the invalid user is a returning user; searching for an archive account with the same account information in the archive cloud storage based on the returning user's account information; and migrating files from the archive storage space to the returning user's personal storage space in the group cloud storage. The user data processing method, apparatus, cloud storage, and storage medium of this invention can reduce the space occupied by invalid user data in the group cloud storage and alleviate the performance pressure on the group cloud storage.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention belongs to the field of computer technology, and in particular relates to a user data processing method, apparatus, cloud storage, and storage medium. Background Technology

[0002] When using cloud storage for collaborative work, the amount of data within the cloud storage will gradually increase as the usage time and the number of users increase. Since existing cloud storage products generally use high-cost underlying storage devices, the increase in the amount of data within the cloud storage will not only significantly increase the storage cost, but also gradually increase the performance pressure on the cloud storage, thus leading to increasingly higher hardware requirements for the cloud storage server.

[0003] However, when the number of cloud storage users is large, it's inevitable that some users will be inactive for extended periods or have their accounts frozen due to special circumstances. The data stored by these inactive users in their personal cloud storage spaces has low utilization. Continuing to store this data will consume storage space and impact the cloud storage's hardware performance, but this data still belongs to the users' digital assets and cannot be directly deleted. Therefore, how to properly handle inactive users and the data they store in cloud storage has become a pressing issue that needs to be addressed in this field. Summary of the Invention

[0004] In view of this, the present invention aims to provide a user data processing method, apparatus, cloud storage, and storage medium to solve the above-mentioned technical problems.

[0005] To achieve the above objectives, the technical solution created by this invention is implemented as follows: In a first aspect, embodiments of the present invention provide a user data processing method, including: Obtain the log file of the group cloud drive, determine the time node of the last cloud drive operation performed by the user based on the log file of the group cloud drive, calculate the time interval between the time node of the last cloud drive operation performed by the user and the current time node, and determine the user as an invalid user when the time interval is greater than a preset time interval threshold; Obtain invalid user account information, create archive accounts in the archive cloud drive based on invalid user account information, and allocate archive storage space for archive accounts in the archive cloud drive; Retrieve files from invalid users' personal storage space in the group cloud drive, and migrate these files to the archive storage space in the archive cloud drive. When a login request is received from the group cloud storage, it is determined whether the user who sent the login request is an invalid user. If the user who sent the login request is an invalid user, the invalid user is determined to be a returning user. Obtain the account information of returning users, search for archived accounts with the same account information in the archived cloud drive based on the returning users' account information, and determine the archived storage space based on the archived accounts; Retrieve the files from the archive storage space and migrate them to the returning user's group cloud drive personal storage space.

[0006] Furthermore, after determining that the user is an invalid user, the user data processing method includes: Add an archive mark to invalid users in the user list of the group cloud drive; Accordingly, after determining the invalid user as a returning user, the user data processing method further includes: Remove the archive tag for returning users from the user list of the group cloud drive.

[0007] Furthermore, after obtaining the files of invalid users in their personal storage space on the group cloud drive, the user data processing method includes: Obtain the file's last modification date, and determine the file's historical modification order and modification time interval based on the file's last modification date; The frequency of invalid user operations on a file is obtained, and a correction coefficient is generated based on the frequency of invalid user operations on the file. The magnitude of the correction coefficient is directly proportional to the frequency of invalid user operations on the file. The migration order of files is determined based on their historical modification order, and the migration interval is determined based on the modification interval and correction factor. Accordingly, the process of migrating invalid users' files from their personal storage space in the group cloud drive to the archive storage space in the archive cloud drive includes: Files belonging to invalid users in the group cloud drive's personal storage space will be migrated to the archive storage space of the archive cloud drive based on the migration order and migration time interval.

[0008] Furthermore, after obtaining the files of invalid users in their personal storage space on the group cloud drive, the user data processing method includes: The frequency of other users' operations on a file is obtained. If the frequency of other users' operations on a file exceeds a preset operation frequency threshold, a retention tag is added to the file. Accordingly, the process of migrating invalid users' files from their personal storage space in the group cloud drive to the archive storage space in the archive cloud drive includes: Determine whether files belonging to invalid users in their personal storage space within the group cloud drive have a retention tag; When a file does not have a retention tag, the file will be migrated to the archive storage space of the archive drive; When a file has a reserved tag, the file with the reserved tag is copied first, and then the copied file is migrated to the archive storage space of the archive cloud drive.

[0009] Furthermore, after migrating the files of invalid users in the group cloud drive's personal storage space to the archive storage space of the archive cloud drive, the user data processing method includes: Obtain the organizational structure information of invalid users, and determine the administrator of the group to which the invalid user belongs based on the organizational structure information of the invalid user; A file migration list is generated based on the file migration results, and the file migration list is sent to the administrators of the groups to which the invalid users belong.

[0010] Furthermore, after migrating the files of invalid users in the group cloud drive's personal storage space to the archive storage space of the archive cloud drive, the user data processing method includes: Get the file list of the group cloud drive and the file block list of the group cloud drive data center. Based on the comparison between the file list of the group cloud drive and the file block list of the group cloud drive data center, determine whether there are redundant file blocks in the group cloud drive data center. If redundant file blocks exist in the group cloud storage data center, delete the redundant file blocks in the group cloud storage data center.

[0011] Furthermore, after migrating the files from the archive storage space to the returning user's group cloud drive personal storage space, the user data processing method includes: Obtain the file list of the archive cloud drive and the file block list of the archive cloud drive data center. Based on the comparison between the file list of the archive cloud drive and the file block list of the archive cloud drive data center, determine whether there are redundant file blocks in the archive cloud drive data center. If redundant file blocks exist in the archive cloud storage data center, delete the redundant file blocks in the archive cloud storage data center.

[0012] Secondly, embodiments of the present invention also provide a user data processing apparatus, comprising: The first determination module is used to obtain the log file of the group cloud drive, determine the time node of the last cloud drive operation performed by the user based on the log file of the group cloud drive, calculate the time interval between the time node of the last cloud drive operation performed by the user and the current time node, and determine the user as an invalid user when the time interval is greater than a preset time interval threshold. The account creation module is used to obtain the account information of invalid users, create archive accounts in the archive cloud drive based on the invalid user account information, and allocate archive storage space for the archive accounts in the archive cloud drive; The first migration module is used to retrieve the files of invalid users in the group cloud drive's personal storage space and migrate the files of invalid users in the group cloud drive's personal storage space to the archive storage space of the archive cloud drive; The second determination module is used to determine whether the user who sent the login request is an invalid user when a login request for the group cloud drive is received. If the user who sent the login request is an invalid user, the invalid user is determined to be a returning user. The account search module is used to obtain the account information of returning users, search for archived accounts with the same account information in the archived cloud drive based on the returning users' account information, and determine the archived storage space based on the archived accounts; The second migration module is used to obtain the files in the archive storage space and migrate the files in the archive storage space to the group cloud drive personal storage space of the returning user.

[0013] Thirdly, embodiments of the present invention also provide a cloud storage service, comprising: One or more processors; Storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the user data processing method provided in the above embodiments.

[0014] Fourthly, embodiments of the present invention also provide a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform the user data processing method provided in the above embodiments.

[0015] Compared with existing technologies, the user data processing method, apparatus, cloud storage, and storage medium described in this invention have the following advantages: This invention provides a user data processing method, apparatus, cloud storage, and storage medium. It can determine whether a user is an invalid user based on the time interval between the user's last cloud storage operation and the current time. After a user is determined to be invalid, the invention migrates the invalid user's files from their personal storage space in the group cloud storage to the archive storage space in the archive cloud storage. This reduces the space occupied by invalid user data in the group cloud storage, alleviates the performance pressure on the group cloud storage, and prevents data loss. Furthermore, when an invalid user sends a login request to the group cloud storage, this invention can also migrate files from the archive storage space to the group cloud storage, allowing the user to easily retrieve historical data after returning to their original work group. Attached Figure Description

[0016] The accompanying drawings, which form part of this invention, are used to provide a further understanding of the invention. The illustrative embodiments and descriptions of the invention are used to explain the invention and do not constitute an undue limitation of the invention. In the drawings: Figure 1 A flowchart of the user data processing method described in Embodiment 1 of the present invention is provided; Figure 2 A flowchart of the user data processing method described in Embodiment 2 of the present invention is provided; Figure 3 A flowchart of the user data processing method described in Embodiment 3 of the present invention is provided; Figure 4 A flowchart of the user data processing method described in Embodiment 4 of the present invention is provided; Figure 5 This invention provides a schematic diagram of the user data processing device described in Embodiment 5 of the present invention. Figure 6 The structural diagram of the cloud storage described in Embodiment Six of the present invention is shown. Detailed Implementation

[0017] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are merely illustrative of the invention and not intended to limit it. Furthermore, it should be noted that, for ease of description, the accompanying drawings show only the parts relevant to the present invention, and not all of the structures.

[0018] Example 1 Figure 1 The flowchart of the user data processing method provided in Embodiment 1 of the present invention specifically includes the following steps: Step 110: Obtain the log file of the group cloud drive, determine the time node of the last cloud drive operation performed by the user based on the log file of the group cloud drive, calculate the time interval between the time node of the last cloud drive operation performed by the user and the current time node, and determine the user as an invalid user when the time interval is greater than the preset time interval threshold.

[0019] During the operation of the group cloud storage, the log files record the time points when users perform cloud storage operations such as login, file upload, file download, and file preview. When a user has not performed any cloud storage operations for an extended period, it can be inferred that the user may have become an invalid user due to job transfer, resignation, or other abnormal circumstances. In this case, the data stored by that user in the group cloud storage will occupy the group cloud storage space and increase the performance pressure on the group cloud storage during operation. Therefore, this embodiment calculates the time interval between the user's last cloud storage operation and the current time point, thereby determining the user's type based on the time interval between the user's last cloud storage operation and the current time point.

[0020] Because users within different work groups use cloud storage at varying frequencies, group cloud storage administrators can set preset time interval thresholds to determine user types based on their team's needs. When the time interval between a user's last cloud storage operation and the current time exceeds the preset time interval threshold, the user can be identified as an invalid user within that group's cloud storage. This facilitates subsequent migration of data stored by that user within the group's cloud storage, prevents them from consuming storage space, and reduces the performance pressure on the group's cloud storage.

[0021] Step 120: Obtain the account information of invalid users, create an archive account in the archive cloud drive based on the invalid user's account information, and allocate archive storage space for the archive account in the archive cloud drive.

[0022] To reduce the storage costs of invalid user data, administrators can deploy an archive cloud drive, distinct from the group cloud drive, for storing invalid user data. It should be noted that the archive cloud drive should use lower-cost storage devices as the lower-level storage to further reduce the storage costs of invalid user data.

[0023] To facilitate data management within the archive cloud drive, this embodiment, after determining invalid users, should obtain their account information within the group cloud drive. This account information can be the invalid user's account ID, or it can be distinguishable user information based on their department affiliation within the organizational structure and their name. After obtaining the invalid user's account information, the user creation interface of the archive cloud drive can be called to create an archive account with the same account information in the archive cloud drive. Archive storage space should then be allocated to the archive account accordingly to clearly define the storage location of the invalid user's data after migration to the archive cloud drive.

[0024] Step 130: Obtain the files of invalid users in the group cloud drive's personal storage space, and migrate the files of invalid users in the group cloud drive's personal storage space to the archive storage space of the archive cloud drive.

[0025] Typically, administrators of group cloud storage allocate independent personal storage space to each user within the group, allowing users to store their files. Conversely, when a user is deemed invalid, migrating their files from their personal storage space in the group cloud storage to the archive storage space in the archive cloud storage reduces the space occupied by invalid user data, thus preventing it from impacting the group cloud storage's performance during daily use.

[0026] As an optional implementation of this embodiment, since the files generated by users during group collaborative work may contain work content related to other users, in order to avoid affecting the normal work of other users in the group due to the migration of invalid users' files, after migrating the invalid users' files in the group's personal storage space to the archive storage space of the archive cloud drive, the following steps can be added: Obtain the organizational structure information of invalid users, and determine the administrator of the group to which the invalid user belongs based on the organizational structure information of the invalid user; A file migration list is generated based on the file migration results, and the file migration list is sent to the administrators of the groups to which the invalid users belong.

[0027] Since group administrators need to manage and monitor the work progress of all users within the group, after the file migration is completed, the administrator of the group to which the invalid user belongs can be determined based on the invalid user's organizational structure information. A file migration list generated based on the file migration results can then be sent to the administrator. This allows the administrator to clearly identify the exact location of relevant files through the file migration list, facilitating timely retrieval of these files in subsequent work.

[0028] Step 140: When a login request is received from the group cloud drive, determine whether the user who sent the login request is an invalid user. If the user who sent the login request is an invalid user, determine the invalid user as a returning user.

[0029] In actual use, some users in the group may not use the group cloud drive for an extended period due to temporary job transfers or personal health reasons. In such cases, the user will be considered an invalid user and their files will be migrated. To facilitate these users retrieving their migrated files upon returning to normal work, this embodiment will determine the type of user issuing the login request when it is received. If the user issuing the login request is an invalid user, it can be determined that the invalid user has returned to the original group and can be classified as a returning user to facilitate subsequent file retrieval.

[0030] Step 150: Obtain the account information of the returning user, search for the archive account with the same account information in the archive cloud drive based on the returning user's account information, and determine the archive storage space based on the archive account.

[0031] In this embodiment, archive storage space is allocated within the archive drive based on the archive account. Therefore, after an invalid user who has completed the file migration is identified as a returning user, the returning user's account information is obtained. This information is then used as the search criterion to find archive accounts with identical account information within the archive drive. When an archive account with the same account information as the returning user is found, the corresponding archive storage space within the archive drive can be determined based on that account, thus clearly indicating the actual location of the user's files after the migration.

[0032] Step 160: Obtain the files in the archive storage space and migrate the files in the archive storage space to the group cloud drive personal storage space of the returning user.

[0033] When a user logs back into the group cloud drive as a returning user, the group cloud drive will allocate personal storage space for that user. Therefore, after determining the archive storage space, files in the archive storage space can be migrated to the returning user's personal storage space in the group cloud drive for use in subsequent work.

[0034] It should be noted that, in order to avoid redundancy in personal storage space within the group cloud drive, the personal storage space of a returning user in the group cloud drive can be the same as the personal storage space of the user before the user was determined to be an invalid user.

[0035] This embodiment can determine whether a user is an invalid user by the time interval between the last time a user performed a cloud drive operation and the current time. After a user is determined to be invalid, the embodiment can migrate the invalid user's files from their personal storage space in the group cloud drive to the archive storage space in the archive cloud drive. This reduces the space occupied by invalid user data in the group cloud drive, alleviates the performance pressure on the group cloud drive, and prevents data loss. Furthermore, when an invalid user sends a login request to the group cloud drive, this embodiment can locate the corresponding archive storage space in the archive cloud drive based on the user's account information and migrate the files from that archive storage space to the group cloud drive. This allows users to easily retrieve historical data and smoothly resume subsequent work after returning to their original work group.

[0036] In the actual operation of cloud storage, files stored within the cloud storage are first split into file blocks before being stored in the cloud storage data center. Furthermore, to conserve internal space in the data center, those skilled in the art will only retain one file block when multiple file blocks with identical content exist within the data center, and reuse that file block for reading multiple files simultaneously. Therefore, during file migration between group cloud storage and archive cloud storage, redundant file blocks may appear within the data centers of both the group cloud storage and archive cloud storage, resulting in redundant file blocks occupying internal space. To solve this problem, this embodiment can add the following steps after migrating files from invalid users' personal storage space in the group cloud storage to the archive storage space of the archive cloud storage: Get the file list of the group cloud drive and the file block list of the group cloud drive data center. Based on the comparison between the file list of the group cloud drive and the file block list of the group cloud drive data center, determine whether there are redundant file blocks in the group cloud drive data center. If redundant file blocks exist in the group cloud storage data center, delete the redundant file blocks in the group cloud storage data center.

[0037] Typically, cloud storage generates a file list based on file storage conditions and a file block list based on file blocks stored within the cloud storage data center. Each file block in the file block list is also marked according to its mapping to a specific file. Therefore, by comparing the file list of the group cloud storage with the file block list of the group cloud storage data center, it's possible to determine whether file blocks within the group cloud storage data center are associated with files within the group cloud storage. When a file block within the group cloud storage data center is not associated with any file within the group cloud storage, it indicates that the file corresponding to that block has been migrated to the archive cloud storage during the file migration process of an invalid user. Therefore, this file block can be identified as redundant and deleted, thereby reducing the number of file blocks within the group cloud storage data center and increasing the available storage space.

[0038] Accordingly, to increase the available storage space within the archive cloud storage data center, this embodiment can add the following steps after migrating the files from the archive storage space to the returning user's group cloud storage personal storage space: Obtain the file list of the archive cloud drive and the file block list of the archive cloud drive data center. Based on the comparison between the file list of the archive cloud drive and the file block list of the archive cloud drive data center, determine whether there are redundant file blocks in the archive cloud drive data center. If redundant file blocks exist in the archive cloud storage data center, delete the redundant file blocks in the archive cloud storage data center.

[0039] Similar to the group cloud storage approach, comparing the file list of the archive cloud storage with the file block list of the archive cloud storage data center allows for the identification of file blocks within the archive cloud storage data center. This facilitates the filtering and deletion of redundant file blocks within the archive cloud storage data center, enabling the archive cloud storage to store more invalid user data.

[0040] Example 2 Figure 2 This is a flowchart of a user data processing method provided in Embodiment 2 of the present invention. This embodiment is an optimization based on the above embodiment. In this embodiment, after determining that the user is an invalid user, the following step can be added: Add an archive mark to invalid users in the user list of the group cloud drive; Accordingly, after determining the invalid user as a returning user, the following steps can be added: Remove the archive tag for returning users from the user list of the group cloud drive.

[0041] Specifically, the user data processing method provided in this embodiment includes: Step 210: Obtain the log file of the group cloud drive, determine the time node of the last cloud drive operation performed by the user based on the log file of the group cloud drive, calculate the time interval between the time node of the last cloud drive operation performed by the user and the current time node, and determine the user as an invalid user when the time interval is greater than a preset time interval threshold, and add an archive mark to the invalid user in the user list of the group cloud drive.

[0042] When a user in a group is determined to be invalid, in order to facilitate other users in the group to identify the user and to make it easier for the group administrator to flexibly allocate the work tasks of users in the group, this embodiment can add an archive mark to the invalid user in the user list of the group cloud drive, thereby distinguishing the invalid user from other users by using the archive mark.

[0043] For example, the archive marker described in this embodiment can be a text label or a graphic label displayed in the user list. When a graphic label is selected as the archive marker, the display brightness or transparency of the graphic label can be adjusted according to the duration for which the user has been determined to be an invalid user, so that other users can determine the duration for which the user has been determined to be an invalid user based on the display of the archive marker.

[0044] Step 220: Obtain the account information of invalid users, create an archive account in the archive cloud drive based on the invalid user's account information, and allocate archive storage space for the archive account in the archive cloud drive.

[0045] Step 230: Obtain the files of invalid users in the group cloud drive's personal storage space, and migrate the files of invalid users in the group cloud drive's personal storage space to the archive storage space of the archive cloud drive.

[0046] Step 240: When a login request is received from the group cloud drive, determine whether the user who sent the login request is an invalid user. If the user who sent the login request is an invalid user, determine the invalid user as a returning user and remove the archive mark of the returning user from the user list of the group cloud drive.

[0047] Since invalid users will participate in the group's subsequent daily work after being identified as returning users, in order to avoid confusion about the identity of returning users due to the existence of the archive tag, this embodiment will remove the archive tag from the returning user's user list in the group's cloud drive, so that the returning user's display in the user list is the same as other users.

[0048] Step 250: Obtain the account information of the returning user, search for the archive account with the same account information in the archive cloud drive based on the returning user's account information, and determine the archive storage space based on the archive account.

[0049] Step 260: Obtain the files in the archive storage space and migrate the files in the archive storage space to the group cloud drive personal storage space of the returning user.

[0050] This embodiment adds the following steps after determining that a user is invalid: adding an archive marker to the invalid user's user list in the group cloud drive. Then, after determining that the invalid user is a returning user, it adds the following step: removing the archive marker from the returning user's user list in the group cloud drive. This archive marker allows the user's identity to be clearly identified in the user list, facilitating identification and differentiation by other users and group administrators.

[0051] Example 3 Figure 3 This is a flowchart of a user data processing method provided in Embodiment 3 of the present invention. This embodiment is an optimization based on the above embodiment. In this embodiment, after obtaining the files of invalid users in their personal storage space on the group cloud drive, the following steps can be added: Obtain the file's last modification date, and determine the file's historical modification order and modification time interval based on the file's last modification date; The frequency of invalid user operations on a file is obtained, and a correction coefficient is generated based on the frequency of invalid user operations on the file. The magnitude of the correction coefficient is directly proportional to the frequency of invalid user operations on the file. The migration order of files is determined based on their historical modification order, and the migration time interval is determined based on the modification time interval and correction factor.

[0052] Accordingly, the step of migrating invalid users' files from their personal storage space in the group cloud drive to the archive storage space in the archive cloud drive should be specifically optimized as follows: Files belonging to invalid users in the group cloud drive's personal storage space will be migrated to the archive storage space of the archive cloud drive based on the migration order and migration time interval.

[0053] Specifically, the user data processing method provided in this embodiment includes: Step 310: Obtain the log file of the group cloud drive, determine the time node of the last cloud drive operation performed by the user based on the log file of the group cloud drive, calculate the time interval between the time node of the last cloud drive operation performed by the user and the current time node, and determine the user as an invalid user when the time interval is greater than a preset time interval threshold.

[0054] Step 320: Obtain the account information of invalid users, create an archive account in the archive cloud drive based on the invalid user's account information, and allocate archive storage space for the archive account in the archive cloud drive.

[0055] Step 330: Obtain the files in the group cloud drive's personal storage space belonging to invalid users; obtain the last modification date of the files; determine the historical modification order and modification time interval of the files based on the last modification date; obtain the frequency of invalid user operations on the files; generate a correction coefficient based on the frequency of invalid user operations, and the magnitude of the correction coefficient is directly proportional to the frequency of invalid user operations on the files; determine the migration order of the files based on the historical modification order; determine the migration time interval of the files based on the modification time interval and the correction coefficient; migrate the files in the group cloud drive's personal storage space belonging to invalid users to the archive storage space of the archive cloud drive based on the migration order and the migration time interval.

[0056] In actual work, users typically store relevant files in their personal cloud storage space according to their work progress. Therefore, the last modification date of files in the cloud storage reflects the order in which they were stored. Correspondingly, when a user performs frequent operations on a particular file in the cloud storage, it usually indicates that the file is of high importance and its content is closely related to the actual work content.

[0057] Therefore, in order to reasonably plan the file migration order and file migration time interval of invalid users, this embodiment can obtain the final modification date of each file through the metadata of each file after obtaining the files of invalid users in the group cloud drive personal storage space, and obtain the operation frequency of invalid users on each file in the group cloud drive personal storage space through the log file of the group cloud drive.

[0058] Files in the group cloud drive's individual storage space can be sorted by their last modification date to determine their historical modification order. Since this order reflects the order in which files were added to the group cloud drive, and this order reflects the work content of inactive users at different times, the migration order can be determined based on the historical modification order. Files reflecting earlier work content of inactive users will be migrated to the archive cloud drive first, followed by files reflecting more recent work content, thus minimizing the impact of file migration on the work of other users in the group.

[0059] Correspondingly, since the magnitude of the correction coefficient is directly proportional to the frequency of invalid user operations on a file, the correction coefficient can reflect the importance of the file. During file migration, the modification time interval can be calculated by using the last modification dates of two adjacent files in the file's historical modification sequence. The migration time interval is then determined by multiplying this modification time interval by the correction coefficient, thus linking the migration time interval to the file's importance. This extends the retention time of highly important files in the group's cloud storage, making them more convenient for other users within the group.

[0060] Step 340: When a login request is received from the group cloud drive, determine whether the user who sent the login request is an invalid user. If the user who sent the login request is an invalid user, determine the invalid user as a returning user.

[0061] Step 350: Obtain the account information of the returning user, search for the archive account with the same account information in the archive cloud drive based on the returning user's account information, and determine the archive storage space based on the archive account.

[0062] Step 360: Obtain the files in the archive storage space and migrate the files in the archive storage space to the group cloud drive personal storage space of the returning user.

[0063] This embodiment adds the following steps after retrieving files from invalid users' personal storage spaces in the group cloud drive: obtaining the file's last modification date; determining the file's historical modification order and modification time interval based on the last modification date; obtaining the frequency of invalid user operations on the file; generating a correction coefficient based on the frequency of invalid user operations, where the magnitude of the correction coefficient is proportional to the frequency of invalid user operations; determining the file migration order based on the file's historical modification order; and determining the file migration time interval based on the file's modification time interval and correction coefficient. The files from invalid users' personal storage spaces in the group cloud drive are then migrated to the archive storage space of the archive cloud drive. Specifically, this is optimized by migrating files from invalid users' personal storage spaces in the group cloud drive to the archive storage space of the archive cloud drive according to the file migration order and migration time interval. This allows the file migration action from the group cloud drive to the archive cloud drive to be correlated with the invalid user's historical work progress and the importance of the files, improving the rationality of the file migration work and avoiding undue impact on other users in the group.

[0064] Example 4 Figure 4 This is a flowchart of a user data processing method provided in Embodiment 4 of the present invention. This embodiment is an optimization based on the above embodiments. In this embodiment, after obtaining the files of invalid users in their personal storage space on the group cloud drive, the following steps can be added: The frequency of other users' operations on a file is obtained. If the frequency of other users' operations on a file exceeds a preset operation frequency threshold, a retention tag is added to the file. Accordingly, the step of migrating invalid users' files from their personal storage space in the group cloud drive to the archive storage space in the archive cloud drive should be specifically optimized as follows: Determine whether files belonging to invalid users in their personal storage space within the group cloud drive have a retention tag; When a file does not have a retention tag, the file will be migrated to the archive storage space of the archive drive; When a file has a reserved tag, the file with the reserved tag is copied first, and then the copied file is migrated to the archive storage space of the archive cloud drive.

[0065] Specifically, the user data processing method provided in this embodiment includes: Step 410: Obtain the log file of the group cloud drive, determine the time node of the last cloud drive operation performed by the user based on the log file of the group cloud drive, calculate the time interval between the time node of the last cloud drive operation performed by the user and the current time node, and determine the user as an invalid user when the time interval is greater than a preset time interval threshold.

[0066] Step 420: Obtain the account information of invalid users, create an archive account in the archive cloud drive based on the invalid user's account information, and allocate archive storage space for the archive account in the archive cloud drive.

[0067] Step 430: Obtain the files in the group cloud drive's personal storage space of the invalid user, obtain the operation frequency of the files by other users, and add a retention tag to the files when the operation frequency of other users of the files is greater than a preset operation frequency threshold; determine whether the files in the group cloud drive's personal storage space of the invalid user have a retention tag; when the files do not have a retention tag, migrate the files to the archive storage space of the archive cloud drive; when the files have a retention tag, first copy the files with the retention tag, and then migrate the copied files to the archive storage space of the archive cloud drive.

[0068] In collaborative work within a group, to improve efficiency, users may set some files in their personal storage space as shared files or grant them online collaborative editing permissions, allowing other group members to view or modify the files. Therefore, files stored by an invalid user in the group's cloud drive may still be accessed by other users in the group. When other users in the group operate on a file stored by an invalid user in the group's cloud drive, it proves that the content of that file is related to the current work of other users. If the file is migrated because its owner is deemed an invalid user, it will directly affect the normal work of other users.

[0069] To address the above scenario, this embodiment obtains the frequency of other users' operations on the file before migrating files belonging to invalid users. When the frequency of other users' operations on the file exceeds the operation frequency threshold preset by the group administrator, it can be determined that the current file is related to the work of other users. In this case, a retention tag should be added to the file to distinguish it from files belonging to invalid users.

[0070] Accordingly, when migrating files from invalid users, it should be determined whether the files in the invalid user's personal storage space in the group cloud drive have a retention tag. If a file does not have a retention tag, it proves that the file is not directly related to the work of other users in the group. In this case, the file can be migrated to the archive storage space of the archive cloud drive, thereby reducing the storage burden of the group cloud drive. If a file has a retention tag, the file with the retention tag should be copied first, and then the copied file should be migrated to the archive storage space of the archive cloud drive. At this time, the copy of the file will remain in the group storage space of the group cloud drive for other members to access and operate.

[0071] For example, the retention tag described in this embodiment can be an coded tag added to the file metadata, or a text tag or graphic tag added to the file name. When adding a retention tag, the content of the retention tag can also be generated based on the file owner (i.e., invalid user), the frequent operator of the file, or the group affiliation of the file owner, so as to trace the source of files stored within the group storage space.

[0072] Step 440: When a login request is received from the group cloud drive, determine whether the user who sent the login request is an invalid user. If the user who sent the login request is an invalid user, determine the invalid user as a returning user.

[0073] Step 450: Obtain the account information of the returning user, search for the archive account with the same account information in the archive cloud drive based on the returning user's account information, and determine the archive storage space based on the archive account.

[0074] Step 460: Obtain the files in the archive storage space and migrate the files in the archive storage space to the group cloud drive personal storage space of the returning user.

[0075] This embodiment adds the following steps after obtaining files from invalid users' personal storage spaces in the group cloud drive: It obtains the frequency of other users' operations on the files; when the frequency of other users' operations on the files exceeds a preset operation frequency threshold, it adds a retention tag to the files. The files from invalid users' personal storage spaces in the group cloud drive are then migrated to the archive storage space of the archive cloud drive. Specifically, the optimization is as follows: it determines whether the files from invalid users' personal storage spaces in the group cloud drive have a retention tag; when the files do not have a retention tag, it migrates the files to the archive storage space of the archive cloud drive; when the files have a retention tag, it first copies the files with the retention tag, and then migrates the copied files to the archive storage space of the archive cloud drive. This allows it to determine whether a file is related to other users' work by using the frequency of other users' operations on the file, and when the file is related to other users' work, it stores a copy of the file within the group cloud drive for easy access by other users.

[0076] Example 5 Figure 5 This is a schematic diagram of the user data processing device provided in Embodiment 5 of the present invention, as shown below. Figure 5 As shown, the device includes: The first determination module 510 is used to obtain the log file of the group cloud drive, determine the time node of the last cloud drive operation performed by the user based on the log file of the group cloud drive, calculate the time interval between the time node of the last cloud drive operation performed by the user and the current time node, and determine the user as an invalid user when the time interval is greater than a preset time interval threshold. The account creation module 520 is used to obtain the account information of invalid users, create archive accounts in the archive cloud drive based on the invalid user account information, and allocate archive storage space for the archive accounts in the archive cloud drive; The first migration module 530 is used to obtain the files of invalid users in the group cloud drive personal storage space and migrate the files of invalid users in the group cloud drive personal storage space to the archive storage space of the archive cloud drive. The second determination module 540 is used to determine whether the user who sent the login request is an invalid user when a login request for the group cloud drive is received. If the user who sent the login request is an invalid user, the invalid user is determined to be a returning user. The account lookup module 550 is used to obtain the account information of returning users, search for archived accounts with the same account information in the archived cloud drive based on the account information of returning users, and determine the archived storage space based on the archived accounts; The second migration module 560 is used to obtain the files in the archive storage space and migrate the files in the archive storage space to the group cloud drive personal storage space of the returning user.

[0077] The user data processing device provided in this embodiment can determine the type of user through the first determination module and the second determination module, create an archive account in the archive cloud drive and allocate archive storage space through the account creation module, and search for modules in the archive cloud drive through the account search module. It can also migrate files between the group cloud drive and the archive cloud drive through the first migration module and the second migration module. Therefore, it can avoid invalid user data occupying the storage space of the group cloud drive, reduce the performance pressure of the group cloud drive, and facilitate invalid users to retrieve their original data in a timely manner after returning to normal work.

[0078] Based on the above embodiments, the first determination module includes: The tag addition unit is used to add archive tags to invalid users in the user list of the group cloud drive.

[0079] Based on the above embodiments, the second determination module includes: The tag removal unit is used to remove the archive tags of returning users from the user list of the group cloud drive.

[0080] Based on the above embodiments, the device includes: The list sending module is used to obtain the organizational structure information of invalid users, determine the administrator of the group to which the invalid users belong based on the organizational structure information of the invalid users, generate a file migration list based on the file migration results, and send the file migration list to the administrator of the group to which the invalid users belong.

[0081] Based on the above embodiments, the first migration module includes: The migration planning unit is used to obtain the final modification date of the file, determine the historical modification order and modification time interval of the file based on the final modification date; obtain the frequency of invalid user operations on the file, generate a correction coefficient based on the frequency of invalid user operations, and the magnitude of the correction coefficient is proportional to the frequency of invalid user operations on the file; determine the migration order of the file based on the historical modification order, and determine the migration time interval of the file based on the modification time interval and the correction coefficient. The rule execution unit is used to migrate files from invalid users' personal storage space in the group cloud drive to the archive storage space of the archive cloud drive according to the file migration order and file migration time interval.

[0082] Based on the above embodiments, the first migration module further includes: The frequency judgment unit is used to obtain the frequency of other users' operations on the file, and add a retention tag to the file when the frequency of other users' operations on the file is greater than a preset operation frequency threshold; The judgmental migration unit is used to determine whether files in the personal storage space of the group cloud drive of invalid users have a retention tag; when the file does not have a retention tag, the file is migrated to the archive storage space of the archive cloud drive; when the file has a retention tag, the file with the retention tag is copied first, and then the copied file is migrated to the archive storage space of the archive cloud drive.

[0083] Based on the above embodiments, the device further includes: The group cloud drive cleanup module is used to obtain the file list of the group cloud drive and the file block list of the group cloud drive data center. Based on the comparison between the file list of the group cloud drive and the file block list of the group cloud drive data center, it determines whether there are redundant file blocks in the group cloud drive data center. When there are redundant file blocks in the group cloud drive data center, the redundant file blocks in the group cloud drive data center are deleted. The archive cloud drive cleanup module is used to obtain the file list of the archive cloud drive and the file block list of the archive cloud drive data center. Based on the comparison between the file list of the archive cloud drive and the file block list of the archive cloud drive data center, it determines whether there are redundant file blocks in the archive cloud drive data center. When redundant file blocks exist in the archive cloud drive data center, the redundant file blocks in the archive cloud drive data center are deleted.

[0084] The user data processing apparatus provided in the embodiments of the present invention can execute the user data processing method provided in any embodiment of the present invention, and has the corresponding functional modules and beneficial effects for executing the method.

[0085] Example 6 Figure 6 This is a schematic diagram of the structure of a cloud storage device provided in Embodiment Six of the present invention. Figure 6A block diagram is shown of an exemplary cloud storage 12 suitable for implementing embodiments of the present invention. Figure 6 The cloud drive 12 shown is merely an example and should not impose any limitations on the functionality and scope of use of the embodiments of the present invention.

[0086] like Figure 6 As shown, the cloud storage 12 is presented in the form of a general-purpose computing device. The components of the cloud storage 12 may include, but are not limited to: one or more processors or processing units 16, system memory 28, and a bus 18 connecting different system components (including system memory 28 and processing unit 16).

[0087] Bus 18 represents one or more of several bus architectures, including a memory bus or memory controller, a peripheral bus, a graphics acceleration port, a processor, or a local bus using any of the various bus architectures. For example, these architectures include, but are not limited to, the Industry Standard Architecture (ISA) bus, the Micro Channel Architecture (MAC) bus, the Enhanced ISA bus, the Video Electronics Standards Association (VESA) local bus, and the Peripheral Component Interconnect (PCI) bus.

[0088] Cloud storage 12 typically includes a variety of computer system readable media. These media can be any available media that can be accessed by cloud storage 12, including volatile and non-volatile media, removable and non-removable media.

[0089] System memory 28 may include computer system readable media in the form of volatile memory, such as random access memory (RAM) 30 and / or cache 32. Cloud drive 12 may further include other removable / non-removable, volatile / non-volatile computer system storage media. By way of example only, storage system 34 may be used to read and write non-removable, non-volatile magnetic media (… Figure 6 Not shown; usually referred to as a "hard drive"). Although Figure 6 As not shown, disk drives for reading and writing to removable non-volatile disks (e.g., "floppy disks") and optical disc drives for reading and writing to removable non-volatile optical discs (e.g., CD-ROMs, DVD-ROMs, or other optical media) may be provided. In these cases, each drive may be connected to bus 18 via one or more data media interfaces. System memory 28 may include at least one program product having a set (e.g., at least one) of program modules configured to perform the functions of the embodiments of the present invention.

[0090] A program / utility 40 having a set (at least one) of program modules 42 may be stored, for example, in system memory 28. Such program modules 42 include, but are not limited to, an operating system, one or more application programs, other program modules, and program data. Each or some combination of these examples may include an implementation of a network environment. Program modules 42 typically perform the functions and / or methods described in the embodiments of the present invention.

[0091] The cloud drive 12 can also communicate with one or more external devices 14 (e.g., keyboard, pointing device, display 24, etc.), and with one or more devices that enable users to interact with the cloud drive 12, and / or with any device that enables the cloud drive 12 to communicate with one or more other computing devices (e.g., network card, modem, etc.). This communication can be performed via input / output (I / O) interface 22. Furthermore, the cloud drive 12 can also communicate with one or more networks (e.g., local area network (LAN), wide area network (WAN), and / or public networks, such as the Internet) via network adapter 20. As shown, network adapter 20 communicates with other modules of the cloud drive 12 via bus 18. It should be understood that, although not shown in the figure, other hardware and / or software modules can be used in conjunction with the cloud drive 12, including but not limited to: microcode, device drivers, redundant processing units, external disk drive arrays, RAID systems, tape drives, and data backup storage systems.

[0092] The processing unit 16 executes various functional applications and data processing by running programs stored in the system memory 28, such as implementing the user data processing method provided in the embodiments of the present invention.

[0093] Example 7 Embodiment 7 of the present invention also provides a storage medium containing computer-executable instructions, which, when executed by a computer processor, are used to perform any of the user data processing methods provided in the above embodiments.

[0094] The computer storage medium of this invention can be any combination of one or more computer-readable media. A computer-readable medium can be a computer-readable signal medium or a computer-readable storage medium. A computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of computer-readable storage media (a non-exhaustive list) include: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In this document, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.

[0095] Computer-readable signal media may include data signals propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. Computer-readable signal media may also be any computer-readable medium other than computer-readable storage media, capable of sending, propagating, or transmitting programs for use by or in connection with an instruction execution system, apparatus, or device.

[0096] Program code contained on a computer-readable medium may be transmitted using any suitable medium, including, but not limited to, wireless, wire, optical fiber, RF, etc., or any suitable combination thereof.

[0097] Computer program code for performing the operations of this invention can be written in one or more programming languages ​​or a combination thereof, including object-oriented programming languages ​​such as Java, Smalltalk, and C++, as well as conventional procedural programming languages ​​such as "C" or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).

[0098] Note that the above description is merely a preferred embodiment of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of the present invention, the scope of which is determined by the scope of the appended claims.

Claims

1. A user data processing method, characterized in that... include: Obtain the log file of the group cloud drive, determine the time node of the last cloud drive operation performed by the user based on the log file of the group cloud drive, calculate the time interval between the time node of the last cloud drive operation performed by the user and the current time node, and determine the user as an invalid user when the time interval is greater than a preset time interval threshold; Obtain invalid user account information, create archive accounts in the archive cloud drive based on invalid user account information, and allocate archive storage space for archive accounts in the archive cloud drive; Retrieve files from invalid users' personal storage space in the group cloud drive, and migrate these files to the archive storage space in the archive cloud drive. When a login request is received from the group cloud storage, it is determined whether the user who sent the login request is an invalid user. If the user who sent the login request is an invalid user, the invalid user is determined to be a returning user. Obtain the account information of returning users, search for archived accounts with the same account information in the archived cloud drive based on the returning users' account information, and determine the archived storage space based on the archived accounts; Retrieve the files from the archive storage space and migrate them to the returning user's group cloud drive personal storage space.

2. The user data processing method according to claim 1, characterized in that: After determining that the user is an invalid user, the user data processing method includes: Add an archive mark to invalid users in the user list of the group cloud drive; After determining the invalid user as a returning user, the user data processing method further includes: Remove the archive tag for returning users from the user list of the group cloud drive.

3. The user data processing method according to claim 1, characterized in that: After retrieving files from invalid users' personal storage spaces in the group cloud drive, the user data processing method includes: Obtain the file's last modification date, and determine the file's historical modification order and modification time interval based on the file's last modification date; The frequency of invalid user operations on a file is obtained, and a correction coefficient is generated based on the frequency of invalid user operations on the file. The magnitude of the correction coefficient is directly proportional to the frequency of invalid user operations on the file. The migration order of files is determined based on their historical modification order, and the migration interval is determined based on the modification interval and correction factor. The process of migrating files from invalid users' personal storage space in the group cloud drive to the archive storage space in the archive cloud drive includes: Files belonging to invalid users in the group cloud drive's personal storage space will be migrated to the archive storage space of the archive cloud drive based on the migration order and migration time interval.

4. The user data processing method according to claim 1, characterized in that: After retrieving files from invalid users' personal storage spaces in the group cloud drive, the user data processing method includes: The frequency of other users' operations on a file is obtained. If the frequency of other users' operations on a file exceeds a preset operation frequency threshold, a retention tag is added to the file. The process of migrating files from invalid users' personal storage space in the group cloud drive to the archive storage space in the archive cloud drive includes: Determine whether files belonging to invalid users in their personal storage space within the group cloud drive have a retention tag; When a file does not have a retention tag, the file will be migrated to the archive storage space of the archive drive; When a file has a reserved tag, the file with the reserved tag is copied first, and then the copied file is migrated to the archive storage space of the archive cloud drive.

5. The user data processing method according to claim 1, characterized in that: After migrating the files of invalid users in their personal storage space in the group cloud drive to the archive storage space in the archive cloud drive, the user data processing method includes: Obtain the organizational structure information of invalid users, and determine the administrator of the group to which the invalid user belongs based on the organizational structure information of the invalid user; A file migration list is generated based on the file migration results, and the file migration list is sent to the administrators of the groups to which the invalid users belong.

6. The user data processing method according to claim 1, characterized in that: After migrating the files of invalid users in their personal storage space in the group cloud drive to the archive storage space in the archive cloud drive, the user data processing method includes: Get the file list of the group cloud drive and the file block list of the group cloud drive data center. Based on the comparison between the file list of the group cloud drive and the file block list of the group cloud drive data center, determine whether there are redundant file blocks in the group cloud drive data center. If redundant file blocks exist in the group cloud storage data center, delete the redundant file blocks in the group cloud storage data center.

7. The user data processing method according to claim 1, characterized in that: After migrating files from the archive storage space to the returning user's group cloud drive personal storage space, the user data processing method includes: Obtain the file list of the archive cloud drive and the file block list of the archive cloud drive data center. Based on the comparison between the file list of the archive cloud drive and the file block list of the archive cloud drive data center, determine whether there are redundant file blocks in the archive cloud drive data center. If redundant file blocks exist in the archive cloud storage data center, delete the redundant file blocks in the archive cloud storage data center.

8. A user data processing device, characterized in that, include: The first determination module is used to obtain the log file of the group cloud drive, determine the time node of the last cloud drive operation performed by the user based on the log file of the group cloud drive, calculate the time interval between the time node of the last cloud drive operation performed by the user and the current time node, and determine the user as an invalid user when the time interval is greater than a preset time interval threshold. The account creation module is used to obtain the account information of invalid users, create archive accounts in the archive cloud drive based on the invalid user account information, and allocate archive storage space for the archive accounts in the archive cloud drive; The first migration module is used to retrieve the files of invalid users in the group cloud drive's personal storage space and migrate the files of invalid users in the group cloud drive's personal storage space to the archive storage space of the archive cloud drive; The second determination module is used to determine whether the user who sent the login request is an invalid user when a login request for the group cloud drive is received. If the user who sent the login request is an invalid user, the invalid user is determined to be a returning user. The account search module is used to obtain the account information of returning users, search for archived accounts with the same account information in the archived cloud drive based on the returning users' account information, and determine the archived storage space based on the archived accounts; The second migration module is used to obtain the files in the archive storage space and migrate the files in the archive storage space to the group cloud drive personal storage space of the returning user.

9. A cloud storage service, characterized in that, The cloud storage includes: One or more processors; Storage device for storing one or more programs; When the one or more programs are executed by the one or more processors, the one or more processors implement the user data processing method as described in any one of claims 1-7.

10. A storage medium comprising computer-executable instructions, which, when executed by a computer processor, are used to perform the user data processing method as described in any one of claims 1-7.