Sign inSign up

kosdk/filebackup

By kosdk

•Updated about 3 years ago

Cross platform script to backup folders and files into a archive.

Image
0

3.2K

kosdk/filebackup repository overview

⁠File Backup Container

This container will automatically backup a set of files at the specified interval. View Git Repository⁠.
Will output how long each copy and cycle takes to complete and will put copied files into a single tar file.

Everytime this executes the old backup filename specified will be deleted.

⁠Supported Platforms

  • linux/arm/v6
  • linux/arm/v7
  • linux/arm64
  • linux/386
  • linux/amd64
  • linux/s390x
  • linux/ppc64le

⁠Container Configuration

Bold denotes required Environment Variables.

NameTypeDescription
INTERVALintegerThe interval time in minutes. If 0 then only run once (default).
OUTPUTPATHstringThe output path in the container (default /output).
BEGINintegerThe time in HHMM UTC when to first start the script.
RECURSIVEbooleanRecurse subfolders when copying.
OUTPUTFILEstringThe output compressed file.
TEMPPATHstringThe temporary folder to process and compress all files/folders.
POSTSCRIPTstringWill run a script when the compress task has completed.
PATH1stringThe path of the file or folder to backup.
PATH2stringThe path of the file to folder to backup.
DEST1stringThe destination folder of the file or folder to backup.
DEST2stringThe destination folder of the file or folder to backup.

You can provide multiple files or destinations using PATH1, DEST1, PATH2, DEST2 and so on. DEST are optional and if not provided will copy to the root directory of the tar archive.

You can suffix _FILE to the end of any environment variable to set the variable from a file (ie PATH1_FILE).

⁠Post Script

You can run a script after the compression of files has taken place to do further actions. The script will have both OUTPUTPATH and OUTPUTFILE environment variables passed to it so you can do further processing.

Tag summary

Content type

Image

Digest

sha256:9c17519a4…

Size

4 MB

Last updated

about 3 years ago

docker pull kosdk/filebackup