Skip to content

Instantly share code, notes, and snippets.

@zingbretsen
zingbretsen / rsync_examples.sh
Created September 29, 2021 09:13
Includes and excludes in rsync
set -eux
# Copies whole src dir into dest
rsync -avz src dest/
# Copies content of src dir into dest
rsync -avz src/ dest/
# Copies all files/directories except those specified exactly or with wildcard
rsync -avz --exclude='.gitignore' --exclude='*csv' --exclude='d2' src/ dest/
# Build image
FROM node:12.18-alpine AS build
ARG BASE_PATH
ARG DATABASE_TYPE
ENV BASE_PATH=$BASE_PATH
ENV DATABASE_URL "postgresql://umami:umami@db:5432/umami" \
DATABASE_TYPE=$DATABASE_TYPE
WORKDIR /build