From 06c64532016c0ec5cd4aeeb2089f65e3a5cf1407 Mon Sep 17 00:00:00 2001 From: kneutron <50146127+kneutron@users.noreply.github.com> Date: Mon, 12 Apr 2021 17:19:03 -0500 Subject: [PATCH] moar descriptive --- ZFS/move-home-to-zfs.sh | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/ZFS/move-home-to-zfs.sh b/ZFS/move-home-to-zfs.sh index 726a8b4..30610f2 100644 --- a/ZFS/move-home-to-zfs.sh +++ b/ZFS/move-home-to-zfs.sh @@ -3,9 +3,12 @@ # DEPENDS: fdisk, parted, pstree, fuser, working zfs install # Strongly recommended to run from GNU SCREEN # Also you need to be on tty1 (or similar) logged in directly as root, NOT SUDO and preferably not ssh -# NOTE this script is interactive and will wait for multiple PK = press a key/enter to proceed -# DONE? - sep datasets for users +# NOTE this script is interactive and will wait for multiple PK = press a key/enter to proceed +# Will handle /home whether directly off root or mounted as a separate partition +# Will stop X window manager! (and restart it for you afterward, most of the time) + +# DONE/tested - sep datasets for users # DONE new disk needs to be at least = size of /home du -s -h # DONE free snapshot @@ -337,7 +340,8 @@ ls -al /$zp/home # xxxxx 2024.0404 EXPERIMENTAL but appears to work echo "$(date) + Beginning rsync /home to /$zp/home" -time rsync -r -t -p -o -g -v --delete -l -s \ +# -v +time rsync -r -t -p -o -g --delete -l -s \ --exclude=.thumbnails/* \ /home/ \ /$zp/home \ @@ -382,6 +386,8 @@ logecho "LABEL=home /home ext4 defaults,noauto,noatime,errors=remount-ro 0 1 # cleanup /bin/rm -f $tmpfile1 +ls -alh $logfile + exit; @@ -392,6 +398,8 @@ o parted, fdisk, blkid o pstree, lsof, fuser o tar, pv +# 2021 April - major changes + lrwxrwxrwx 1 9 Apr 26 13:20 usb-VBOX_HARDDISK-0:0 -> ../../sde lrwxrwxrwx 1 9 Apr 26 13:20 pci-0000:00:0b.0-usb-0:1:1.0-scsi-0:0:0:0 -> ../../sde lrwxrwxrwx 1 9 Apr 26 13:20 pci-0000:00:14.0-scsi-0:0:0:0 -> ../../sdb