I haven't changed the backup system for months because I thought it was working correctly.

Today I went to retrieve a backup from my list, and sadly (for me), the backup I expected to find did not exist.

The daily schedule which I have set up is as follows:
scheduled backups

Basically, there should be 5 backups taken each day. Each should be kept each day. After 30 days, each of the 5 backups should be cycled.

Unfortunately, when I look at what files are actually there, the following is what I see. Basically only one of the backups is kept each day:
saved files

It looks like the french, dutch and thai databases are being backed up fine. But they are getting thrown away next day!

This is a shared multisite database. Is that the reason?

Or did I misunderstand something?

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

drupalshrek created an issue. See original summary.

fox_01’s picture

for me smart delete will also delte too many files

CvW’s picture

Within each destination directory the backup/migrate module only looks at the time the backup file was saved, and keeps only one per day. So if you save 5 backups for different databases in the same directory, the only one of them is kept.
The easiest way to solve this is to save each database to a different destination directory. E.g. lingopolo.com-shared to private://backup_migrate/scheduled/shared, lingopolo.com-french to private://backup_migrate/scheduled/french, etc.

Darren Oh’s picture

Title: Smart backup deleting too many files » Delete removes files from other backup schedules
Status: Active » Closed (works as designed)