#!/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 . # 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