@gregorgrau So sieht das Skript aus:
https://pastebin.com/DuNHV3Cm
Das ganze einfach unter z.B. update.sh abspeichern und dann mit chmod +x update.sh ausführbar machen. Danach mit "sh update.sh" starten. Das Script ist jetzt für Debian. Aber die Updatebefehle kannste einfach für deine Distribution passend machen.
Backup Script Debian - Pastebin.com

Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

Pastebin