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)
cd ~ || exit 1
echo "exporting list of packages"
rm ~/.restore-info/packages-* # clear existing
# 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
# No longer echo "exporting list of packages"
# clear existing: rm ~/.restore-info/packages-*
echo "exporting dnf repos list"
rm ~/.restore-info/dnfrepos-* # clear existing
dnf repolist enabled > ~/.restore-info/dnfrepos-${script_started}.txt
# No longer echo "exporting dnf repos list"
# clear existing rm ~/.restore-info/dnfrepos-*
echo "starting backup"
restic backup -r "$repo" \