-
Notifications
You must be signed in to change notification settings - Fork 3
Closed
Description
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?!?