| 1 |
""" |
| 2 |
Django signals for dbbackup operations. |
| 3 |
|
| 4 |
These signals allow users to hook into the backup and restore process |
| 5 |
to perform custom actions before and after backup/restore operations. |
| 6 |
""" |
| 7 |
|
| 8 |
import django.dispatch |
| 9 |
|
| 10 |
# Database backup signals |
| 11 |
pre_backup = django.dispatch.Signal() |
| 12 |
post_backup = django.dispatch.Signal() |
| 13 |
|
| 14 |
# Database restore signals |
| 15 |
pre_restore = django.dispatch.Signal() |
| 16 |
post_restore = django.dispatch.Signal() |
| 17 |
|
| 18 |
# Media backup signals |
| 19 |
pre_media_backup = django.dispatch.Signal() |
| 20 |
post_media_backup = django.dispatch.Signal() |
| 21 |
|
| 22 |
# Media restore signals |
| 23 |
pre_media_restore = django.dispatch.Signal() |
| 24 |
post_media_restore = django.dispatch.Signal() |