Thank you for using ufw and reporting a bug. I don't think I want to support an import or export command. This files themselves are simple iptables-restore compatible files, so backing up is straightforward. The files to backup are:
/lib/ufw/*rules
/etc/ufw/*.rules
To backup everything, grab /lib/ufw, /etc/ufw and /etc/default/ufw.
I'm going to mark this as "Won't Fix" for now. Please feel free to file any other bugs you may find.
Thank you for using ufw and reporting a bug. I don't think I want to support an import or export command. This files themselves are simple iptables-restore compatible files, so backing up is straightforward. The files to backup are:
/lib/ufw/*rules
/etc/ufw/*.rules
To backup everything, grab /lib/ufw, /etc/ufw and /etc/default/ufw.
I'm going to mark this as "Won't Fix" for now. Please feel free to file any other bugs you may find.