aboutsummaryrefslogtreecommitdiff
path: root/rsync-backup
blob: 86bff28f258329d211dfc7f83e64de66bac02535 (plain)
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
#!/usr/bin/env bash
#
# rsync-backup - a backup script using rsync.
#
# Copyright 2015 - 2019 Einhard Leichtfuß
#
# This file is part of rsync-backup.
#
# rsync-backup is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# rsync-backup is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with rsync-backup.  If not, see <https://www.gnu.org/licenses/>.
#


typeset -r full_exec_name="$(realpath "$0")"
typeset -r exec_name="${full_exec_name##*/}"
typeset -r source_code_dir="${full_exec_name%/*}"

cd "$source_code_dir"

# Include the other files.
. ./variables
. ./files
. ./write
. ./remote
. ./local
. ./source
. ./destination


main "$@"

# vi: ft=bash ts=2 sw=2 noet