Merge pull request #249 from SchrodingersGat/make-backup

Add makefile option for quick backup
This commit is contained in:
Oliver authored and GitHub committed 2019-05-07 08:07:41 +10:00
commit 8477dfbab6
4 files changed
+7 -2

No files matched your search

+1
View File
@@ -61,6 +61,7 @@ urlpatterns = [
url(r'^login/', auth_views.LoginView.as_view(), name='login'), url(r'^login/', auth_views.LoginView.as_view(), name='login'),
url(r'^logout/', auth_views.LogoutView.as_view(template_name='registration/logout.html'), name='logout'), url(r'^logout/', auth_views.LogoutView.as_view(template_name='registration/logout.html'), name='logout'),
url(r'^admin/', admin.site.urls, name='inventree-admin'), url(r'^admin/', admin.site.urls, name='inventree-admin'),
url(r'^qr_code/', include(qr_code_urls, namespace='qr_code')), url(r'^qr_code/', include(qr_code_urls, namespace='qr_code')),
-1
View File
@@ -23,7 +23,6 @@ class EditCompanyForm(HelperForm):
'phone', 'phone',
'email', 'email',
'contact', 'contact',
'image',
'is_customer', 'is_customer',
'is_supplier', 'is_supplier',
'notes' 'notes'
+3
View File
@@ -38,3 +38,6 @@ documentation:
pip install -U -r docs/requirements.txt pip install -U -r docs/requirements.txt
cd docs & make html cd docs & make html
backup:
python InvenTree/manage.py dbbackup
python InvenTree/manage.py mediabackup
+3 -1
View File
@@ -9,4 +9,6 @@ Backup and Restore
InvenTree provides database backup and restore functionality through the `django-dbbackup <https://github.com/django-dbbackup/django-dbbackup>`_ extension. InvenTree provides database backup and restore functionality through the `django-dbbackup <https://github.com/django-dbbackup/django-dbbackup>`_ extension.
This extension allows databas models and uploaded media files to be backed up (and restored) via the command line. This extension allows database models and uploaded media files to be backed up (and restored) via the command line.
In the root InvenTre directory, run ``make backup`` to generate backup files for the database models and media files.