1
我正在嘗試安裝rethinkdb的定期備份,但仍然遇到問題。你如何設置rethinkdb-dump從cron運行?從cron運行rethinkdb-dump的問題
這裏是我的腳本:
$ cat backup.sh
#!/bin/bash
NOW=$(date +"%Y-%m-%d-%H-%M")
/usr/bin/rethinkdb dump -e my_db -f /root/db_backup/$NOW.tar.gz
的腳本時,我手動運行它運行得很好。然而,當嘗試,並從cron它不工作運行它,並在stderr
我得到以下幾點:
Error when launching 'rethinkdb-dump': No such file or directory
The rethinkdb-dump command depends on the RethinkDB Python driver, which must be installed.
If the Python driver is already installed, make sure that the PATH environment variable
includes the location of the backup scripts, and that the current user has permission to
access and run the scripts.
Instructions for installing the RethinkDB Python driver are available here:
http://www.rethinkdb.com/docs/install-drivers/python/
這似乎是一個Python環境問題,但我無法弄清楚如何使它快樂..想法?幫幫我!