eazyBackup Knowledge Base
HomeLoginSupportContact
  • eazyBackup Knowledge Base
  • Guides
    • Getting Started Guide
    • Creating Protected Items
    • How to Backup Windows Network Shares and UNC Paths
    • How to Restore Files and Folders
    • Disk Image Backup Guide
    • Disk Image Backup Restore Guide
    • How to backup to a local storage vault (External or Internal Hard Drive)
    • Microsoft 365 Cloud Backup Guide
    • Microsoft 365 Cloud Backup Restore
    • Seed Load Walkthrough
    • eazyBackup Control Panel
    • Delete backup snapshots to reduce Storage Vault size
    • Kroll Pharmacy Management Database Backup
    • How to Backup Dentrix Database to the Cloud
    • How to Backup Patterson Eaglesoft Dental Software
    • Hyper-V Virtual Machine Backup Walkthrough
    • Storage Vault Usage Report
    • Linux Installation Guide (Debian, Ubuntu)
    • Two-Factor Authentication for Backup Accounts
    • Securing your Backup against Ransomware
    • How to move a backup to a new computer
  • Documentation
    • Add and Rename Storage Vaults
    • Available Storage Locations
    • How to Run Manual Backup
    • Backing up Windows Network Shares and UNC Paths
    • Browse Job History
    • Cancel a Running Backup Job
    • Commands
    • Backup Report Email Address
    • Custom Email Reports
    • Deleting a Protected Item
    • Disk Image Backup
    • eazyBackup Software Structure
    • Error “Access to the cloud file is denied” backing up OneDrive
    • Retention Concept
    • Confirm EFS keys are Exported (Windows EFS)
    • Data Encryption – Understanding Our AES-256 Encryption & Key Management
    • eazyBackup Chunking Overview
    • eazyBackup Chunking and Deduplication
    • Storage Vaults
    • Re-scan Unchanged Files
    • Required URLs and Ports for eazyBackup
    • Setting up a New Backup Account (license) in My Dashboard
    • Before and After Commands
    • eazyBackup Hotfix Install
    • Default File / Folder Exclusions From Backup
    • Restore from Deleted Protected Item
    • Random Job Delay – Protected Item Schedule
    • Copy a Protected Item Configuration to New Device
    • Manage Vaults on Protected Items – Add/Remove/Update
    • How to Remove a Registered Device
    • Retention Configuration and Cleanup
    • macOS Installation
    • Windows Installation
    • Linux (Other Distribution)
    • Linux (Red Hat Enterprise Linux (RHEL), CentOS)
    • Linux NAS (Synology, QNAP)
    • “Application-Aware Writer” Backups
    • “Microsoft Exchange Server” Backup
    • “Microsoft Hyper-V” Backup
    • “Microsoft SQL Server” Backup
    • “MySQL” Backup
    • “Program Output” items
    • “Windows Server System State” Backup
    • “Windows System Backup”
    • Silent installation for RMM (Windows advanced)
    • Microsoft 365 Backup
    • VMware vSphere Backup
  • Troubleshooting
    • Cannot proceed – another task needs to finish using the Storage Vault first
    • Change of hardware causes registration dialog to appear
    • Diagnosing Slow Backup Jobs
    • Error “EFS-encrypted files may be unusable once restored”
    • Error “Media is write protected” backing up OneDrive with VSS
    • Error “operation not permitted” macOS
    • Error “The target path ‘X:\WindowsImageBackup’ already exists – please safely remove this direct...
    • Error backing up item exit status 3 Couldn’t create virtual device set: Unknown error 0x80770005
    • Found packs in index but not appearing on disk. Reindex needed
    • Inactive / Abandoned “Running” Jobs
    • Lost connection to local service
    • Lstat: CreateFile \\?\UNC\ backup: Access is denied.
    • Mount path conflict: Can’t mount path inside real directory
    • OneDrive error “The tag present in the reparse point buffer is invalid”
    • Out of memory
    • Shared Memory Provider: Could not open a connection to SQL Server
    • VSS Error: Device is not ready
    • VSS Error: Couldn’t take snapshot. The shadow copy provider had an unexpected error while trying ...
    • Windows Backup encountered an error when writing data to the backup target.
    • Error “Access is denied” when backing up files and folders on Windows
    • Error “local error: tls: record overflow”
    • Microsoft SQL Server backup encountered a VDI error
    • Network Connectivity Errors
    • How to Locate All EFS Encrypted Files for Windows 10 and Server
    • Couldn’t save folder details: fs.TempFile: Access is denied
    • Couldn’t save Office 365 data for account – The requested user is invalid
    • WARNING Data error (cyclic redundancy check) occurred inside byte range
    • Set-Disk : Access Denied During Disk Image Backup
    • The System State encountered a problem: exit status 0xfffffffc
    • Runtime: VirtualAlloc of xx bytes failed with errno=1455 fatal error: out of memory
    • Disk Image Backup – Checking if device is ready: DeviceIoControl: The request could not be performed
    • Checking if device xx is ready: DeviceIoControl: The request failed due to a fatal device hardware..
    • x509 Certificate has expired or is not yet valid
    • Couldn’t load tree/xyz for subdirectory: tree/xyz not present in any index
    • Optimizing snapshot: not present in any index
    • Reading subdirectories of – Open: /Files/Documents/ operation not permitted
    • file truncated (expected xxxx bytes, got 0)
    • WARNING: Node (xxxx) filename.ext’ collision at position xxxx
    • How to easily find disks with read / write errors in Windows
    • Multiple connections to a server or shared resource error
    • Application failed to start because no Qt platform plugin could be initialized
    • OneDrive The cloud operation is not supported on a read-only volume
    • Hyper-V Error: Backing up exit status 1 (skipping)
  • FAQs
    • Account Devices and Billing
    • How can I restore my files to a new computer?
    • How to reset a backup account password
    • Can’t login to eazyBackup – Login information doesn’t work
    • Cloud Storage and Online Backup Service for Protected Health Information
    • How to cancel your eazyBackup subscription
  • eazyBackup Rebranding
    • Backup Client and Control Panel Branding
    • White Label Email Configuration
  • e3 Object Storage
    • e3 Object Storage Pricing FAQs
    • Manage Billing
    • Delete Account
    • How to configure QNAP Hybrid Backup Sync to S3 Compatible Object Storage
    • How to Use Arq Backup with eazyBackup e3 Object Storage
    • How to use Synology Hyper Backup with eazyBackup e3 Object Storage
    • How to use Duplicati with eazyBackup e3 Object Storage
    • How to use rclone with eazyBackup e3 S3 Compatible Object Storage
    • Understanding and Creating a Basic e3 Bucket Policy
    • Creating an e3 Bucket Policy to Allow Specific File Extensions
    • e3 Bucket Lifecycle Rules (Automatic Object Expiration)
