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