Junk

Junk Commit Details

Date:2019-02-12 20:47:17 (5 months 10 days ago)
Author:Nicola Fontana
Branch:master
Commit:ffc058d050e3e66a476457b03203c67a5ba9008b
Parents: 6e14a2271251725782cc151f727f7687c144dacb
Message:bupshot: initial import

Changes:
Amisc/bupshot (full)

File differences

misc/bupshot
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
40
41
42
#!/bin/sh
die() {
echo "$1." >&2
echo "Usage: $0 NAME FOLDER [ ... ]" >&2
exit 1
}
info() {
echo "$1"
}
test -n "$1" || die "Backup name required"
test -n "$2" || die "At least one folder is required"
name=$1
shift
folders="$@"
for d in $folders
do
test -d "$d" || die "Folder '$d' not found"
done
info "Indexing folders"
bup index \
--exclude 'tmp/' \
--exclude '.vim/tmp/' \
--exclude 'docs/download/' \
--exclude '.local/share/Trash/' \
$folders
info "Saving folders"
bup save \
-n "$name" \
$folders
info "Performing filesystem checks"
bup fsck \
-r

Archive Download the corresponding diff file

Branches