Clear instructions on how to backup erpnext

Hello i have found some scattered infos about how to backup and restore ERPNext, however none seem up to date or complete


has no mention of how to make the backup files


I am not clear on how to get the site files and can only manage to get a database backup

/usr/local/bin/bench backup-all-sites --with-files
Error: no such option: --with-files

1 Like

@c0mputerking try bench --site [sitename] backup

your backups will be in sites/[sitename]/private/backups

1 Like

Still only seems to backup the database only 1.5M ? need the files too.

*/private/backups# ls -lh
total 3.0M
-rw-r–r-- 1 root root 1.5M Jun 2 20:13 20160602_40246533_database.sql.gz
-rw-r–r-- 1 root root 1.5M Jun 3 02:46 20160603_79245283_database.sql.gz

bench --site [sitename] backup --with-files

2 Likes

Ok thank you i have made some progress however now i cannot not get the restore process right see below … I get error about paypal app so i try to install the paypal app using bench but that does not work either also cannot uninstall the paypal app … argh

NOTE i did run the bench --site [sitename] remove-from-installed-apps frappe_subscription without error the first time but now it gives me an error too (all errors included below)

$
c0mputerking@erpnext-1:~/frappe-bench/sites$ bench --site site1.local migrate
Migrating site1.local
Traceback (most recent call last):
File “/usr/lib/python2.7/runpy.py”, line 162, in _run_module_as_main
main”, fname, loader, pkg_name)
File “/usr/lib/python2.7/runpy.py”, line 72, in _run_code
exec code in run_globals
File “/home/c0mputerking/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 79, in
main()
File “/home/c0mputerking/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 16, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/c0mputerking/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 716, in call
return self.main(*args, **kwargs)
File “/home/c0mputerking/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 696, in main
rv = self.invoke(ctx)
File “/home/c0mputerking/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/c0mputerking/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/c0mputerking/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/c0mputerking/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 534, in invoke
return callback(*args, **kwargs)
File “/home/c0mputerking/frappe-bench/env/local/lib/python2.7/site-packages/click/decorators.py”, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/c0mputerking/frappe-bench/apps/frappe/frappe/commands.py”, line 29, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/c0mputerking/frappe-bench/apps/frappe/frappe/commands.py”, line 202, in migrate
frappe.init(site=site)
File “/home/c0mputerking/frappe-bench/apps/frappe/frappe/init.py”, line 140, in init
setup_module_map()
File “/home/c0mputerking/frappe-bench/apps/frappe/frappe/init.py”, line 741, in setup_module_map
for module in get_module_list(app):
File “/home/c0mputerking/frappe-bench/apps/frappe/frappe/init.py”, line 641, in get_module_list
return get_file_items(os.path.join(os.path.dirname(get_module(app_name).file), “modules.txt”))
File “/home/c0mputerking/frappe-bench/apps/frappe/frappe/init.py”, line 599, in get_module
return importlib.import_module(modulename)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
ImportError: No module named paypal_intergration
c0mputerking@erpnext-1:~/frappe-bench/sites$ bench get-app paypal_intergration https://github.com/frappe/paypal_integration
INFO:bench.app:getting app paypal_intergration
fatal: destination path ‘paypal_intergration’ already exists and is not an empty directory.
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==3.0.0’, ‘console_scripts’, ‘bench’)()
File “/home/c0mputerking/bench-repo/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/c0mputerking/bench-repo/bench/commands/make.py”, line 28, in get_app
get_app(name, git_url, branch=branch)
File “/home/c0mputerking/bench-repo/bench/app.py”, line 55, in get_app
cwd=os.path.join(bench, ‘apps’))
File “/home/c0mputerking/bench-repo/bench/utils.py”, line 100, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: git clone https://github.com/frappe/paypal_integration --origin upstream paypal_intergration
c0mputerking@erpnext-1:~/frappe-bench/sites$ bench --site site1.local uninstall-app paypal_intergration
Traceback (most recent call last):
File “/usr/lib/python2.7/runpy.py”, line 162, in _run_module_as_main
main”, fname, loader, pkg_name)
File “/usr/lib/python2.7/runpy.py”, line 72, in _run_code
exec code in run_globals
File “/home/c0mputerking/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 79, in
main()
File “/home/c0mputerking/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 16, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/c0mputerking/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 716, in call
return self.main(*args, **kwargs)
File “/home/c0mputerking/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 696, in main
rv = self.invoke(ctx)
File “/home/c0mputerking/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/c0mputerking/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/c0mputerking/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/c0mputerking/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 534, in invoke
return callback(*args, **kwargs)
File “/home/c0mputerking/frappe-bench/env/local/lib/python2.7/site-packages/click/decorators.py”, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/c0mputerking/frappe-bench/apps/frappe/frappe/commands.py”, line 29, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/c0mputerking/frappe-bench/apps/frappe/frappe/commands.py”, line 928, in uninstall
frappe.init(site=site)
File “/home/c0mputerking/frappe-bench/apps/frappe/frappe/init.py”, line 140, in init
setup_module_map()
File “/home/c0mputerking/frappe-bench/apps/frappe/frappe/init.py”, line 741, in setup_module_map
for module in get_module_list(app):
File “/home/c0mputerking/frappe-bench/apps/frappe/frappe/init.py”, line 641, in get_module_list
return get_file_items(os.path.join(os.path.dirname(get_module(app_name).file), “modules.txt”))
File “/home/c0mputerking/frappe-bench/apps/frappe/frappe/init.py”, line 599, in get_module
return importlib.import_module(modulename)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
ImportError: No module named paypal_intergration

