Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nc-snapshot-auto.sh datadirectory cannot be retrieved during crontab execution #1651

Open
sandroroeder opened this issue Nov 3, 2022 · 2 comments

Comments

@sandroroeder
Copy link

I try to configure the nc-snapshot-auto.sh on latest nextcloud pi installation.

Unfortunately its not working. it looks like the DATADIR=$(get_nc_config_value datadirectory) cannot be retrieved during crontab execution. Is there the following line missing?

source /usr/local/etc/library.sh

@sandroroeder
Copy link
Author

I solved the problem temporarly with following change in the crontab:
DATADIR=$(ncc config:system:get datadirectory) || {

@zwiezwerg
Copy link

Hi.
I'm having the same issue.
I fixed it for me by adding the source /usr/local/etc/library.sh line to /usr/local/bin/ncp/BACKUPS/nc-snapshot-auto.sh.
Thanks for the hint.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: New
Development

No branches or pull requests

2 participants