Turnkey

Configuration console

# confconsole

Upgrades

Upgrade from Stretch to Buster

Set containers as nested for Apache and databases to work after upgrade from stretch to buster.

Also, after PHP update, set Apache to the new version (7.0 -> 7.3).

Upgrade from Buster to Bullseye

# gpg --keyserver keyserver.ubuntu.com --recv-keys 06320D6CBA57F60C
gpg: key 8310FB59244ED6FA: public key "TurnKey GNU/Linux Bullseye Main apt repo (GPG signing key for TurnKey Linux Bullseye Main apt repository) <release-bullseye-main@turnkeylinux.org>" imported
gpg: Total number processed: 1
gpg:               imported: 1

# gpg --export 06320D6CBA57F60C | apt-key add -
Warning: apt-key is deprecated. Manage keyring files in trusted.gpg.d instead (see apt-key(8)).
OK

Set containers as nested for Apache and databases to work after upgrade from buster to bullseye.

Also, after PHP update, set Apache to the new version (7.3 -> 7.4).

APT Mirrors

# cat /etc/apt/sources.list.d/sources.list 
deb http://mirror1.hs-esslingen.de/turnkeylinux/apt/debian buster main

deb http://ftp2.de.debian.org/debian buster main
deb http://ftp2.de.debian.org/debian buster contrib
#deb http://ftp2.de.debian.org/debian buster non-free
# cat /etc/apt/sources.list.d/security.sources.list 
deb http://mirror1.hs-esslingen.de/turnkeylinux/apt/debian buster-security main

deb http://security.debian.org/ buster/updates main
deb http://security.debian.org/ buster/updates contrib
#deb http://security.debian.org/ buster/updates non-free

Webmin

the user is root and has to have a password set

https://myturnkey.domain.local:12321/

tklbam

# tklbam-init --solo --force-profile=empty

Creating an empty profile, which means:

- We only backup files as included or excluded in the override paths specified
  on the command line or configured in /etc/tklbam/overrides

- We can't detect which files have changed since installation so we will
  indiscriminately backup all files in the included directories.

https://github.com/turnkeylinux/tklbam/blob/master/docs/tklbam-init.txt

tklbam-backup – Backup the current system

tklbam-backup --address=ssh://user[:password]@other.host[:port]/some_dir

Note: Alternate targets may require additional dependencies E.g. to use SSH you will need to install ‘python-paramiko’ (apt-get update && apt-get install python-paramiko). Currently the requirements of each target are not documented; however if you keep in mind that TKLBAM uses Duplicity as a back end, google should provide guidance.

tklbam-restore – Restore a backup