09-03-2021
This commit is contained in:
@@ -9,7 +9,8 @@ if [ "$1" == "-h" ]; then
|
||||
echo " - my.cnf"
|
||||
echo " - .bash_profile, .bash_aliases"
|
||||
echo " - .config (folder)"
|
||||
echo " - .gitconfig"
|
||||
echo " - .dircolors"
|
||||
echo " - .gitconfig, .gitignore"
|
||||
echo " - .gnupg (folder)"
|
||||
echo " - /etc/hosts"
|
||||
echo " - .wg++"
|
||||
@@ -43,19 +44,20 @@ notification() {
|
||||
fi
|
||||
|
||||
if [[ "$OSTYPE" == "darwin"* ]] && [ -x "$(command -v terminal-notifier)" ]; then
|
||||
# BUG: No image on BigSur
|
||||
terminal-notifier -title "$1" -message "$message" -sound "$sound" -contentImage "$image"
|
||||
fi
|
||||
|
||||
fi
|
||||
}
|
||||
|
||||
copy() {
|
||||
if [[ -d $1 ]]; then cp -R $1 $2; fi
|
||||
if [[ -f $1 ]]; then cp $1 $2; fi
|
||||
if [[ -d $1 ]]; then cp -R "$1" "$2"; fi
|
||||
if [[ -f $1 ]]; then cp "$1" "$2"; fi
|
||||
}
|
||||
|
||||
# Backup folder
|
||||
# Backups folder
|
||||
|
||||
dest=$HOME/Documents/Configurations/SilverBook
|
||||
dest2="$HOME/pCloud Drive/Linux/Silverbook"
|
||||
|
||||
# Web: PHP / Apache / MySQL
|
||||
|
||||
@@ -101,6 +103,8 @@ copy $HOME/.zsh_plugins.sh "$dest_shell"
|
||||
copy $HOME/.zsh_plugins.txt "$dest_shell"
|
||||
copy $HOME/.zshrc "$dest_shell"
|
||||
|
||||
copy "$dest_shell" "$dest2"
|
||||
|
||||
#
|
||||
#echo '----------'
|
||||
#while read
|
||||
@@ -118,22 +122,26 @@ copy $HOME/.dircolors "$dest"
|
||||
copy $HOME/.exclude-rsync "$dest"
|
||||
copy $HOME/.gitconfig "$dest"
|
||||
copy $HOME/.gitignore "$dest"
|
||||
# https://gpgtools.tenderapp.com/kb/gpg-keychain-faq/backup-or-transfer-your-keys
|
||||
copy $HOME/.gnupg "$dest" #folder
|
||||
copy $HOME/.gnupg_pre_2.1 "$dest" #folder
|
||||
copy $HOME/.iterm2 "$dest" #folder
|
||||
copy $HOME/.kymsu "$dest" #folder
|
||||
gpg2 --output "$dest/.my.cnf.gpg" --recipient bruno.pesenti@orange.fr --encrypt $HOME/.my.cnf
|
||||
#copy $HOME/.my.cnf.gpg "$dest"
|
||||
copy $HOME/.nanorc "$dest"
|
||||
copy $HOME/.nanorc "$dest2"
|
||||
copy $HOME/.nanosyntax "$dest" #folder
|
||||
copy $HOME/.nanosyntax "$dest2" #folder
|
||||
gpg2 --output "$dest/.password.txt.gpg" --recipient bruno.pesenti@orange.fr --encrypt $HOME/.password.txt
|
||||
#copy $HOME/.password.txt.gpg "$dest"
|
||||
copy $HOME/.ssh "$dest" #folder
|
||||
copy $HOME/.ssh/config "$dest2" #folder
|
||||
copy $HOME/.vnc "$dest" #folder
|
||||
|
||||
copy /private/etc/hosts "$dest"
|
||||
|
||||
copy $HOME/Library/Application\ Support/Transmit "$dest" #folder
|
||||
copy "$HOME/Library/Application\ Support/Transmit" "$dest" #folder
|
||||
copy "$HOME/Library/Application\ Support/iTerm2" "$dest" #folder
|
||||
copy $HOME/Library/LaunchAgents "$dest" #folder
|
||||
copy $HOME/Documents/Scripts/kymsu2/plugins.d/Brewfile "$dest"
|
||||
copy $HOME/Documents/Scripts/kymsu2/plugins.d/Installed_SilverBook*.md "$dest"
|
||||
|
||||
Reference in New Issue
Block a user