aboutsummaryrefslogtreecommitdiff
path: root/local/bin/system-backup
diff options
context:
space:
mode:
authorKarel Kočí <cynerd@email.cz>2016-10-15 19:22:44 +0200
committerKarel Kočí <cynerd@email.cz>2016-10-15 19:22:44 +0200
commit02a2196150b16ee1c343a5587cadb177016fe222 (patch)
tree8ef95619620a4689a12d26eff0a0287954a2cd3c /local/bin/system-backup
parentb17cad80bfaf348ce805868dc4b35211a4c32906 (diff)
downloadmyconfigs-02a2196150b16ee1c343a5587cadb177016fe222.tar.gz
myconfigs-02a2196150b16ee1c343a5587cadb177016fe222.tar.bz2
myconfigs-02a2196150b16ee1c343a5587cadb177016fe222.zip
Update files to changes done while abandoning systemd
Now I use openrc.
Diffstat (limited to 'local/bin/system-backup')
-rwxr-xr-xlocal/bin/system-backup7
1 files changed, 3 insertions, 4 deletions
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}')