Garbage collect backups

If ther are backups made to the same folder, need to remove any files from that folder that are not included in this backup.

Some initial testing, needs more.
This commit is contained in:
Martin Sumner 2018-09-07 14:21:01 +01:00
parent b99cde9599
commit 91f751ddc6
3 changed files with 41 additions and 11 deletions

View file

@ -284,7 +284,13 @@
{info, "Journal backup completed to path=~s with file_count=~w"}},
{"I0021",
{info, "Ingoring filename=~s with SQN=~w and JournalSQN=~w"}},
{"I0022",
{info, "Removing filename=~s from backup folder as not in backup"}},
{"I0023",
{info, "Backup commencing into folder with ~w existing files"}},
{"I0024",
{info, "Prompted roll at NewSQN=~w"}},
{"IC001",
{info, "Closed for reason ~w so maybe leaving garbage"}},
{"IC002",