Comments (5)
Makes sense, thanks for your prompt response and help!
from calcardbackup.
I can't reproduce the issue.
Could you change line 22 (file calcardbackup)
from set -euo pipefail
to set -euxo pipefail
and run the script again and post the output?
from calcardbackup.
This is the output:
+ version='0.5.0 (09.06.2018), AGPL-3.0'
+ set_required_paths
++ pwd
+ working_dir=/root/calcardbackup
++ readlink -f ./calcardbackup
+ script_dir=
from calcardbackup.
Thank you.
The problem is that user www-data
is not allowed to open the /root
directory and thus is not able to resolve the (possibly relative) pathnames to absolute pathnames.
I don't think I can change this without losing versatility (e.g. calling the script from a different directory). I admit, I didn't have a proper think about that yet, though.
Meanwhile: could you try to use calcardbackup in a directory for which www-data
is allowed to open all directorys in the path (change line 22 back to the original state before, otherwise you'll get quite a lot of output)?
from calcardbackup.
I decided to not change this behaviour due to versatility and backwards compatibility.
Version 0.5.1 prints a proper error message when this happens (absolute paths can't be read). I also updated the requirements in README.md (user running the script needs to be able to read full path to used files and to the script itself).
Closing this now - feel free to open it again, if you have any further questions.
from calcardbackup.
Related Issues (19)
- Fix PostgrSQL compatibility HOT 4
- Shebang and interop HOT 1
- readlink(1) on non-GNU systems HOT 1
- Nothing is backed up with an empty value for dbtableprefix HOT 2
- problems while backing up address book HOT 4
- Backup can't be encrypted: gpg-agent is not available in this session HOT 1
- Create individual ICS files for calendar entries HOT 4
- doesn't backup "old" calendars HOT 7
- Error when using -r HOT 9
- Setup calcardbackup for a daily CRON job HOT 2
- Backup bookmarks from bookmark app HOT 1
- Synology - ERROR: Nextcloud database is MySQL/MariaDB HOT 5
- old contacts can be exported but not reimported HOT 2
- busybox readlink does not support '-m' HOT 3
- Make vendor detection (also) working by using http HOT 4
- not compatible with snap installation HOT 2
- Ubuntu 18.04 - ERROR 1045 (28000): Access denied for user HOT 1
- Support multiple instances installation HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from calcardbackup.