Script to send secrets
parent
cc945d0568
commit
c1195fad46
2
Brewfile
2
Brewfile
|
@ -33,8 +33,10 @@ brew "onefetch"
|
|||
brew "openjdk"
|
||||
brew "pinentry-mac"
|
||||
brew "poetry"
|
||||
brew "pyright"
|
||||
brew "restic"
|
||||
brew "ripgrep"
|
||||
brew "rsync"
|
||||
brew "rust-analyzer"
|
||||
brew "rustup-init"
|
||||
brew "shellcheck"
|
||||
|
|
|
@ -0,0 +1,16 @@
|
|||
#!/usr/bin/env bash
|
||||
# Send secrets from certain files to another trusted device.
|
||||
# WILL NOT DELETE FILES, BUT WILL OVERWRITE!
|
||||
|
||||
set -x
|
||||
|
||||
if [[ -z $1 ]]; then
|
||||
echo "Missing user@host to send to"
|
||||
exit 2
|
||||
fi
|
||||
|
||||
files="$HOME/.ssh $HOME/.gnupg $HOME/.wakatime.cfg"
|
||||
|
||||
rsync -rav \
|
||||
--exclude="$HOME/.ssh/id_*" --exclude="*.sock" \
|
||||
$files "${1}:"
|
|
@ -22,8 +22,8 @@ pathadd_head '/tmp/bin'
|
|||
pathadd_head "$HOME/.config/emacs/bin"
|
||||
|
||||
if [[ $HOST == "core.envs.net" ]]; then
|
||||
pathadd_tail '/envs/bin'
|
||||
pathadd_head "$HOME/public_html/files/bin"
|
||||
pathadd_tail '/envs/bin'
|
||||
pathadd_head "$HOME/public_html/files/bin"
|
||||
fi
|
||||
|
||||
# rust
|
||||
|
|
Loading…
Reference in New Issue