Use path consistently in examples (#799)
* Use path consistently in examples Closes btcpayserver/btcpayserver-doc#1292. * Add note * Make it more concise
This commit is contained in:
@@ -109,12 +109,14 @@ Here is an example of a crontab script that does a nightly backup at 4:15 AM:
|
||||
```
|
||||
SHELL=/bin/bash
|
||||
PATH=/bin:/usr/sbin:/usr/bin:/usr/local/bin
|
||||
15 4 * * * /root/btcpayserver-docker/btcpay-backup.sh >/dev/null 2>&1
|
||||
15 4 * * * /root/BTCPayServer/btcpayserver-docker/btcpay-backup.sh >/dev/null 2>&1
|
||||
```
|
||||
|
||||
You need to set the right `SHELL` and `PATH`, so that the script can run with the correct context.
|
||||
You might also want to set the `BTCPAY_BACKUP_PASSPHRASE` environment variable.
|
||||
|
||||
Also ensure the base path (here `/root/BTCPayServer`) matches the output of `echo $BTCPAY_BASE_DIRECTORY`.
|
||||
|
||||
## How to restore?
|
||||
|
||||
It's very similar to the `btcpay-backup.sh` process but in reverse.
|
||||
|
||||
Reference in New Issue
Block a user