@click.command('backup')
@click.argument('site')
def backup_site(site):
 from bench.utils import get_sites, backup_site
 if (not (site in get_sites(bench_path='.'))):
  print 'site not found'
  sys.exit(1)
 backup_site(site, bench_path='.')

@ click . command ( 'backup' ) @ click . argument ( 'site' ) def backup_site ( site ) : from bench . utils import get_sites , backup_site if ( not ( site in get_sites ( bench_path = '.' ) ) ) : print 'site not found' sys . exit ( 1 ) backup_site ( site , bench_path = '.' )
backup site .