Powered by GitBook
On this page

Was this helpful?

  1. e3 Object Storage

e3 Bucket Lifecycle Rules (Automatic Object Expiration)

In this guide we explain how to use bucket lifecycle rules with the e3 object storage service so you can automatically manage the object lifecycle. We'll create an example rule to expire (delete) objects that are older than a specified number of days.

What are Bucket Lifecycle Rules?

Lifecycle rules allow you to automate tasks for objects stored in your e3 buckets. By defining lifecycle rules, you can tell the e3 service to automatically perform actions, such as expiring old objects, based on their age or other criteria. This can help you save on storage costs and keep your data organized without manual intervention.

Key Components of an Object Expiration Rule

When creating a rule to expire objects, you'll define a few key pieces of information:

  • ID: A unique name to identify your rule (e.g., "ExpireOldLogFiles").

  • Status: Set to "Enabled" to activate the rule, or "Disabled" to keep it inactive.

  • Filter: Specifies which objects the rule applies to.

    • Prefix: You can apply your rule to all objects in the bucket by setting Prefix to an empty string (""), or you can target objects in a specific "folder" or with a certain name pattern (e.g., "logs/", "archive/").

  • Expiration Action: This is the part that tells the e3 service to delete objects.

    • Days: You specify the number of days after an object's creation date when it should be considered expired and marked for deletion.

