Giter Site home page Giter Site logo

Comments (8)

veerendra2 avatar veerendra2 commented on May 13, 2024
  • https://github.com/ReinerNippes/nextcloud

from raspberrypi-homeserver.

veerendra2 avatar veerendra2 commented on May 13, 2024

from raspberrypi-homeserver.

veerendra2 avatar veerendra2 commented on May 13, 2024

CRONTAB metrics into Prometheus -> https://www.robustperception.io/using-the-textfile-collector-from-a-shell-script/
Created -> https://gist.github.com/veerendra2/462264542e3de75b4ffbed7bba8a41b3

from raspberrypi-homeserver.

veerendra2 avatar veerendra2 commented on May 13, 2024
  • Moved nextcloud data directory to disk to test

from raspberrypi-homeserver.

veerendra2 avatar veerendra2 commented on May 13, 2024
veerendra@atom:~$ docker exec -it -u www-data nextcloud php occ maintenance:mode --on
An unhandled exception has been thrown:
RedisException: NOAUTH Authentication required. in /var/www/html/lib/private/Memcache/Redis.php:48
...

from raspberrypi-homeserver.

veerendra2 avatar veerendra2 commented on May 13, 2024

Intersting tool: duplicati

from raspberrypi-homeserver.

veerendra2 avatar veerendra2 commented on May 13, 2024

Backup

docker exec postgres \
      bash -c 'pg_dump -c -U `cat $POSTGRES_USER_FILE` -Fc `cat $POSTGRES_DB_FILE`' > test.dump

Restore

docker exec -i postgres \
    bash -c 'pg_restore -c -U `cat $POSTGRES_USER_FILE` -d `cat $POSTGRES_DB_FILE` -v' < test.dump

from raspberrypi-homeserver.

veerendra2 avatar veerendra2 commented on May 13, 2024

Restoring database is not working, some roles, indexes, etc are missing.

Tested below procedure. Simple directory backup and restore

Backup

  • Set maintenance or docker-compose down
  • Copy nextcloud directory from production to backup disk
  • Copy postgres directory from production to backup disk

Restore

While restoring, the credentials should be same as before disaster

  • Copy nextcloud directory from backup disk to production
  • Copy postgres directory from backup disk to production
  • In docker-compose.yml file mount the restored directories nextcloud and postgres
  • Run docker-compose up

Same procedure can follow with restic

from raspberrypi-homeserver.

Related Issues (20)

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.