Use new address for borg

This commit is contained in:
Austen Adler 2016-09-29 17:32:02 -04:00
parent 813b963e77
commit 1357592606
No known key found for this signature in database
GPG Key ID: 7ECEE590CCDFE3F1
2 changed files with 11 additions and 5 deletions

View File

@ -187,7 +187,13 @@ if test -f /etc/gentoo-release; then
echo "You're a server. Exiting"
return
fi
sudo zsh -c "(git -C /usr/portage pull&&(find /usr/portage -type f -exec chmod 644 {} \; ;find /usr/portage -type d -exec chmod 755 {} \;))&&echo Done pulling&&eix-update&&echo Done with eix"
sudo rm '/usr/portage/metadata/timestamp.chk'
if ex eix-update; then
sudo emaint sync -a
else
sudo zsh -c "echo Starting pull;emaint sync -a&&echo Done pulling&&eix-update&&echo Done with eix"
fi
sudo -k
echo '\a'
}
elif test -f /etc/lsb-release; then
@ -228,7 +234,7 @@ fi
alias stdns="sudo sh -c 'echo nameserver 8.8.8.8 > /etc/resolv.conf'"
alias fvim="vim -u NONE +\"so ~/.vim/plugged/flappyvird-vim/plugin/flappyvird.vim\" +\"so ~/.vim/plugged/flappyvird-vim/autoload/flappyvird.vim\" +\":FlappyVird\" +\":q\""
alias fk='k `fzf --no-mouse -m -1 -x`'
alias susp="sudo true&&((slock;sleep 2;nmcli radio wifi off;nmcli radio wifi on)&echo mem | sudo tee /sys/power/state >/dev/null)"
alias susp="sudo true&&((slock;sleep 2;nmcli radio wifi off;nmcli radio wifi on)&echo mem | sudo tee /sys/power/state >/dev/null);sudo -k"
if ex sudo; then
alias s='sudo -Hu'
fi

View File

@ -1,4 +1,4 @@
REPO="aw:backup/backup.borg"
REPO="aw:borg"
b-list() {
if [[ -z "$1" ]]; then
column -t <(borg list "$REPO")
@ -29,7 +29,7 @@ b-info() {
borg info "$REPO"::"$1"
}
b-diff() {
REPO="aw:backup/backup.borg"
REPO="aw:borg"
borg list "$REPO"
echo -n "First ID: "
read ID1
@ -87,7 +87,7 @@ b-diff() {
echo "$COMPLETED_FILE2"
}
b-size() {
REPO="aw:backup/backup.borg"
REPO="aw:borg"
borg list "$REPO"
echo -n "ID: "
read ID