borgmatic-base/scripts/pre_suse
2021-09-02 13:48:53 -04:00

11 lines
265 B
Bash
Executable file

#!/bin/bash
mkdir /etc/restore
rpm -qa | sort > /etc/restore/Package.versions.list
rpm -qa --queryformat '%{NAME}\n' | sort > /etc/restore/Package.list
cat > /etc/restore/restore.sh <<EOF
#!/bin/bash
cat /etc/restore/Package.list | xargs sudo zypper install
EOF