diff --git a/2025-11-13-nightbase-migration/0001-temp-backup.sh b/2025-11-13-nightbase-migration/0001-temp-backup.sh new file mode 100755 index 0000000..6d49d46 --- /dev/null +++ b/2025-11-13-nightbase-migration/0001-temp-backup.sh @@ -0,0 +1,9 @@ +#!/usr/bin/env bash + +# 실행 안되면 램 64기가도 없는 허-접 +sudo mount -t tmpfs -o size=64G tmpfs /tmp/night-tmp --mkdir + +SOURCE_PATH=/x/nvme1/NightBase +DESTINATION_PATH=/tmp/night-tmp/NightBase + +sudo rsync -a --info=progress2 $SOURCE_PATH/ $DESTINATION_PATH diff --git a/2025-11-13-nightbase-migration/0002-partition.sh b/2025-11-13-nightbase-migration/0002-partition.sh new file mode 100755 index 0000000..7765f6f --- /dev/null +++ b/2025-11-13-nightbase-migration/0002-partition.sh @@ -0,0 +1,27 @@ +#!/usr/bin/env bash +set -e + +DISK_LABEL="ssd1" +DEVICE="/dev/nvme1n1" +MOUNT_POINT="/x/nvme1" + +sudo gdisk "$DEVICE" <