# User-defined retention policies in Cloud Backup

## File and folder backup retention policies

At the last step of the File and Folder Backup wizard, there are new retention policies added.

These policies provide data deletion from the cloud of files that are either old (not changed on the local machine for X days) or do not exist on the machine.

The policy does not touch the data on the local machine. Peculiarities of the policies:

• can be switched on separately or combined

• reflect “natural” retention policies for old and unnecessary (deleted) files and can be used when you want to save only recent versions of files in the cloud

• if a file has versions, the policies remove “all or nothing”

• the policies can be switched only when option “send email reports” is chosen

This is done for safety so customers always know that policies are switched on and what amount of data is deleted from the cloud.

## How it works

• Not changed on the local computer for X days

After file uploading is completed, the next step of OBRM backup session is scanning all the metadata on backed up files in Protect_.db. If modifyDate field for some file corresponds to the condition not changed for (\$X - 3) days, it fills the field notificationUnchangedSentOn with the date when this condition found. The field notificationUnchangedSentOn means, that at the end of the backup job, the name of this file will be included into the special email report (but not more than 50 names totally), which will be sent to the email address, mentioned in Backup Reports section. This report alerts the customer, that these files (and all their versions) will be deleted from the cloud in three days (or later, if the backup job is scheduled for a later time) during the next scheduled backup job. During the next backup job, the client checks if these three days are already passed, and if it is true—deletes the file (and all its versions) from the cloud. If during these three days (or more, if the backup job is scheduled for a later time) the file is modified, the field notificationUnchangedSentOn is cleared.

• Deleted from the local computer, after waiting X days

After file uploading is completed, the next step of OBRM backup session is scanning all the metadata on backed up files in Protect_.db. If the application finds that some files are deleted from the local computer, it fills the field notificationDeletedSentOn with the date when this deletion found (not with the date when a file was in fact deleted). The field notificationDeletedSentOn means, that at the end of the backup job, the name of this file will be included in the special email report (but not more than 50 names totally), which will be send to the email address, mentioned in Backup reports section. This report alerts the customer that these files (and all their versions) will be deleted from the cloud in three days (or later, if the backup job is scheduled for later time) during the next scheduled backup job. During the next backup job, the client checks if three days have already passed, and if this is true—deletes the file (and all its versions) from the cloud. If during these three days (or more, if the backup job scheduled for later time) the file is added to the local computer, the field notificationDeletedSentOn is cleared.

If the retention policy is modified, all the fields notificationDeletedSentOn and notificationUnchangedSentOn for all the files cleared, and no one file is deleted until the updated retention policy conditions are met.

The retention policy will not work for files which (for some reason) have no records in Protect_.db file. For example, the files that had been uploaded to the cloud and then deleted from the local computer. Then OBRM application was uninstalled (Protect_.db file was deleted) and the application was installed again. So, the application has no information about uploaded data to the cloud, which was deleted from the local computer.

## Advanced folder backup retention policies

Two new retention policies were added:

• Move Files To Cloud with X days to delay delete

Corresponds to the older Time-Limited Backup. It deletes files at the chosen folder from the local machine if they were backed up more than X days ago (the last backup date is earlier than X days). If a file is modified within X days prior to the current backup session, it is backed up at the current backup session and the timer resets. Hence, if it is not be backed up within X days between the current backup session and the next backup session, it will be deleted from the local machine.

• Temporary with several options

Deletes files from the cloud (that are included to the chosen folder) that were not modified or not backed up within X days. A customer can choose between modification date and backup date.

## Include subfolders

• no options to choose a single file or several files when configuring Advanced Folder Backup

• no options to exclude the subfolders when a large parent folder is added (then, one needs to Add the needed subfolders to the wizard separately

Hence, Include subfolders was implemented as an option for the customers who want to choose if the retention policy should check its subfolders or operate only on files that are placed directly under the folder.

Include subfolders option determines the choice where to remove, not what to backup.

Example: The following retention policy will backup all files and folders from E:\downloads, but it will delete from the cloud the files which are modified earlier than 10 days ago and are stored under the folder E:\downloads directly. Any files from its subfolders will not be deleted from the cloud.

## Delete file versions

It deletes all file versions, which modification date or backup date older than X days.

But, as OBRM has cache options, it stores baselines and deltas (differential backups from the last full backup of the file).

The versions’ deletion rule is the following: Baseline (B) delta (d) | Threshold (older than X days).

B1 B2 | B3 B4 => B3 B4
B1 d11 d12 | d13 B2 d21 d22 => B1 d13 B2 d21 d22
B1 d11 d12 | B2 d21 d22 => B2 d21 d22
B1 d11 | B2 => B2
B1 d11 d12 d13 | => remove all versions of the file

Skip files modified more than X days ago
If this option is enabled, the files in the added folder or subfolders, which were modified more than X days ago, will not be added to the backup set and backed up.