Commit 7adb2ef1 authored by Bjoern Nachtwey's avatar Bjoern Nachtwey
Browse files

second approach taking one of the daily snapshots for the weekly run

parent 48d33bda
#! /bin/bash
#
# inital approach without controlling the NetApp snapshot, just assume it's there :-)
# second approach taking one of the daily snapshots for the weekly run
#
###########################################################
# some settings
###########################################################
today=$(date "+%F");
# E-Mail
#email="tsm-team@gwdg.de"
email="bnachtw@gwdg.de"
# data path
dpath=/mnt/oc_stor_userdata
# snapshot path
spath=$dpath/.snapshot/tsm
spath=$(printf "%s/.snapshot/snap_daily.%s_2300" $dpath $today)
# working dir for backup
wpath=/tsm/ocnode
today=$(date "+%F");
###########################################################
# do backup
......@@ -29,7 +31,7 @@ then
fi
# 2. run backup using dsmci.pl using docker
docker run --rm -it \
docker run --rm \
-v /tsm:/tsm:rw \
-v /home:/home:ro \
-v /opt/tivoli/tsm/client/ba/bin:/opt/tivoli/tsm/client/ba/bin:ro \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment