Comments (4)
Works great, thanks !
from calcardbackup.
The option assigment is already stored within the variables ${dbhost} and ${dbprotocol}. See here:
https://github.com/BernieO/calcardbackup/blob/master/calcardbackup#L482-L486
https://github.com/BernieO/calcardbackup/blob/master/calcardbackup#L493-L497
In my instances this works without any problems and according to the documentation this is valid syntax for psql :
https://www.postgresql.org/docs/9.6/static/app-psql.html
Does calcardbackup throw an error when you use it with PostgreSQL?
from calcardbackup.
Yes, it throws an error :
psql: FATAL: Peer authentication failed for user "oc_owner00"
${dbcommand}
never acquires the "--host" assignment, hence I guess there's an issue with the regexp logic in https://github.com/BernieO/calcardbackup/blob/master/calcardbackup#L475-L501 .
$ psql -V
psql (PostgreSQL) 9.2.24
$ grep db config.php :
'dbtype' => 'pgsql',
'dbname' => 'oc_cloud00',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'dbuser' => 'oc_owner00',
'dbpassword' => '*****,`
from calcardbackup.
Aaahrg!! Found it. Sorry!
If neither port nor socket is present in dbhost from config.php, "--host" was not assigned.
Can you check whether this commit from the testing branch solves your problem (adding lines 574 and 575 is enough): 5dcc39f
Thanks for finding this 👍
from calcardbackup.
Related Issues (19)
- 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
- No result and no output HOT 5
- 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.