waja / docker-calcardbackup Goto Github PK
View Code? Open in Web Editor NEWDocker image for calcardbackup: https://codeberg.org/BernieO/calcardbackup
Docker image for calcardbackup: https://codeberg.org/BernieO/calcardbackup
Is it possible to use this container with Nextcloud AIO? I've tried some variations of the example docker-compose.yml
but nothing has worked.
I am thinking about moving https://github.com/BernieO/calcardbackup to https://codeberg.org which is based on https://gitea.com
Would calcardbackup moving to Codeberg have any negative effects for your docker-calcardbackup?
On versions later than 2.1.1-3 running the backup job gives me this error in the log:
ERROR: can't read '/opt/calcardbackup/calcardbackup'. Check given path!
Running the backup command on the docker image console gives me the same error.
Version 2.1.1-3 works correctly.
3.0.0-1 fails.
Hey there,
I am using the dockerized version of calcardbackup. The config has worked for quite a while on another server. As Environmental variables, I use
CALCARD_OPTS | -r 7 |
---|---|
CALCARDBACKUP_VERSION | 5.2.0 |
DB_HOST | xxx.xxx.xxx.xx |
DB_PORT | 3306 |
GIT_PROJECT | BernieO/calcardbackup |
INIT_BACKUP | true |
MYSQL_DATABASE | nextcloud |
MYSQL_PASSWORD | xxxxxxxxxxx |
MYSQL_ROOT_PASSWORD | xxxxxxxxx |
MYSQL_USER | nextcloud |
NC_HOST | xxxxxxxxx |
NC_PORT | 443 |
ย | |
nextcloud/config/www/nextcloud/config is mapped to /nextcloud/config |
and, of course, a persistent backup storage.
The initial backup is working fine, however, the container seems to crash before the second backup starts. After such crash I am not able to fire it up again and have to recreate it. Its kinda strange. I cannot find any traces in the logs. Neither in the container logs nor in docker events.
Here's the last container log:
Fri Apr 28 04:05:00 UTC 2023 --> START calcardbackup ver. 5.2.0 (22.03.2023), AGPL-3.0
Checking dependencies and preparing...
no usersfile given:
- will fetch all available items from database
Using URL: xxxxxxxxxx
Nextcloud 25.0.5 detected.
Database of chosen Nextcloud installation is MySQL/MariaDB.
Looking for calendars in your Nextcloud:
Saving XXXXXXXX......empty calendar!
Saving calendar XXXXXXXX......success!
Saving calendar JXXXXXXXX.....success!
Saving calendar XXXXXXXX.....success!
Saving calendar XXXXXXXX......empty calendar!
Saving calendar XXXXXXXX......empty calendar!
Saving calendar XXXXXXXX......success!
Saving calendar JXXXXXXXX......success!
Saving calendar FXXXXXXXX.....empty calendar!
Looking for calendarsubscriptions in your Nextcloud:
Saving cXXXXXXXXwebcal......success!
Looking for addressbooks in your Nextcloud:
Saving addressbook XXXXXXXX-Kontakte.vcf......empty addressbook!
Saving addressbook XXXXXXXX-Contacts.vcf......success!
Saving addressbook XXXXXXXXContacts.vcf......success!
Saving addressbook XXXXXXXX-Contacts.vcf......empty addressbook!
Saving addressbook XXXXXXXX-Contacts.vcf......empty addressbook!
Saving addressbookXXXXXXXX-Basis.vcf......success!
removing temporary files...
Compressing backup as *.tar.gz file. Be patient - this may take a while.
Backup successfully compressed!
Find your compressed backup here: /backup/calcardbackup-2023-04-28.tar.gz
deleting backups older than 7 days:
--> no backups older than 7 days found to be deleted.
Fri Apr 28 04:06:19 UTC 2023 --> END calcardbackup
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
I hope, you can provide me with any clues whats going on here. Happy to provide more information, if needed
Hey,
I am trying to set up this container, but all i get in the logs is "Running Cron Task Manager".
I tried it with this compose:
version: "2"
services:
calcardbackup:
container_name: calcardbackup
image: waja/calcardbackup
external_links:
- nextcloud-db
volumes:
- /backups/docker/calcardbackup:/backup
- /var/lib/docker/volumes/nextcloud_nextcloud/_data/:/nextcloud/config
environment:
- NC_HOST=nextcloud
- DB_HOST=nextcloud-db
- DB_PORT=3306
- INIT_BACKUP
networks:
- my-nextcloud-network
networks:
my-nextcloud-network:
Where is my mistake? ๐
Thanks
Hello waja !
Many thanks for this image. Calcardbackup is great piece of software and having it as a docker image really helps.
The backup.log
file location is fixed within the run.sh
script at the root of the container.
Wouldn't it be better to have it under the $BACKUP_DIR
? That could help for monitoring as well as debugging purpose.
Michel
When setting the -z option in the docker compse CALCARD_OPTS (e.g.: -i -r 20 -z)
An Error is thrown during first run, that package 'zip' isn't available.
Afterwards it packages as a tar.gz normally
Log from container:
=> Create a backup on the startup
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Sun Jun 18 10:56:36 UTC 2023 --> START calcardbackup ver. 5.3.0 (14.06.2023), AGPL-3.0
Checking dependencies and preparing...
[...]
/opt/calcardbackup/calcardbackup: line 422: zip: command not found
-- NOTICE: package 'zip' is not available. Using 'tar.gz' as compression method.
[...]
Will there be a chance to have this docker available on ARM-machines?
Thanks and Greetings!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.