abesnier / docker-guacamole

A self-contained guacamole docker container for x64. Remotely connect over SSH, RDP or VNC using HTML5.
https://hub.docker.com/r/abesnier/guacamole
GNU General Public License v3.0
78 stars 14 forks source link

Backup #28

Closed lavazza2017 closed 10 months ago

lavazza2017 commented 10 months ago

Hi, I have tried to create script for your docker on qnap however I can't make backup of data base can you help with it/or mby you have such script. I need just when I update everything is easier when I download new image and then import config

abesnier commented 10 months ago

Hi,

Not sure what you want to backup but if this is the database, you can find backup and restore commands here: https://github.com/abesnier/docker-guacamole/tree/master#back-up-the-config-folder-and-start-again

backup: docker exec -it guacamole bash -c "pg_dump -U guacamole -F t guacamole_db > guacamole_db_backup.tar"

restore: docker exec -it guacamole bash -c "pg_restore -d guacamole_db guacamole_db_backup.tar -c -U guacamole"

Cheers

Antoine

lavazza2017 commented 10 months ago

Hi, finally I made it :) qnap with docker works a bit differently however I have managed...

now every month it makes backup... and then if I will need update or reinstall, script will do it for me :)

THANK YOU