diff --git a/frappe/patches/4_0/private_backups.py b/frappe/patches/4_0/private_backups.py new file mode 100644 index 0000000000..c4526072a9 --- /dev/null +++ b/frappe/patches/4_0/private_backups.py @@ -0,0 +1,11 @@ +# Copyright (c) 2013, Web Notes Technologies Pvt. Ltd. and Contributors +# MIT License. See license.txt + +from __future__ import unicode_literals +import frappe +from frappe.installer import make_site_dirs + +def execute(): + make_site_dirs() + if frappe.local.conf.backup and frappe.local.conf.backup.startswith("public"): + raise Exception, "Backups path in conf set to public directory"