restic-do: No longer provide list of packages/ repos

pull/1/head
earnest ma 2022-01-28 18:46:57 -05:00
parent 0629eb8ed9
commit 3e071aca29
Signed by: earnest ma
GPG Key ID: A343F43342EB6E2A
1 changed files with 4 additions and 11 deletions

View File

@ -58,18 +58,11 @@ case "$1" in
backup) backup)
cd ~ || exit 1 cd ~ || exit 1
echo "exporting list of packages" # No longer echo "exporting list of packages"
rm ~/.restore-info/packages-* # clear existing # clear existing: rm ~/.restore-info/packages-*
# https://unix.stackexchange.com/questions/82880/how-to-replicate-installed-package-selection-from-one-fedora-instance-to-another
# install w/ < $file xargs dnf -y install
dnf repoquery --qf '%{name}' --userinstalled \
| grep -v -- '-debuginfo$' \
| grep -v '^\(kernel-modules\|kernel\|kernel-core\|kernel-devel\)$' \
> ~/.restore-info/packages-${script_started}.txt
echo "exporting dnf repos list" # No longer echo "exporting dnf repos list"
rm ~/.restore-info/dnfrepos-* # clear existing # clear existing rm ~/.restore-info/dnfrepos-*
dnf repolist enabled > ~/.restore-info/dnfrepos-${script_started}.txt
echo "starting backup" echo "starting backup"
restic backup -r "$repo" \ restic backup -r "$repo" \