Patent ID: 11899544
Assignee: EMC IP HOLDING COMPANY LLC
Field: Computer technology (Electrical engineering)
Classification: CPC G | IPC G

Claim 16:
17. An apparatus comprising:
at least one memory storing computer program code;
at least one processor coupled to the at least one memory, the at least one memory and the at least one processor being configured to cause the apparatus:
to intercept a user request to initiate a snapshot restore operation on a file system of a local storage system, wherein the file system comprises one or more stub files that are indicative of locations of cloud objects comprising files that were previously sent from the local storage system to a cloud storage platform;
prior to the snapshot restore operation being performed, to create a current snapshot of the file system;
to obtain an indication that the file system was successfully restored on the local storage system; and
to use the current snapshot to perform a synchronization operation, wherein the synchronization operation deletes one or more orphan cloud objects in the cloud storage platform that resulted from the snapshot restore operation, wherein the synchronization operation comprises: (i) looping through one or more previous snapshots of the file system based on respective creation times associated with the one or more previous snapshots of the file system, wherein the looping for a given one of the previous snapshots comprises determining whether or not the time the stub file corresponding to a given one of the cloud objects was deleted occurred within the time between the snapshot that was used to restore the file system and the snapshot having the latest creation time relative to the snapshot that was used to restore the file system and the snapshot; and (ii) deleting the given one of the cloud objects from the cloud storage platform based on a result of the looping.