Backup-data does not delete old backup

Hello everyone.
I have a small problem, I explain:
I have configured a backup for my server. In it I have a 1Tb USB disk configured as a backup disk.
Duplicity backup, with a copy every day, retention of 7 days and full copy on Sunday.

After setting up the backup twice, I’ve run into the same problem: It doesn’t delete the old backup.
I leave you the log

Backup: backup
Backup started at 2022-04-10 01:00:02
Pre backup scripts status: SUCCESS
--------------[ Backup Statistics ]--------------
StartTime 1649545262.59 (Sun Apr 10 01:01:02 2022)
EndTime 1649578245.39 (Sun Apr 10 10:10:45 2022)
ElapsedTime 32982.81 (9 hours 9 minutes 42.81 seconds)
SourceFiles 248863
SourceFileSize 456743196141 (425 GB)
NewFiles 248863
NewFileSize 456743196141 (425 GB)
DeletedFiles 0
ChangedFiles 0
ChangedFileSize 0 (0 bytes)
ChangedDeltaSize 0 (0 bytes)
DeltaEntries 248863
RawDeltaSize 456306336980 (425 GB)
TotalDestinationSizeChange 447076020313 (416 GB)
Errors 0
-------------------------------------------------

Local and Remote metadata are synchronized, no sync needed.
Last full backup date: Sun Apr 10 01:01:02 2022
There are backup set(s) at time(s):
Sun Apr  3 01:00:47 2022
Which can't be deleted because newer sets depend on them.
No old backup sets found, nothing deleted.
Action 'backup-data-duplicity backup': SUCCESS
Post backup scripts status: SUCCESS
Backup status: SUCCESS
Backup ended at 2022-04-10 10:20:30
Time elapsed: 9 hours, 20 minutes, 28 seconds

Disk Usage:
      Size       Used  Available     Use%
 916.74 GB  838.73 GB   31.42 GB   91.49%

Thanks for your help

Duplicity can’t delete the last full backup because the newer incremental backups depend on it.
It will be deleted when the Saturday incremental backup is 7 days old.

You could set backup retention to 1 day so it should remove the last full backup.

To remove old backups, you may also use command line:

3 Likes

Thank you!
I just changed it. I’m going to try it.

1 Like