2
0
mirror of https://github.com/frappe/bench.git synced 2024-11-11 15:51:03 +00:00

Fix backup for v5

This commit is contained in:
Pratik Vyas 2015-04-02 13:21:24 +05:30
parent f301ba49d2
commit ae6d4eee99

View File

@ -310,8 +310,11 @@ def update_requirements(bench='.'):
exec_cmd("{pip} install -q -r {req_file}".format(pip=pip, req_file=req_file))
def backup_site(site, bench='.'):
exec_cmd("{frappe} --backup {site}".format(frappe=get_frappe(bench=bench), site=site),
cwd=os.path.join(bench, 'sites'))
if FRAPPE_VERSION == 4:
exec_cmd("{frappe} --backup {site}".format(frappe=get_frappe(bench=bench), site=site),
cwd=os.path.join(bench, 'sites'))
else:
run_frappe_cmd('--site {site} backup'.format(site=site), bench=bench)
def backup_all_sites(bench='.'):
for site in get_sites(bench=bench):