Skip to content

Store/find BackupRun in database... #17

@jedie

Description

@jedie

BackupRun stores name + datetime for every run:

class BackupRun(models.Model):

The datetime will be saved with microseconds, but the default SUB_DIR_FORMATTER is without microseconds:

# datetime.strftime() formatter to create the sub directory.

Finding BackupRun entry from a given filesystem path is "fragile".

What if the user changed SUB_DIR_FORMATTER ?

Solution: Always insert BackupRun.pk into sub dir name?!?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions