mirror of
https://github.com/eduardogsilva/routerfleet.git
synced 2025-07-21 03:14:23 +02:00
Perform backup tasks
This commit is contained in:
parent
a12a126d38
commit
aaed53ec5f
8 changed files with 189 additions and 10 deletions
|
@ -26,7 +26,7 @@ class Router(models.Model):
|
|||
monitoring = models.BooleanField(default=True)
|
||||
backup_profile = models.ForeignKey(BackupProfile, on_delete=models.SET_NULL, null=True, blank=True)
|
||||
|
||||
router_type = models.CharField(max_length=100, choices=(('monitoring', 'Monitoring Only'), ('routeros', 'Mikrotik (RouterOS)'), ('openwrt', 'OpenWRT')))
|
||||
router_type = models.CharField(max_length=100, choices=(('monitoring', 'Monitoring Only'), ('routeros', 'Mikrotik (RouterOS)')))
|
||||
enabled = models.BooleanField(default=True)
|
||||
|
||||
updated = models.DateTimeField(auto_now=True)
|
||||
|
@ -43,6 +43,7 @@ class RouterStatus(models.Model):
|
|||
last_status_change = models.DateTimeField(blank=True, null=True)
|
||||
last_backup = models.DateTimeField(blank=True, null=True)
|
||||
last_backup_failed = models.DateTimeField(blank=True, null=True)
|
||||
backup_lock = models.DateTimeField(blank=True, null=True)
|
||||
|
||||
updated = models.DateTimeField(auto_now=True)
|
||||
created = models.DateTimeField(auto_now_add=True)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue