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" echo "You're a server. Exiting"
return return
fi 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' echo '\a'
} }
elif test -f /etc/lsb-release; then 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 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 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 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 if ex sudo; then
alias s='sudo -Hu' alias s='sudo -Hu'
fi fi

View File

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