All New

user:thomas gists created by user

title:mygist gists with given title

filename:myfile.txt gists having files with given name

extension:yml gists having files with given extension

language:go gists having files with given language

topic:homelab gists with given topic

Login


All New Login

All gists matching topic restore

Recently created
Least recently created
Recently updated
Least recently updated

airikr / Backup and restore PostgreSQL via Docker

0 likes
0 forks
1 files
Last active 1 week ago
backup database linux restore
1 # BACKUP
2 docker exec -i <container-name> /bin/bash -c "PGPASSWORD=<passwd> pg_dump --username <user> <db-name>" > ~/db.sql
3
4 # RESTORE
5 cat db.sql | docker exec -i <container-name> psql -U <user> <db-name>

airikr / Install softwares and restore backup files

0 likes
0 forks
1 files
Last active 1 week ago
linux restore setup
1 #!/bin/bash
2
3 # VARIABLES
4 dir_home='/home/{username}'
5 dir_backup='/to/dir'
6 GREEN='\033[0;32m'
7 YELLOW='\033[1;33m'
8 BLUE='\033[0;34m'
9 NC='\033[0m'
10 SLEEP='.5'
Newer Older

Powered by Opengist ⋅ Load: 55ms⋅

English
Čeština Deutsch English Español Français Magyar Italiano 日本語 Polski Português Русский Türkçe Українська 中文 繁體中文