# along with this program. If not, see <http://www.gnu.org/licenses/>.
-set -e
+set -eu
if test "$#" -lt 2; then
echo "Usage: $0 <backups-directory> <arguments to rsync>" >&2
fi
-cd "$1" || exit 1
+cd "$1"
shift
# Get absolute path to last backup directory.