restic-do: No longer provide list of packages/ repos
parent
0629eb8ed9
commit
3e071aca29
|
@ -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" \
|
||||
|
|
Loading…
Reference in New Issue