Code Monkey home page Code Monkey logo

docker-calcardbackup's People

Contributors

astrelion avatar dependabot[bot] avatar waja avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

docker-calcardbackup's Issues

Nextcloud AIO

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.

Error on backup

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.

Container stops occasionally

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

First Setup

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

backup logs

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

-z | --zip option not supported

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.

[...]

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.