Categorygithub.com/fluktuid/copy-container
modulepackage
1.0.2
Repository: https://github.com/fluktuid/copy-container.git
Documentation: pkg.go.dev

# README

Copy-Container

Go Report Card Go Reference

This project contains a simple go service for copying from one to another folder.

The copying is especially useful if you need a tiny distroless container copying data from one pvc to another, e.g. in a kubernetes cluster.

Configuration

The App configuration is done via env variables.

env_vardescriptiondefault
FROMfolder to copy from/from
TOfolder to copy to/to
SET_PERMISSIONif set, overrides permission of all copied files-
SYNCif true, sync folder after copytrue
SKIP_ON_EXISTif true, skips existing subfolder while copyingtrue
PRESERVE_TIMESpreserver stat times while copyingtrue
BUFFERcopy buffer (default: 32k)32768
LOG_FORMATTER_JSONif true, log output is formatted to jsonfalse
LOG_LEVELused log levelwarn

Build

$ docker build .

Dependencies

# Structs

No description provided by the author