How to backup addons

Here’s a quick-and-dirty script I use:

#!/bin/sh
# "list-addons"
# prints a text list of installed addons, in order of installation, and
# redirects the output to ~/addons.txt`

ls -tr  /opt/pakfire/db/installed | \
sed '1,$s/meta-//' | grep -v "core-upgrade" > ~/addons.txt