Need to download backup, backup table is empty

Hi there,

I need to download backup by the table is empty, I tried to make bench update through terminal but it gave this error:

Usage: bench backup [OPTIONS] SITE

Error: Missing argument “site”.

thanks,

@Mahdi_Bukhamseen,

you will need to add your site name to take the backup. To get the site name you can check the /sites directory or check /sites/currentsite.txt file

e.g. bench backup your_site_name

Hi makarand,

Thanks for reply,

I added site but still give me error!

here is the dialog
/home/frappe/frappe-bench/sites/site1.local/private/backups$ bench backup site1.local
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 11, in
load_entry_point(‘bench’, ‘console_scripts’, ‘bench’)()
File “/ho
me/frappe/.bench/bench/cli.py”, line 40, in cli
bench_command()
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 716, in call
return self.main(*args, **kwargs)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 696, in main
rv = self.invoke(ctx)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/usr/local/lib/python2.7/dist-packages/click/core.py”, line 534, in invoke
return callback(*args, **kwargs)
File “/home/frappe/.bench/bench/commands/utils.py”, line 106, in backup_site
if not site in get_sites(bench_path=‘.’):
File “/home/frappe/.bench/bench/utils.py”, line 175, in get_sites
sites = [site for site in os.listdir(sites_dir)
OSError: [Errno 2] No such file or directory: ‘./sites’

use the bench backup command from /home/frappe/frappe-bench