-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathb2b
More file actions
executable file
·39 lines (25 loc) · 723 Bytes
/
Copy pathb2b
File metadata and controls
executable file
·39 lines (25 loc) · 723 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/sh
set -e
fflag=off
while [ $# -gt 0 ]
do
case "$1" in
-f) fflag=on;;
esac
shift
done
$HOME/bin/mbooter
BUDIR=/Volumes/pool_fs_backupcm/mac/backup/Backup-`date "+%m%d%y"`
#BUDIR=/Volumes/poolbackup/mac/backup/Backup-`date "+%m%d%y"`
BUELIST=/Users/stephenfitch/bin/bufile.exclude
mkdir -p ${BUDIR}
if [ "${fflag}" = "on" ]; then
BUFILE=${BUDIR}/backup-`date "+%m%d%y"`-full.tar
BULIST=/Users/stephenfitch/bin/bufile.full.list
tar jcbf 2 ${BUFILE} --exclude-from ${BUELIST} -T ${BULIST}
else
BUFILE=${BUDIR}/backup-`date "+%m%d%y"`.tar
BULIST=/Users/stephenfitch/bin/bufile.list
tar jcvbf 131072 ${BUFILE} --exclude-from ${BUELIST} -T ${BULIST}
fi
$HOME/bin/ubooter