command
module
Version:
v1.0.2
Opens a new window with list of versions in this module.
Published: Apr 18, 2023
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
Copy-Container
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_var |
description |
default |
FROM |
folder to copy from |
/from |
TO |
folder to copy to |
/to |
SET_PERMISSION |
if set, overrides permission of all copied files |
- |
SYNC |
if true, sync folder after copy |
true |
SKIP_ON_EXIST |
if true, skips existing subfolder while copying |
true |
PRESERVE_TIMES |
preserver stat times while copying |
true |
BUFFER |
copy buffer (default: 32k) |
32768 |
LOG_FORMATTER_JSON |
if true, log output is formatted to json |
false |
LOG_LEVEL |
used log level |
warn |
Build
$ docker build .
Dependencies
Documentation
¶
There is no documentation for this package.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.