bench --site site1.local remove-from-installed-apps frappe_subscription
Traceback (most recent call last):
File “/usr/lib/python2.7/runpy.py”, line 162, in _run_module_as_main
main”, fname, loader, pkg_name)
File “/usr/lib/python2.7/runpy.py”, line 72, in _run_code
exec code in run_globals
File “/home/c0mputerking/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 79, in
main()
File “/home/c0mputerking/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 16, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/c0mputerking/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 716, in call
return self.main(*args, **kwargs)
File “/home/c0mputerking/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 696, in main
rv = self.invoke(ctx)
File “/home/c0mputerking/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/c0mputerking/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/c0mputerking/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/c0mputerking/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 534, in invoke
return callback(*args, **kwargs)
File “/home/c0mputerking/frappe-bench/env/local/lib/python2.7/site-packages/click/decorators.py”, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/c0mputerking/frappe-bench/apps/frappe/frappe/commands.py”, line 29, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/c0mputerking/frappe-bench/apps/frappe/frappe/commands.py”, line 914, in remove_from_installed_apps
frappe.init(site=site)
File “/home/c0mputerking/frappe-bench/apps/frappe/frappe/init.py”, line 140, in init
setup_module_map()
File “/home/c0mputerking/frappe-bench/apps/frappe/frappe/init.py”, line 741, in setup_module_map
for module in get_module_list(app):
File “/home/c0mputerking/frappe-bench/apps/frappe/frappe/init.py”, line 641, in get_module_list
return get_file_items(os.path.join(os.path.dirname(get_module(app_name).file), “modules.txt”))
File “/home/c0mputerking/frappe-bench/apps/frappe/frappe/init.py”, line 599, in get_module
return importlib.import_module(modulename)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
ImportError: No module named paypal_intergration

Either you lost network, or github was acting up at this point.

Try again

Tried again but still not working … i get a build error highlighted here in bold, the first time i try to install paypal, and the one further below with --origin upstream on all subsequent tries

