Read the statement by Michael Teeuw here.
Question about backup script
-
@rkorell no… you can store config settings for git (the source code repository tool MagicMirror uses and most modules use (…git clone))
and the way to make the repository that the backup uses -
@sdetweil as far as google told me it seems, I need to install Git CLI - which is not easy available for Raspi.
Any hint?
Sorry!
Ralf -
O.K,. Google is not my friend today…
It seems that a “.gitconfig” file will do the trick …
Will double check. -
Nope.
Doesnt’t work.
Have created a “.gitconfig” file withgit config --global --edit
Entered user, email and password - but your script asks again for “user” …
???
Thanks
Ralf -
@rkorell the SCRIPT does not prompt
I use these git config parms
if [ "$user_name." == "." ]; then # prompt for users name git config --local user.name $user_name else git config --local user.name $user_name fi if [ "$email." == "." ]; then # prompt for email address git config --local user.email $email else git config --local user.email $email fi
git will prompt
-
@rkorell you HAVE the git cli
git --help
(–local means in this folder only)git config --local user.name “your name”
git config --local user.email “your email”see here
https://stackoverflow.com/questions/35942754/how-can-i-save-username-and-password-in-git
and username means github userid
-
@sdetweil said in Question about backup script:
@rkorell the SCRIPT does not prompt
I use these git config parmsOK, where do you get this from?
If I have a look at your other post „local means this folder only“ let me assume that you may look at „$HOME/MagicMirror/.gitconfig“
Is this true?
Than this cannot work because mygit config --global --edit
created a .gitconfig in $HOME …
Will at least try your suggestion with git config … (THANKS for this - the stackoverflow article will be chacked as well)
Warmest regards,
Ralf
-
@rkorell if you don’t have a global ($HOME) git config,
i dont presume to decide this for you.
so i only set it in the MM_backup folder -
@rkorell git will look local first and global second
-