Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problems with duplicate backups when the source has an incrementing number, updated > hourly #27

Open
YesThatAllen opened this issue May 2, 2016 · 3 comments
Assignees

Comments

@YesThatAllen
Copy link
Member

the matching of the files in the BackupMinder archive doesn't catch entries, resulting in extra files being left in the archive folder, in addition to the desired monthly copy

@garybourgeois
Copy link
Contributor

garybourgeois commented Jun 11, 2016

it's a regex thing

Except BackupMinder doesn't use regex, it simply goes through a list of files in the source path, and checks if "string" in "filename". An underscore (or any character, for that matter) should have no bearing on it, as there's no real parsing or regex compilation happening.

@garybourgeois
Copy link
Contributor

garybourgeois commented Jun 11, 2016

Also forgot to mention:

This is the file we're watching: South_Calgary_Oral_

No, it's not. What he's set up to look for is .mpbak. In either case, looking at the logs, BackupMinder is getting called a lot. If the launchd is set to trigger on file/path changes, and those backups are happening often, well then yeah, we're going to archive a lot.

Also - and I'm just trying to remember desired function here - is there anything that notes how/when to trim the archives? If not, and there's only 9 items (as specified in his screenshot of the settings) left in the source path, then we're functioning properly as far as I can tell, just getting called several times per day because of how the .mpbak files are being written.

@YesThatAllen YesThatAllen changed the title problems removing files when the source ends in _ problems with duplicate backups when the source has an incrementing number, updated > hourly Nov 3, 2016
@YesThatAllen
Copy link
Member Author

Upon further review of the source and backups, two facts are of note:

  • Yes, MacPractice is touching the source backup multiple times per hour
  • An incremental number is appended to the end of each backup -1, -2, -3 and so on

The source looks like

 14 Oct 22:31 South_Calgary_Oral_-2016.10.14-6.1.42-580.mpbak
 17 Oct 22:27 South_Calgary_Oral_-2016.10.17-6.1.42-584.mpbak
 18 Oct 22:32 South_Calgary_Oral_-2016.10.18-6.1.42-586.mpbak
 19 Oct 22:31 South_Calgary_Oral_-2016.10.19-6.1.42-588.mpbak
 20 Oct 22:34 South_Calgary_Oral_-2016.10.20-6.1.42-590.mpbak
 21 Oct 22:38 South_Calgary_Oral_-2016.10.21-6.1.42-592.mpbak
 24 Oct 22:31 South_Calgary_Oral_-2016.10.24-6.1.42-596.mpbak
 25 Oct 22:35 South_Calgary_Oral_-2016.10.25-6.1.42-598.mpbak
 26 Oct 22:40 South_Calgary_Oral_-2016.10.26-6.1.42-600.mpbak

Note that the number increments an average of twice per day

The archive folder, sorted by time instead of file name, looks like this

11 Oct 21:05 South_Calgary_Oral_-2016.10.10-6.1.42-572.mpbak
11 Oct 21:15 South_Calgary_Oral_-2016.10.07-6.1.42-568-2016-10-11.mpbak
11 Oct 22:41 South_Calgary_Oral_-2016.10.10-6.1.42-572-2016-10-11.mpbak
12 Oct 21:04 South_Calgary_Oral_-2016.10.11-6.1.42-574.mpbak
12 Oct 21:16 South_Calgary_Oral_-2016.10.10-6.1.42-572-2016-10-12.mpbak
12 Oct 22:37 South_Calgary_Oral_-2016.10.11-6.1.42-574-2016-10-12.mpbak
13 Oct 21:04 South_Calgary_Oral_-2016.10.12-6.1.42-576.mpbak
13 Oct 21:13 South_Calgary_Oral_-2016.10.11-6.1.42-574-2016-10-13.mpbak
13 Oct 22:35 South_Calgary_Oral_-2016.10.12-6.1.42-576-2016-10-13.mpbak
14 Oct 21:04 South_Calgary_Oral_-2016.10.13-6.1.42-578.mpbak
14 Oct 21:12 South_Calgary_Oral_-2016.10.12-6.1.42-576-2016-10-14.mpbak
14 Oct 22:31 South_Calgary_Oral_-2016.10.13-6.1.42-578-2016-10-14.mpbak
17 Oct 14:37 South_Calgary_Oral_-2016.10.13-6.1.42-578-2016-10-17.mpbak
17 Oct 21:03 South_Calgary_Oral_-2016.10.14-6.1.42-580.mpbak
17 Oct 22:27 South_Calgary_Oral_-2016.10.14-6.1.42-580-2016-10-17.mpbak
18 Oct 21:03 South_Calgary_Oral_-2016.10.17-6.1.42-584.mpbak
18 Oct 21:12 South_Calgary_Oral_-2016.10.14-6.1.42-580-2016-10-18.mpbak
18 Oct 22:32 South_Calgary_Oral_-2016.10.17-6.1.42-584-2016-10-18.mpbak
19 Oct 21:03 South_Calgary_Oral_-2016.10.18-6.1.42-586.mpbak
19 Oct 21:12 South_Calgary_Oral_-2016.10.17-6.1.42-584-2016-10-19.mpbak
19 Oct 22:31 South_Calgary_Oral_-2016.10.18-6.1.42-586-2016-10-19.mpbak
20 Oct 21:03 South_Calgary_Oral_-2016.10.19-6.1.42-588.mpbak
20 Oct 21:13 South_Calgary_Oral_-2016.10.18-6.1.42-586-2016-10-20.mpbak
20 Oct 22:34 South_Calgary_Oral_-2016.10.19-6.1.42-588-2016-10-20.mpbak
21 Oct 21:03 South_Calgary_Oral_-2016.10.20-6.1.42-590.mpbak
21 Oct 21:14 South_Calgary_Oral_-2016.10.19-6.1.42-588-2016-10-21.mpbak
21 Oct 22:38 South_Calgary_Oral_-2016.10.20-6.1.42-590-2016-10-21.mpbak
24 Oct 16:58 South_Calgary_Oral_-2016.10.20-6.1.42-590-2016-10-24.mpbak
24 Oct 21:03 South_Calgary_Oral_-2016.10.21-6.1.42-592.mpbak
24 Oct 22:31 South_Calgary_Oral_-2016.10.21-6.1.42-592-2016-10-24.mpbak
25 Oct 21:03 South_Calgary_Oral_-2016.10.24-6.1.42-596.mpbak
25 Oct 21:14 South_Calgary_Oral_-2016.10.21-6.1.42-592-2016-10-25.mpbak
25 Oct 22:35 South_Calgary_Oral_-2016.10.24-6.1.42-596-2016-10-25.mpbak
26 Oct 21:03 South_Calgary_Oral_-2016.10.25-6.1.42-598.mpbak
26 Oct 21:14 South_Calgary_Oral_-2016.10.24-6.1.42-596-2016-10-26.mpbak
26 Oct 22:40 South_Calgary_Oral_-2016.10.25-6.1.42-598-2016-10-26.mpbak

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants