Skip to content

Commit 37ab420

Browse files
committed
pvbackup: Fix REMOTE_X checks
1 parent ff18331 commit 37ab420

File tree

4 files changed

+7
-4
lines changed

4 files changed

+7
-4
lines changed

containers/tools/pvbackup/Makefile

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,5 @@ VERSION = $(shell cat VERSION | grep -Ev "^#" | tail -1)-development
22
REGISTRY = ghcr.io/haiku
33
default:
44
podman build --no-cache --tag ${REGISTRY}/pvbackup:${VERSION} .
5+
push:
6+
podman push ${REGISTRY}/pvbackup:${VERSION}

containers/tools/pvbackup/README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,5 @@ I'm a simple container to backup/restore encrypted persistant volume data to an
2020
#### Optional
2121

2222
* REMOTE_NAME - name of remote specified in configuration file (defaults to "backup")
23-
* REMOTE_MAX_AGE - maximum backup age in bucket. ex: 30d,1y,etc
23+
* REMOTE_MAX_AGE - maximum backup age in bucket. example: 30d,1y,etc
24+

containers/tools/pvbackup/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
# ONLY UPDATE ONCE READY TO BUILD NEW RELEASE
2-
3.0.1
2+
3.0.2

containers/tools/pvbackup/pvsync.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,12 @@ if [ ! -f $RCLONE_CONFIG_PATH ]; then
3333
exit 1
3434
fi
3535

36-
if [ ! -z "$REMOTE_PREFIX" ] ;then
36+
if [ -z "$REMOTE_PREFIX" ] ;then
3737
echo "REMOTE_PREFIX is not defined! This is the bucket name for s3 or other prefix path"
3838
exit 1
3939
fi
4040

41-
if [ ! -z "$REMOTE_NAME" ] ;then
41+
if [ -z "$REMOTE_NAME" ] ;then
4242
echo "REMOTE_NAME is not defined. Defaulting to 'backup' (make sure this matches config file)"
4343
REMOTE_NAME="backup"
4444
fi

0 commit comments

Comments
 (0)