Backups for Inactive UUIDs are not cleaned

Currently, if an account contains multiple Assignable UUIDs which contain backups, those backups are not cleaned by JetBackup 5 for the inactive/unassigned UUID. We've received some interest in clearing the storage space used by these backups. 

To clear the backups used by an inactive UUID, please use the following steps:

 

1. Verify you're using the latest JetBackup v5.3.9 or above.

jetbackup5 --version

2. Find the inactive UUID using listAssignableAccounts for the selected user. The inactive UUID will show active:   (null/empty) .

For more information, see our listAssignableAccounts API documentation

jetbackup5api -F listAssignableAccounts -D "account=USER123"

 

[root@qa4 ~]# jetbackup5api -F listAssignableAccounts -D "account=USER123"
  success: 1
  message:
  system:
  data:
    accounts:
      0:
        _id: 65dfbb4d92e47adbb5061659
        uuid: ea93ababfb31b562cf24ac01dd5f960441f70713
        active:
        last_active: 2024-08-07T22:12:23+00:00
        created: 2024-02-28T23:01:33+00:00
        total_backups: 17
      1:
        _id: 66904efda72464da05039342
        uuid: e4064db053205416ae23ef9efd84d18e3bf632df
        active: 1
        last_active:
        created: 2024-07-11T21:30:34+00:00
        total_backups: 26
    total: 2

3. Run the deleteAccountSnapshots call for the inactive _id  and approve the operation by passing approve as "true". In the previous example, the ID was "65dfbb4d92e47adbb5061659".

For more information on options including date range or destination filtering, see our deleteAccountSnapshots API documentation

WARNING: The command below will PERMANENTLY DELETE ALL snapshots for a specified User ID regardless of destination or schedule. Please verify the UUID is correct as this action is irreversible.  

 

[root@qa4 ~]# jetbackup5api -F deleteAccountSnapshots -D "user=65dfbb4d92e47adbb5061659&approve=false"
success: 1
message: User snapshots marked for delete successfully
<snipped>
data:
marked_snapshots: 17

4. The "marked_snapshots" total will indicate how many snapshots were successfully marked for deletion.

 

If you have further questions, please reach out by opening a ticket and we'd be happy to help!

  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

JetBackup 5 for Linux - Disk Usage/Inode Usage shows N/A

Since JetBackup 5 for Linux does not have an associated panel to gather account information,...

What does Incremental Backup mean?

Incremental backups will only copy files that have changed or are new since the last full backup....

Rsync Backing Up Account Fails - Error: overflow

There have been some reports of accounts failing to back up with errors similar to this:[ERROR]...

Database Backup Errors: only_full_group_by

While performing a Database Backup, you may encounter the following error: Expression #1 of...

Exclude List for FTP/SFTP Destinations does not work

FTP/SFTP destinations are known to have limitations with their commands and file pathing...