-
-
Notifications
You must be signed in to change notification settings - Fork 295
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
ncp-backup-auto fails: tar --exclude does not seem to work (nextcloud.log has changed while processing) #1791
Comments
These two lines in /usr/local/bin/ncp-backup have to be changed in order to work
Here is a small repro:
Exclude has no effect, all files are backuped
An error occurs due to file expansion, which results in --exclude data/access.log data/error.log data/nextcloud.log and having access.log excluded only
Works as expected --exclude="$data"/{access,error,nextcloud}.log
|
Thank you for the extensive debugging! This should now be fixed in v1.52.1 |
ncp-backup-auto runs /usr/local/bin/ncp-backup with appropriate parameters which calls tar to backup data.
Despite the fact that tar is called with --exclude "$data/{access,error,nextcloud}.log" I can find nextcloud.log within the backup.
If nextcloud.log has changed during backup tar returns with an error (ncp.log)
and the commands following tar
are not executed resulting in incorrect permissions.
As far as I can see the backup itself is complete. I think that the exclude parameter mentioned above is not expanded as expected.
I could modify the code, e.g.
but as soon as there will be an update those modification will be overwritten.
NextcloudPi diagnostics
Nextcloud configuration
HTTPd logs
Database logs
Nextcloud logs
The text was updated successfully, but these errors were encountered: