diff --git a/bin/alltheconfigs.sh b/bin/alltheconfigs.sh deleted file mode 100755 index 6b71e30..0000000 --- a/bin/alltheconfigs.sh +++ /dev/null @@ -1,28 +0,0 @@ -#!/bin/bash - -# this little script backs up all the config files that matter - -dotfiles=~/utils/dotfiles -MEGA="MEGA/Private" - -params="auP" -if [ "$1" == "-d" ]; then - params="aunP" # rsync -n for dry run -fi - -rsync -$params /etc/X11/Xresources $dotfiles/etc/X11 - -rsync -$params ~/alltheconfigs.sh $dotfiles - -rsync -$params ~/.vimrc $dotfiles/vimrc -#rsync -$params ~/.gvimrc $dotfiles/gvimrc really using just vimrc -rsync -$params ~/.zshrc $dotfiles/zsh/zshrc - -#rsync -$params ~/$MEGA/backups/authenticator.sh $dotfiles/backups -rsync -$params ~/$MEGA/backups/createarchive.sh $dotfiles/backups - -rsync -$params ~/$MEGA/fedora-backup/fedora-setup/fedora-setup.sh $dotfiles/setup-env -rsync -$params ~/$MEGA/fedora-backup/fedora-setup/deploy-dotfiles.sh $dotfiles/setup-env -rsync -$params ~/$MEGA/fedora-backup/fedora-setup/EASetup.sh $dotfiles/setup-env - -rsync -$params ~/.oh-my-zsh/themes/myowntheme* $dotfiles/zsh/oh-my-zsh/themes diff --git a/bin/gethugo b/bin/gethugo deleted file mode 100755 index 575c322..0000000 --- a/bin/gethugo +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/bash - -PATH=~/.local/bin:$PATH - -if [ -z $1 ]; then - echo "[x] HUGO_VERSION is not set, pass it as \$1" - exit 9001 -else - HUGO_VERSION=$1 -fi - -if [ $(hugo version | grep -q ${HUGO_VERSION}; echo $?) -eq 0 ]; then - echo "[*] which hugo: $(which hugo)" - echo "[*] already on $HUGO_VERSION, exiting..." - exit 0 -fi - -nutmp=$(mktemp -d);cd "$nutmp";unset nutmp - -WORKDIR=$(pwd) -HOMEBIN="/home/$USER/.local/bin" -mkdir -pv $HOMEBIN - -echo "[*] downloading hugo version \"$HUGO_VERSION\"" -curl -sL https://github.com/gohugoio/hugo/releases/download/v${HUGO_VERSION}/hugo_extended_${HUGO_VERSION}_Linux-64bit.tar.gz | bsdtar xfv - -mv -vf hugo ${HOMEBIN} - -cd .. -rm -rfv $WORKDIR -echo "[*] hugo updated to version $HUGO_VERSION" diff --git a/bin/getnebulaconfigs b/bin/getnebulaconfigs deleted file mode 100755 index c69b5f3..0000000 --- a/bin/getnebulaconfigs +++ /dev/null @@ -1,23 +0,0 @@ -#!/bin/bash - -# simple config backup script for nebula -remote="root@dotya.ml" -myrsync="rsync -auvP" -dest=~/utils/nebula - -cd $dest - -$myrsync $remote:/etc/gitea/app.ini . & -$myrsync $remote:/etc/nginx/nginx.conf . & -$myrsync $remote:/etc/redis/redis.conf . & -$myrsync $remote:/etc/smtpd/{smtpd.conf,mailname,aliases,vdoms,vusers,creds} ./smtpd & -$myrsync $remote:/etc/ssh/sshd_config . & -$myrsync $remote:/etc/fstab . & -$myrsync $remote:/etc/crypttab . & -$myrsync $remote:/etc/lvm/lvm.conf . & - -$myrsync $remote:/root/.zshrc ./root/zshrc -$myrsync $remote:/root/.ssh/ ./root/ssh - -$myrsync $remote:/home/vis/.ssh/ ./vis/ssh -$myrsync $remote:/home/vis/.config/ --exclude="*Bittorrent-data*" ./vis/config