summaryrefslogtreecommitdiffstats
path: root/.bin/create-local-backup
blob: 4e4cb1b3e9364b6c43ad071cdc64b245cb98e8a7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

set -xe

source_directories="./git.rgoncalves.se/
	./
	"

out_dir=$(readlink -f "${1}")

[ -d "${out_dir}" ]

exit
rsync -hvrPt \
	--delete-after \
	--fuzzy \
	--prune-empty-dirs \
	--include "*.pdf" \
	--include "*.epub" \
	--include "*.png" \
	--include "*.jpg" \
	--include "*/" \
	--exclude "*" \
	"${src_dir}/" "${out_dir}/"
remember that computers suck.