root@erp-1:/home/c0mputerking# bench get-app paypal_intergration https://github.com/frappe/paypal_integration
INFO:bench.app:getting app paypal_intergration
Cloning into ‘paypal_intergration’…
remote: Counting objects: 543, done.
remote: Total 543 (delta 0), reused 0 (delta 0), pack-reused 543
Receiving objects: 100% (543/543), 4.30 MiB | 2.02 MiB/s, done.
Resolving deltas: 100% (283/283), done.
Checking connectivity… done.
installing paypal_intergration
INFO:bench.app:installing paypal_intergration
Traceback (most recent call last):
** File “/usr/lib/python2.7/runpy.py”, line 162, in _run_module_as_main**
** “main”, fname, loader, pkg_name)**
** File “/usr/lib/python2.7/runpy.py”, line 72, in _run_code**
** exec code in run_globals**
** File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 79, in **
** main()**
** File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 16, in main**
** click.Group(commands=commands)(prog_name=‘bench’)**
** File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 716, in call**
** return self.main(args, kwargs)
** File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 696, in main
*
** rv = self.invoke(ctx)**
** File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1060, in invoke**
** return _process_result(sub_ctx.command.invoke(sub_ctx))**
** File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1060, in invoke**
** return _process_result(sub_ctx.command.invoke(sub_ctx))**
** File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 889, in invoke**
** return ctx.invoke(self.callback, ctx.params)
** File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 534, in invoke**
** return callback(args, kwargs)
** File “/home/frappe/frappe-bench/apps/frappe/frappe/commands.py”, line 246, in build
*
** frappe.init(’’)**
** File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 140, in init**
** setup_module_map()**
** File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 741, in setup_module_map**
** for module in get_module_list(app):**
** File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 641, in get_module_list**
** return get_file_items(os.path.join(os.path.dirname(get_module(app_name).file), “modules.txt”))**
** File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 599, in get_module**
** return importlib.import_module(modulename)**
** File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module**
** import(name)**
ImportError: No module named paypal_intergration
Traceback (most recent call last):
** File “/usr/local/bin/bench”, line 9, in **
** load_entry_point(‘bench==3.0.0’, ‘console_scripts’, ‘bench’)()**
** File “/home/frappe/bench-repo/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-repo/bench/commands/make.py”, line 28, in get_app
*
** get_app(name, git_url, branch=branch)**
** File “/home/frappe/bench-repo/bench/app.py”, line 59, in get_app**
** build_assets(bench=bench)**
** File “/home/frappe/bench-repo/bench/utils.py”, line 140, in build_assets**
** run_frappe_cmd(‘build’, bench=bench)**
** File “/home/frappe/bench-repo/bench/utils.py”, line 491, in run_frappe_cmd**
** raise CommandFailedError(args)**
bench.utils.CommandFailedError: (‘build’,)

root@erp-1:/home/c0mputerking# bench get-app paypal_intergration https://github.com/frappe/paypal_integration
INFO:bench.app:getting app paypal_intergration
fatal: destination path ‘paypal_intergration’ already exists and is not an empty directory.
Traceback (most recent call last):
File “/usr/local/bin/bench”, line 9, in
load_entry_point(‘bench==3.0.0’, ‘console_scripts’, ‘bench’)()
File “/home/frappe/bench-repo/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-repo/bench/commands/make.py”, line 28, in get_app
get_app(name, git_url, branch=branch)
File “/home/frappe/bench-repo/bench/app.py”, line 55, in get_app
cwd=os.path.join(bench, ‘apps’))
File “/home/frappe/bench-repo/bench/utils.py”, line 100, in exec_cmd
raise CommandFailedError(cmd)
bench.utils.CommandFailedError: git clone https://github.com/frappe/paypal_integration --origin upstream paypal_intergration

As a workaround i though i might try to uninstall the Paypal app then export my data without it, and finally import my new ( no Paypal ) data into the new system … However i get this error while trying to uninstall Paypal module.

