Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --
- -- PostgreSQL database cluster dump
- --
- SET default_transaction_read_only = off;
- SET client_encoding = 'UTF8';
- SET standard_conforming_strings = on;
- --
- -- Drop databases (except postgres and template1)
- --
- DROP DATABASE immichdb;
- DROP DATABASE nextclouddb;
- --
- -- Drop roles
- --
- DROP ROLE immich;
- DROP ROLE immichuser;
- DROP ROLE nextcloud;
- DROP ROLE postgres;
- --
- -- Roles
- --
- CREATE ROLE immich;
- ALTER ROLE immich WITH SUPERUSER INHERIT NOCREATEROLE NOCREATEDB LOGIN NOREPLICATION NOBYPASSRLS PASSWORD 'SCRAM-SHA-256$4096:xxxxxxxxxxxxxxxx';
- CREATE ROLE immichuser;
- ALTER ROLE immichuser WITH SUPERUSER INHERIT NOCREATEROLE NOCREATEDB LOGIN NOREPLICATION NOBYPASSRLS PASSWORD 'SCRAM-SHA-256$4096:xxxxxxxxxxxx';
- CREATE ROLE nextcloud;
- ALTER ROLE nextcloud WITH NOSUPERUSER INHERIT NOCREATEROLE NOCREATEDB LOGIN NOREPLICATION NOBYPASSRLS PASSWORD 'SCRAM-SHA-256$4096:xxxxxxxxxxxxxxxxxxx';
- CREATE ROLE postgres;
- ALTER ROLE postgres WITH SUPERUSER INHERIT CREATEROLE CREATEDB LOGIN REPLICATION BYPASSRLS PASSWORD 'SCRAM-SHA-256$4096:xxxxxxxxxxxxxxxxxxxxxx';
- --
- -- User Configurations
- --
- --
- -- Databases
- --
- --
- -- Database "template1" dump
- --
- --
- -- PostgreSQL database dump
- --
- -- Dumped from database version 16.1 (Debian 16.1-1.pgdg120+1)
- -- Dumped by pg_dump version 16.1 (Debian 16.1-1.pgdg120+1)
- SET statement_timeout = 0;
- SET lock_timeout = 0;
- SET idle_in_transaction_session_timeout = 0;
- SET client_encoding = 'UTF8';
- SET standard_conforming_strings = on;
- SELECT pg_catalog.set_config('search_path', '', false);
- SET check_function_bodies = false;
- SET xmloption = content;
- SET client_min_messages = warning;
- SET row_security = off;
- UPDATE pg_catalog.pg_database SET datistemplate = false WHERE datname = 'template1';
- DROP DATABASE template1;
- --
- -- Name: template1; Type: DATABASE; Schema: -; Owner: postgres
- --
- CREATE DATABASE template1 WITH TEMPLATE = template0 ENCODING = 'UTF8' LOCALE_PROVIDER = libc LOCALE = 'en_US.utf8';
- ALTER DATABASE template1 OWNER TO postgres;
- \connect template1
- SET statement_timeout = 0;
- SET lock_timeout = 0;
- SET idle_in_transaction_session_timeout = 0;
- SET client_encoding = 'UTF8';
- SET standard_conforming_strings = on;
- SELECT pg_catalog.set_config('search_path', '', false);
- SET check_function_bodies = false;
- SET xmloption = content;
- SET client_min_messages = warning;
- SET row_security = off;
- --
- -- Name: DATABASE template1; Type: COMMENT; Schema: -; Owner: postgres
- --
- COMMENT ON DATABASE template1 IS 'default template for new databases';
- --
- -- Name: template1; Type: DATABASE PROPERTIES; Schema: -; Owner: postgres
- --
- ALTER DATABASE template1 IS_TEMPLATE = true;
- \connect template1
- SET statement_timeout = 0;
- SET lock_timeout = 0;
- SET idle_in_transaction_session_timeout = 0;
- SET client_encoding = 'UTF8';
- SET standard_conforming_strings = on;
- SELECT pg_catalog.set_config('search_path', '', false);
- SET check_function_bodies = false;
- SET xmloption = content;
- SET client_min_messages = warning;
- SET row_security = off;
- --
- -- Name: DATABASE template1; Type: ACL; Schema: -; Owner: postgres
- --
- REVOKE CONNECT,TEMPORARY ON DATABASE template1 FROM PUBLIC;
- GRANT CONNECT ON DATABASE template1 TO PUBLIC;
- --
- -- PostgreSQL database dump complete
- --
- --
- -- Database "immichdb" dump
- --
- --
- -- PostgreSQL database dump
- --
- -- Dumped from database version 16.1 (Debian 16.1-1.pgdg120+1)
- -- Dumped by pg_dump version 16.1 (Debian 16.1-1.pgdg120+1)
- SET statement_timeout = 0;
- SET lock_timeout = 0;
- SET idle_in_transaction_session_timeout = 0;
- SET client_encoding = 'UTF8';
- SET standard_conforming_strings = on;
- SELECT pg_catalog.set_config('search_path', '', false);
- SET check_function_bodies = false;
- SET xmloption = content;
- SET client_min_messages = warning;
- SET row_security = off;
- --
- -- Name: immichdb; Type: DATABASE; Schema: -; Owner: immichuser
- --
- CREATE DATABASE immichdb WITH TEMPLATE = template0 ENCODING = 'UTF8' LOCALE_PROVIDER = libc LOCALE = 'en_US.utf8';
- ALTER DATABASE immichdb OWNER TO immichuser;
- \connect immichdb
Advertisement
Add Comment
Please, Sign In to add comment