Backup config files with script

You are trying to create a folder using a variable identifer for your current user

Change to $USER - and remove sudo

Backing up your important .dotfiles using github is mostly OK - great care must be exercised as some configuration contains sensitive information - e.g. .netrc

Do not use sudo
Do not create a folder in /home

3 Likes