Merge branch 'master' of bitbucket.org:vishap/scripts

This commit is contained in:
2018-03-27 22:51:05 +01:00
5 changed files with 33 additions and 18 deletions

3
.gitmodules vendored Normal file
View File

@@ -0,0 +1,3 @@
[submodule "vim/bundle/Vundle.vim"]
path = vim/bundle/Vundle.vim
url = https://github.com/VundleVim/Vundle.vim.git

29
bin/backup.hdd.sh Executable file
View File

@@ -0,0 +1,29 @@
#!/bin/bash
DATE=/bin/date
SYNC=/usr/bin/rsync
TIMESTAMP=`$DATE +%Y%m%d-%H:%M%z`
HDD=/mnt/hdd
HDD_MIRROR=/mnt/hdd2
LOGFILE=/mnt/hdd/backup/backup.mybook.public.$TIMESTAMP.log
LOG=/usr/bin/tee -a $LOGFILE
echo Starting $LOG | $LOG
echo start `$DATE` | $LOG
function backup() {
DIR=$1
MIRROR_DIR=$(dirname $DIR)
$SYNC -auAXv --delete $HDD/$DIR $HDD_MIRROR/$MIRROR_DIR | $LOG
}
backup "public/_captured_MY_VIDEO"
backup "public/pix"
#$SYNC /mnt/mybook/Public/music/* /mnt/hdd/public/ | tee -a $LOG
backup "public/books"
backup "vahagn"
echo end `$DATE` | $LOG

View File

@@ -1,17 +0,0 @@
#!/bin/bash
DATE=/bin/date
SYNC="/usr/bin/rsync -auAX --delete"
TIMESTAMP=`$DATE +%Y%m%d-%H:%M%z`
LOG=/mnt/hdd/backup/backup.mybook.public.$TIMESTAMP.log
echo Starting $LOG | tee -a $LOG
echo start `$DATE` | tee -a $LOG
$SYNC /mnt/mybook/Public/_captured_MY_VIDEO /mnt/hdd/public/ | tee -a $LOG
$SYNC /mnt/mybook/Public/pix /mnt/hdd/public/ | tee -a $LOG
$SYNC /mnt/mybook/Public/music /mnt/hdd/public/ | tee -a $LOG
$SYNC /mnt/mybook/Public/books /mnt/hdd/public/ | tee -a $LOG
$SYNC /mnt/mybook/Public/map /mnt/hdd/public/ | tee -a $LOG
$SYNC /mnt/mybook/Public/src /mnt/hdd/public/ | tee -a $LOG
echo end `$DATE` | tee -a $LOG

1
vim/bundle/Vundle.vim Submodule

Submodule vim/bundle/Vundle.vim added at 9a38216a1c

View File

@@ -539,7 +539,6 @@ if filereadable(expand('~/.vim/bundle/Vundle.vim/README.md'))
" :GitGutterLineHighlightsToggle
"
Plugin 'airblade/vim-gitgutter'
set signcolumn=yes
let g:gitgutter_map_keys = 0
let g:gitgutter_realtime = 0
let g:gitgutter_eager = 0