1 files changed, 12 insertions(+), 1 deletions(-)
M backup
M backup => backup +12 -1
@@ 10,12 10,23 @@ dir="$1"
comm -23 <(pacman -Qqe | sort) \
<((echo base; pacman -Qqg base-devel) | sort) \
> "$dir/packages.txt"
+
+sudo rm -rf "$dir/system"
+sudo mkdir -p "$dir/system"
+sudo rsync -arR \
+ --progress \
+ $(pacman -Qii | awk '/^MODIFIED/ {print $2}') \
+ $(sudo lostfiles) \
+ "$dir/system"
+
+mkdir -p "$dir/$(basename "$HOME")"
rsync -ar \
--delete-excluded \
--files-from="$HOME/.config/backup/config" \
--filter ":-n .gitignore" \
--progress \
- "$HOME" "$dir/$(basename "$HOME")"
+ "$HOME" \
+ "$dir/$(basename "$HOME")"
function is_btrfs_subvolume {
local dir="$1"