How e3 Processes Lifecycle Rules

The eazyBackup e3 object storage service has an automated process that periodically checks for objects that meet the criteria of your rules. When an object is eligible for expiration (e.g., it's older than the specified number of days), the service will schedule it for deletion. This process typically runs daily.

Creating a Lifecycle Rule: Expire Objects After X Days

Lifecycle configurations are applied to a bucket using S3-compatible tools, such as the AWS CLI. These tools usually expect the configuration to be provided in a JSON file. At the time of writing, lifecycle policies cannot be configued from our e3 Storage Dashboard.

Let's create a rule to expire all objects in your-bucket-name after X_DAYS (e.g., 30, 90, 365 days).

  1. Replace Placeholders:

    • X_DAYS with the desired number of days for objects to live before expiration.

    • your-rule-id with a descriptive ID for your rule (e.g., "ExpireAfter90Days").

  2. Create a JSON Configuration File: Create a file (e.g., lifecycle-expire-config.json) with the following content:

{
  "Rules": [
    {
      "ID": "your-rule-id",
      "Filter": {
        "Prefix": ""  
      },
      "Status": "Enabled",
      "Expiration": {
        "Days": X_DAYS 
      }
    }
  ]
}

Example for 90 days:

{
  "Rules": [
    {
      "ID": "ExpireObjectsAfter90Days",
      "Filter": {
        "Prefix": ""
      },
      "Status": "Enabled",
      "Expiration": {
        "Days": 90
      }
    }
  ]
}

Applying the Lifecycle Configuration

You can apply this configuration to your bucket using an S3-compatible tool like the AWS CLI, configured with your eazyBackup e3 service endpoint and credentials.

  1. Save your JSON configuration lifecycle.json.

  2. Use a command similar to the following, replacing placeholders:

aws s3api put-bucket-lifecycle-configuration \
    --bucket your-bucket-name \
    --lifecycle-configuration file://lifecycle.json \
    --endpoint-url <e3_endpoint_url> \
    --profile <e3_profile>
  • Replace your-bucket-name with the actual name of your bucket.

  • Replace lifecycle.json with the path to your JSON file.

  • Replace <e3_endpoint_url> with the service endpoint for eazyBackup e3 found on the Access Keys page of the Cloud Storage Dashboard.

  • Replace <e3_profile> with your AWS CLI profile name if you use one.

Important Considerations:

  • From Creation Date: The Days for expiration are counted from the time an object was originally created (uploaded) in the bucket.

  • Periodic Processing: Object expiration is not instantaneous once an object reaches its expiry age. The e3 service processes lifecycle rules periodically (usually daily). An object might remain in the bucket for a short period after its official expiry time until the next processing cycle.

  • Versioning: If versioning is enabled on your bucket, the Expiration action for current object versions typically creates a "delete marker." You would then need separate rules (e.g., NoncurrentVersionExpiration) to manage the deletion of old, non-current versions and the delete markers themselves if you want to reclaim storage from them. If versioning is not enabled, expired objects are permanently deleted.

  • Testing: Test your lifecycle rules with non-critical data or on a test bucket first to ensure they respond as expected.

  • Modifying Rules: To change a lifecycle rule, you would typically modify your JSON configuration file and just re-apply it using the same put-bucket-lifecycle-configuration command. This overwrites the existing lifecycle configuration on the bucket. To remove lifecycle rules, you can use the delete-bucket-lifecycle command.

Using lifecycle rules will help you manage your data within the e3 storage service.

PreviousCreating an e3 Bucket Policy to Allow Specific File Extensions

Last updated 4 days ago

Was this helpful?