|
|
|
@ -1,7 +1,7 @@
|
|
|
|
|
--- |
|
|
|
|
title: My backup system |
|
|
|
|
tags: [bash, shell, backup, rsync, LUKS, cryptsetup, sync] |
|
|
|
|
updated: 2019-05-01 15:17 |
|
|
|
|
updated: 2019-05-01 17:30 |
|
|
|
|
description: A detailed exaplanation of my backup system which is both encrypted and unencrypted for different purposes. |
|
|
|
|
--- |
|
|
|
|
|
|
|
|
@ -155,6 +155,7 @@ DST="${2}"
|
|
|
|
|
&& printf "%s\n" 'check inputs' 2>&1 && exit 1 |
|
|
|
|
[ ${UID} -ne 0 ] && printf "%s\n" 'user must be root' 2>&1 && exit 1 |
|
|
|
|
|
|
|
|
|
START=$(date +%s) |
|
|
|
|
if [ "${SRC}" = '/*' ]; then |
|
|
|
|
# Use the exclude option to avoid infinite loops due to symlinks and to |
|
|
|
|
# avoid backing up the /data mountpoint. |
|
|
|
|