~carloabelli/bin

6feac34fcb18933207f22c3efb108aa278d1bb84 — Carlo Abelli 19 days ago f9ae40e
Improve backup script
1 files changed, 2 insertions(+), 2 deletions(-)

M backup
M backup => backup +2 -2
@@ 5,5 5,5 @@ if [ "$#" -ne 1 ]; then
    exit 1
fi

comm -23 <(pacman -Qqe | sort) <({echo base; pacman -Qqg base-devel} | sort) > "$1/packages.txt"
rsync -ar --delete --progress --files-from="$HOME/.config/backup/config" "$HOME" "$1"
comm -23 <(pacman -Qqe | sort) <((echo base; pacman -Qqg base-devel) | sort) > "$1/packages.txt"
rsync -ar --delete --progress --files-from="$HOME/.config/backup/config" "$HOME" "$1/$(basename "$HOME")"