From 02a2196150b16ee1c343a5587cadb177016fe222 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karel=20Ko=C4=8D=C3=AD?= Date: Sat, 15 Oct 2016 19:22:44 +0200 Subject: Update files to changes done while abandoning systemd Now I use openrc. --- local/bin/system-backup | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'local/bin/system-backup') diff --git a/local/bin/system-backup b/local/bin/system-backup index e19889d..956ba31 100755 --- a/local/bin/system-backup +++ b/local/bin/system-backup @@ -1,11 +1,9 @@ #!/bin/bash # vim:ft=sh # New line separated list of all directories to backup -read -d '' DIRS <<-"_EOF_" -/etc +DIRS="/etc /home -/home_hdd -_EOF_ +/home_hdd" # Path where backup will be mounted MPATH=/media/backup-hdd # UUID of disk @@ -18,6 +16,7 @@ if [ `id -u` -ne "0" ]; then echo Please run this as root. exit 1 fi +set -e # Mount disk PART=$(lsblk -fpl | grep "$UUID" | awk '{print $1}') -- cgit v1.2.3