Comments (8)
https://github.com/ReinerNippes/nextcloud
from raspberrypi-homeserver.
- https://restic.readthedocs.io/en/stable/030_preparing_a_new_repo.html
- https://github.com/ReinerNippes/nextcloud/blob/master/roles/restic_backup/templates/backup_nextcloud.sh.j2
from raspberrypi-homeserver.
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.
- Moved nextcloud
data
directory to disk to test
from raspberrypi-homeserver.
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.
Intersting tool: duplicati
from raspberrypi-homeserver.
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.
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 directoriesnextcloud
andpostgres
- Run
docker-compose up
Same procedure can follow with restic
from raspberrypi-homeserver.
Related Issues (20)
- Improve `fan.py` script
- Review and deploy `immich` HOT 3
- [GitOps] CI/CD with Github self-hosted runners HOT 2
- Create common databases script in postgresql HOT 1
- Miscellaneous bugs HOT 1
- Wireguard VPN in docker HOT 6
- Add `calibre-web` HOT 1
- Add Jackett
- Overclock Pi in Ubuntu on-demand HOT 2
- Update Images
- HTTPS with DuckDNS
- Add `emulatorjs`
- Move docker volume to disks
- Add `searxng`
- Add `vaultwarden` HOT 2
- Add `rest-server` HOT 1
- Refactor repo HOT 1
- Add `adminer`
- Add `Stirling-PDF`
- Add `it-tools` HOT 1
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 raspberrypi-homeserver.