From 3b280827b52b4e2f51e0f42c393c746057f7370f Mon Sep 17 00:00:00 2001 From: St33v Date: Thu, 13 May 2021 10:14:54 +1000 Subject: move test scripts to test/ dir --- tests/pruner.sh | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100755 tests/pruner.sh (limited to 'tests/pruner.sh') diff --git a/tests/pruner.sh b/tests/pruner.sh new file mode 100755 index 0000000..75d13af --- /dev/null +++ b/tests/pruner.sh @@ -0,0 +1,24 @@ +#!/usr/bin/bash +function Pruner { + echo 'Hello' $1 There are "$#" arguments + echo "ONE $1 TWO $2 THREE $3" + if [ "$#" -eq 1 ]; then + echo "I saw $# argument." + borg prune \ + --prefix $1 \ + --list \ + --dry-run \ + --keep-within 1d \ + --keep-daily 2 \ + --keep-weekly 8 \ + --keep-monthly 12 \ + --keep-yearly -1 \ + :: + else + # sds + echo Pruner went wrong. + fi +} + + +Pruner "$@" -- cgit v1.3