Skip to content

Backup file name without timestamp #2

@philippe-levan

Description

@philippe-levan

It is difficult to recover an old backup in an incremental backup because the backup name changes every day and is not predictable.

Reproduce de issue

  • use kibatic/mysql-backup to backup a mysql docker
  • save the backup is an incremendal backup system (like rdiff-backup for example)
  • try to recover a backup 5 days old

As the file 5 days old is removed and contains a timestamp (with minutes and seconds), I need to guess the file name (unpredictable because of the seconds) to run the recover command.

Solution proposition

In this line, you define the name of the backup with a timestamp.

https://github.com/kibatic/docker-mysql-backup/blob/master/backup-scripts/backup.sh#L16

It would be easier to use if the backup file name was always the same. After that, we don't need the deletion system anymore.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions