Skip to content
This repository has been archived by the owner on Feb 15, 2025. It is now read-only.

Commit

Permalink
delete docker build
Browse files Browse the repository at this point in the history
  • Loading branch information
hantdev committed Sep 26, 2024
1 parent 668c5b9 commit 71038bf
Show file tree
Hide file tree
Showing 7 changed files with 186 additions and 286 deletions.
Binary file modified .DS_Store
Binary file not shown.
31 changes: 0 additions & 31 deletions .github/workflows/release-binary.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,34 +29,3 @@ jobs:
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
docker:
runs-on: ubuntu-latest
needs: goreleaser
steps:
- uses: olegtarasov/get-tag@v2.1.3
id: tagName

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Login to DockerHub
uses: docker/login-action@v3
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}

- name: Build and push
id: docker_build
uses: docker/build-push-action@v6
with:
push: true
platforms: linux/amd64,linux/arm64
tags: |
nthhaf/vtsbackup:latest
nthhaf/vtsbackup:${{ steps.tagName.outputs.tag }}
- name: Image digest
run: echo ${{ steps.docker_build.outputs.digest }}
26 changes: 0 additions & 26 deletions Dockerfile

This file was deleted.

76 changes: 40 additions & 36 deletions install
Original file line number Diff line number Diff line change
Expand Up @@ -82,44 +82,48 @@ models:
secret_access_key: ${MINIO_SECRET_ACCESS_KEY}
EOF
cat <<EOF > ~/.vtsbackup/snapshot.conf
cat <<EOF > ~/.vtsbackup/snapshot.yml
# ------- CONF SECTION --------
#
# VTSBACKUP CONFIG FILE
# Default number of snapshots kept when run
# Override with --snapshots NUMBER (-s NUMBER) argument
#
# This file should live as ~/.vtsbackup/snapshot.conf
# What to Backup
# Select the directory to backup
BACKUP_PATH=/
# Excluding Files
# Add any files and folders to be exlcuded to the list below
EXCLUDE_LIST= "/mnt/backup "
# Disk to write backup to
# This is the disk that the backup will be stored on
# Use "/" to save backup to your root disk
DEST_DISK=/mnt/backup
# Conststant Backup Path
# By default, the backup path is supplied as an argument but you
# can specify a constant one here, include mount point in the path
FILE_PATH=/mnt/backup/vtsbackup
# Backup File Name
# This is the name the backup file will have
# By default, it's in a form like: Backup--2024-9-24
FILE_NAME=Backup
# Compression
# Compression is enabled by default
# This can be resource intensive
COMPRESSION=false
# Auto Unmount
# Automatically unmount the backup disk
# THIS WILL BE FORCED TO FALSE IF BACKING UP TO ROOT DISK ("/")
AUTOUNMOUNT=false
SNAPSHOT_COUNT: 10
# Email address for errors, assign directly or read from file. Comment out either, or both if you don't want any mails.
# Sends the following errors: "Missing destination", "Backup currently running" and "Diskspace warning".
# Name of small info file created in DEST_PATH after completed backup
#
INFO_FILE: "backup_info.txt"
# Include a list of the directories which contain changed files since the last snapshot
#
SHOW_CHANGED_DIRS: "yes"
# Arguments to rsync
# -a equals -rlptgoD. --protect-args improves handling of filenames with spaces.
# Override with --rsync-args ARGS (-r ARGS) argument (arguments without dash here, eg. --rsync-args rlptD
#
RSYNC_ARGS: "-a --protect-args"
# Backup permissions to separate file, "yes" or "no". This should not be needed on most systems.
# This file may be large and will take up space in each snapshot.
# This will only work if source is locally mounted and getfacl is installed
#
BACKUP_PERMISSIONS: "no"
# Logfile, make sure it's writable by the user running the script
LOGFILE: "/var/log/snapshotbackup.log"
# Set error level for less free space on destination than total source size
# "ERROR" aborts the script, "WARNING" only writes log and sends mail
# Note that the backup might still complete if there is enough space for the current snapshot.
#
SPACE_ERRORLEVEL: "WARNING"
#
# ------ END OF CONF SECTION ------
EOF
echo "${bin} ${version} has been installed."
37 changes: 0 additions & 37 deletions snapshot.conf

This file was deleted.

49 changes: 49 additions & 0 deletions snapshot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
# ------- CONF SECTION --------
#
# Default number of snapshots kept when run
# Override with --snapshots NUMBER (-s NUMBER) argument
#
SNAPSHOT_COUNT: 10

# Email address for errors, assign directly or read from file. Comment out either, or both if you don't want any mails.
# Sends the following errors: "Missing destination", "Backup currently running" and "Diskspace warning".

# Name of small info file created in DEST_PATH after completed backup
#
INFO_FILE: "backup_info.txt"

# Include a list of the directories which contain changed files since the last snapshot
#
SHOW_CHANGED_DIRS: "yes"

# Arguments to rsync
# -a equals -rlptgoD. --protect-args improves handling of filenames with spaces.
# Override with --rsync-args ARGS (-r ARGS) argument (arguments without dash here, eg. --rsync-args rlptD
#
RSYNC_ARGS: "-a --protect-args"

# Backup permissions to separate file, "yes" or "no". This should not be needed on most systems.
# This file may be large and will take up space in each snapshot.
# This will only work if source is locally mounted and getfacl is installed
#
BACKUP_PERMISSIONS: "no"

# Logfile, make sure it's writable by the user running the script
LOGFILE: "/var/log/snapshotbackup.log"

# Set error level for less free space on destination than total source size
# "ERROR" aborts the script, "WARNING" only writes log and sends mail
# Note that the backup might still complete if there is enough space for the current snapshot.
#
SPACE_ERRORLEVEL: "WARNING"

# Device to mount
MOUNT_DEVICE: "/dev/vdb"

# Snapshot read-write path
SNAPSHOT_RW: "/root/snapshot"

# Excludes file path
EXCLUDES: "/usr/local/etc/backup_exclude"
#
# ------ END OF CONF SECTION ------
Loading

0 comments on commit 71038bf

Please sign in to comment.