It's likely that your projects are already backed up to GitHub or some similar hosting service. However, the code itself does not suffice for a complete backup. You might need to take a copy of environmental variables, SSH keys, settings, files and more.
The following guide is not meant to be exhaustive, but acts as a starting point for organizing the backup process. Note you will need to replace $volume with the actual name of your backup volume.
List the currently installed applications on your system and store them on a txt file.
ls -l /Applications/ > /$volume/applications.txtcp -r ~/.ssh /$volume/cp -r /$volume/.ssh ~/gpg --armor --export > /$volume/pgp-public-keys.asc
gpg --armor --export-secret-keys > /$volume/pgp-secret-keys.asc
gpg --armor --export-ownertrust > /$volume/pgp-ownertrust.ascgpg --import /$volume/pgp-public-keys.asc
gpg --import /$volume/pgp-private-keys.asc
gpg --import-ownertrust /$volume/pgp-ownertrust.asccd $workspaceDir
find . -iname '*.env' -exec rsync -R "{}" /$volume/Workspace \;rsync -avzh /$volume/Workspace $workspaceDircp ~/.bash_profile /$volume/cp /$volume/.bash_profile ~/cp ~/.npmrc /$volume/cp /$volume/.npmrc ~/cp ~/.gitconfig /$volume/cp /$volume/.gitconfig ~/-
Backup the external key file (if any)
cp ~/keepass.key /$volume/
-
Backup the kdbx database itself.
cp ~/keepass.kdbx /$volume/
Simply restore the files to a directory of preference and locate them via the KeePassXC app.
Use the browser interface to backup/restore your bookmarks.
brew bundle dump --file /$volume/homebrew-dumpbrew bundle install --file /$volume/homebrew-dump