/usr/local/bin/bench --site erp-2.solar.computerking.ca uninstall-app Paypal_Integration
All doctypes (including custom), modules related to this app will be deleted. Are you sure you want to continue (y/n) ? y
Backing up…
Traceback (most recent call last):
File “/usr/lib/python2.7/runpy.py”, line 162, in _run_module_as_main
main”, fname, loader, pkg_name)
File “/usr/lib/python2.7/runpy.py”, line 72, in _run_code
exec code in run_globals
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 79, in
main()
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 16, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 716, in call
return self.main(*args, **kwargs)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 696, in main
rv = self.invoke(ctx)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 534, in invoke
return callback(*args, **kwargs)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/decorators.py”, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/commands.py”, line 29, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/commands.py”, line 930, in uninstall
remove_app(app, dry_run)
File “/home/frappe/frappe-bench/apps/frappe/frappe/installer.py”, line 173, in remove_app
for module_name in frappe.get_module_list(app_name):
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 641, in get_module_list
return get_file_items(os.path.join(os.path.dirname(get_module(app_name).file), “modules.txt”))
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 599, in get_module
return importlib.import_module(modulename)
File “/usr/lib/python2.7/importlib/init.py”, line 37, in import_module
import(name)
ImportError: No module named Paypal_Integration

Did you delete the paypal app from the apps/ folder

try

bench remove-from-installed-apps paypal_integration

No i did not delete the paypal app from the apps/ folder you can see a ls at the end of this qoute

oot@erp-2:/home/frappe/frappe-bench# bench remove-from-installed-apps paypal_integration
bash: bench: command not found
root@erp-2:/home/frappe/frappe-bench# /usr/local/bin/bench remove-from-installed-apps paypal_integration
Traceback (most recent call last):
File “/usr/lib/python2.7/runpy.py”, line 162, in _run_module_as_main
main”, fname, loader, pkg_name)
File “/usr/lib/python2.7/runpy.py”, line 72, in _run_code
exec code in run_globals
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 79, in
main()
File “/home/frappe/frappe-bench/apps/frappe/frappe/utils/bench_helper.py”, line 16, in main
click.Group(commands=commands)(prog_name=‘bench’)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 716, in call
return self.main(*args, **kwargs)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 696, in main
rv = self.invoke(ctx)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 1060, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 889, in invoke
return ctx.invoke(self.callback, **ctx.params)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/core.py”, line 534, in invoke
return callback(*args, **kwargs)
File “/home/frappe/frappe-bench/env/local/lib/python2.7/site-packages/click/decorators.py”, line 17, in new_func
return f(get_current_context(), *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/commands.py”, line 29, in _func
ret = f(frappe._dict(ctx.obj), *args, **kwargs)
File “/home/frappe/frappe-bench/apps/frappe/frappe/commands.py”, line 914, in remove_from_installed_apps
frappe.init(site=site)
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 121, in init
local.conf = _dict(get_site_config())
File “/home/frappe/frappe-bench/apps/frappe/frappe/init.py”, line 175, in get_site_config
raise IncorrectSitePath, “{0} does not exist”.format(site_config)
frappe.exceptions.IncorrectSitePath: 404: Not Found
root@erp-2:/home/frappe/frappe-bench# ls
apps config config-bak env logs node_modules patches.txt Procfile sites
root@erp-2:/home/frappe/frappe-bench# cd apps/
root@erp-2:/home/frappe/frappe-bench/apps# ls
erpnext frappe paypal_integration
root@erp-2:/home/frappe/frappe-bench/apps# ls -l
total 26
drwxrwxr-x 7 frappe frappe 17 May 27 18:15 erpnext
drwxrwxr-x 7 frappe frappe 18 May 27 18:15 frappe
drwxr-xr-x 6 frappe frappe 13 Mar 23 21:19 paypal_integration

So as far as i can tell i cannot remove paypal app so i cannot import my data this is a real problem isn’t it? basically i do not have an effective backup or restore functionality hoping this is just me and not a problem in all instances of erpnext?

@Anmol_b1994

i had installed app in cd frappe-erpnext by using below command now how i can integrate it in s3 setting where i can find secret key and access key?

Install boto and filechunkio packages
a) source ./frappe-bench/env/bin/activate
b) pip install boto
c) pip install filechunkio

bench get-app s3_backup https://github.com/ccfiel/s3_backup.git

bench --site install-app s3_backup