diff --git a/Arch-Linux/Base_installation.md b/Arch-Linux/Base_installation.md index 33035a3..368adbc 100644 --- a/Arch-Linux/Base_installation.md +++ b/Arch-Linux/Base_installation.md @@ -63,7 +63,7 @@ mkfs.ext4 /dev/nvme0n1p2 # Create the filesystem for the root partition mount /dev/mapper/root /mnt # Mount the root mapper on /mnt mkdir /mnt/efi # Create the ESP directory mount /dev/nvme0n1p1 /mnt/efi # Mount ESP -mkswap -U clear --size 8G --file /mnt/swapfile # Create a swapfile +mkswap -U clear --size 4G --file /mnt/swapfile # Create a swapfile swapon /mnt/swapfile # Activate the swapfile pacstrap /mnt base linux linux-firmware # Install the base system on the root partition genfstab -U /mnt >> /mnt/etc/fstab # Generate the fstab @@ -75,7 +75,7 @@ genfstab -U /mnt >> /mnt/etc/fstab # Generate the fstab mount /dev/nvme0n1p2 /mnt # Mount the root partition on /mnt mkdir /mnt/efi # Create the ESP directory mount /dev/nvme0n1p1 /mnt/efi # Mount ESP -mkswap -U clear --size 8G --file /mnt/swapfile # Create a swapfile +mkswap -U clear --size 4G --file /mnt/swapfile # Create a swapfile swapon /mnt/swapfile # Activate the swapfile pacstrap /mnt base linux linux-firmware # Install the base system on the root partition genfstab -U /mnt >> /mnt/etc/fstab # Generate the fstab diff --git a/Dotfiles/General/system-backup.sh b/Dotfiles/General/system-backup.sh index 57ccc32..bd5a175 100644 --- a/Dotfiles/General/system-backup.sh +++ b/Dotfiles/General/system-backup.sh @@ -14,6 +14,7 @@ mkdir -p "${backup_dir}" rsync_cmd() { rsync -aAXHv --delete \ --exclude "${backup_dir}"'/*' \ + --exclude='/swapfile' \ --exclude='/dev/*' \ --exclude='/proc/*' \ --exclude='/sys/*' \