This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from keras import backend as K | |
from keras.models import Sequential, Model | |
from keras.layers import Dense, Activation, Flatten, Lambda, Conv2D | |
from keras.layers import GlobalAveragePooling2D, Input, Dropout | |
from keras.layers.convolutional import MaxPooling2D | |
from keras.models import Model, load_model | |
from keras.preprocessing.image import ImageDataGenerator | |
from keras.optimizers import Adam, RMSprop, SGD | |
import numpy as np | |
import urllib |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Backup: | |
docker exec -t -u postgres your-db-container pg_dumpall -c > dump_`date +%d-%m-%Y"_"%H_%M_%S`.sql | |
Restore: | |
cat your_dump.sql | docker exec -i your-db-container psql -Upostgres |