Closed (outdated)
Project:
Backup and Migrate
Version:
7.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
1 May 2012 at 08:16 UTC
Updated:
28 Sep 2017 at 19:22 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
mile23I'm seeing this, too.
Comment #2
aitala commentedThis is also happening in the new 7.x-2.4 version as well for both manual and scheduled backups.
Eric
Comment #3
mermentau commentedI'm getting the same behavior as described in #2.
Comment #4
magnusk commentedThe function remove_expired_backups() in includes/schedules.inc is responsible for deleting expired backup files, but it ignores the corresponding .info files.
There are several functions involved in creating and reading metadata from .info files: save_file_info(), create_info_file(), and load_files_info() in includes/destinations.inc
Comment #5
magnusk commentedLeaving orphaned files does not seem minor.
What is the purpose of storing such metadata in these .info files?
Comment #6
mile23I agree not minor, but the files are small.
Also if you look at one of the .info files you'll see it's useful information that can't be easily retrieved from inside a gzip file. And I suppose it gets stored as an .info file because Drupal can easily read and write that format.
Comment #7
mile23Here's a patch. It seems to work for file destinations. I don't have the resources at the moment to do a thorough test.
Comment #8
attheshow commentedI'm also experiencing the problem with the .info files piling up on the server.
Comment #9
Rory commentedPatch at #7 works for me. When I manually delete files listed in destinations, the .info files get removed as expected.
B&M 7.x-2.4
Drupal 7.14
Comment #10
mile23Marking RTBC, so we can hopefully get some movement on this. :-)
Comment #11
rodmaz commentedAlso reporting the same behavior as #2.
Comment #12
Rory commented@rodmaz - are you reporting this before or after applying the patch at #7?
Comment #13
ronan commentedThis should be fixed in the latest dev. Thanks all.
Comment #14
mile23Ossum, thanks.
Comment #16
WebSinPat commentedin case there's anyone else who isn't ready yet to update to the latest releases and just wants a patch. (the patch in #7 is not complete and only works for manual deletion not automatic deletion.) here is a backport of the complete fix that works for me with 7.x-2.4.
Comment #17
webservant316 commentedHey I am using Backup and Migrate 7.x-2.8 and still have .info files. Re-opening this ticket.
Comment #18
webservant316 commentedComment #19
couturier commentedThe 7.x-2.x branch is being deprecated. Please upgrade to the latest 7.x-3.2 version and see if it addresses your issue.