2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-10 09:02:10 +00:00

Merge branch 'staging' into v5.x

This commit is contained in:
Ankush Menat 2022-07-31 22:30:03 +05:30
commit 65d8b9ead9
2 changed files with 0 additions and 15 deletions

View File

@ -73,7 +73,6 @@ bench_command.add_command(switch_to_develop)
from bench.commands.utils import ( from bench.commands.utils import (
backup_all_sites, backup_all_sites,
backup_site,
bench_src, bench_src,
clear_command_cache, clear_command_cache,
disable_production, disable_production,
@ -105,7 +104,6 @@ bench_command.add_command(set_redis_cache_host)
bench_command.add_command(set_redis_queue_host) bench_command.add_command(set_redis_queue_host)
bench_command.add_command(set_redis_socketio_host) bench_command.add_command(set_redis_socketio_host)
bench_command.add_command(download_translations) bench_command.add_command(download_translations)
bench_command.add_command(backup_site)
bench_command.add_command(backup_all_sites) bench_command.add_command(backup_all_sites)
bench_command.add_command(renew_lets_encrypt) bench_command.add_command(renew_lets_encrypt)
bench_command.add_command(disable_production) bench_command.add_command(disable_production)

View File

@ -1,6 +1,5 @@
# imports - standard imports # imports - standard imports
import os import os
import sys
# imports - third party imports # imports - third party imports
import click import click
@ -135,18 +134,6 @@ def renew_lets_encrypt():
renew_certs() renew_certs()
@click.command("backup", help="Backup single site")
@click.argument("site")
def backup_site(site):
from bench.bench import Bench
from bench.utils.system import backup_site
if site not in Bench(".").sites:
print(f"Site `{site}` not found")
sys.exit(1)
backup_site(site, bench_path=".")
@click.command("backup-all-sites", help="Backup all sites in current bench") @click.command("backup-all-sites", help="Backup all sites in current bench")
def backup_all_sites(): def backup_all_sites():
from bench.utils.system import backup_all_sites from bench.utils.system import backup_all_sites