Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 42 lines (32 sloc) 0.878 kb
759d224 @benmur don't hardcode the path to bash
benmur authored
1 #! /usr/bin/env bash
81c7b12 2005-12-05 Alexis Sukrieh <sukria@backup-manager.org>
sukria authored
2
3 set -e
4
5 # Each test script should include testlib.sh
6 source testlib.sh
7 # When the test is ready, set this to false for nice outputs.
8 # if you want to see what happens, use those flags
9 # verbose="true"
c07e6eb Moved externals in lib/externals.sh
sukria authored
10 # verbosedebug="true"
81c7b12 2005-12-05 Alexis Sukrieh <sukria@backup-manager.org>
sukria authored
11 # warnings="true"
12
13 # The conffile part of the test, see confs/* for details.
14 source confs/base.conf
15 source confs/tarball.conf
16
a0b9eb9 2005-12-05 Alexis Sukrieh <sukria@backup-manager.org>
sukria authored
17 export BM_ARCHIVE_ROOT="repository"
18 export BM_ARCHIVE_METHOD="tarball"
13b3f8e 2005-12-06 Alexis Sukrieh <sukria@backup-manager.org>
sukria authored
19 export BM_TARBALL_DIRECTORIES="$PWD"
784e08c 2006-06-27 Alexis Sukrieh <sukria@backup-manager.org>
sukria authored
20 export BM_TARBALL_FILETYPE="tar.gz"
8666282 Fixes for bug #82, BM_TARBALL_TARGETS[] replaces BM_TARBALL_DIRECTORIES
sukria authored
21 source $locallib/sanitize.sh
a0b9eb9 2005-12-05 Alexis Sukrieh <sukria@backup-manager.org>
sukria authored
22
81c7b12 2005-12-05 Alexis Sukrieh <sukria@backup-manager.org>
sukria authored
23 # The test actions
a0b9eb9 2005-12-05 Alexis Sukrieh <sukria@backup-manager.org>
sukria authored
24
0fe303c using [[ ]] instead of [ ] in test scripts
sukria authored
25 if [[ -e $BM_ARCHIVE_ROOT ]]; then
a0b9eb9 2005-12-05 Alexis Sukrieh <sukria@backup-manager.org>
sukria authored
26 rm -f $BM_ARCHIVE_ROOT/*
27 fi
28
083cb8b 2005-12-09 Alexis Sukrieh,,, <set EMAIL_ADDRESS environment variable>
sukria authored
29 bm_init_env
7a97ffd First try to put the "-u" flag.
sukria authored
30 bm_init_today
0c641e8 2006-03-24 Alexis Sukrieh <sukria@backup-manager.org>
sukria authored
31
c364bd5 + renamed create_archiev_root..... into create_directories
sukria authored
32 create_directories
81c7b12 2005-12-05 Alexis Sukrieh <sukria@backup-manager.org>
sukria authored
33 make_archives
34
13b3f8e 2005-12-06 Alexis Sukrieh <sukria@backup-manager.org>
sukria authored
35 name=$(get_dir_name $PWD long)
0fe303c using [[ ]] instead of [ ] in test scripts
sukria authored
36 if [[ -e "$BM_ARCHIVE_ROOT/$BM_ARCHIVE_PREFIX$name.$TODAY.master.tar.gz" ]]; then
17e148f Fixes the bug about paths with spaces.
sukria authored
37 rm -rf $BM_ARCHIVE_ROOT
a0b9eb9 2005-12-05 Alexis Sukrieh <sukria@backup-manager.org>
sukria authored
38 exit 0
39 else
40 exit 1
41 fi
Something went wrong with that request. Please try again.