add gnome-terminal alias (for use with vscode)

golang install for giskard
snd share added write permission
giskard
Kebler Network System Administrator 2021-04-14 11:08:19 -07:00
parent 0714ab3d81
commit 488267752d
4 changed files with 46 additions and 6 deletions

1
giskard/alias/apps Normal file
View File

@ -0,0 +1 @@
alias term="GNOME_TERMINAL_SCREEN='' gnome-terminal"

View File

@ -1,15 +1,44 @@
#!/bin/bash #!/bin/bash
giskard_opt_bu () { giskard_opt_bu () {
backup -s -o '\-v3' /opt /backup/opt/ backup -s -o '\-v5' /opt /backup/opt/
# trantor host needs to be in config file # trantor host needs to be in config file
backup -s -o '\-v5' -u sysadmin -h trantor /opt /media/sysadmin/snapshots/giskard/opt backup -s -o '\-v5' -u sysadmin -h trantor /opt /backup/giskard/opt
} }
rbu-test () {
echo sudo /usr/bin/rdiff-backup -v4 \
--exclude-globbing-filelist /mnt/AllData/hacking/active/exclude.bac \
--remote-schema "/usr/bin/ssh -T %s '/usr/bin/rdiff-backup --server'" \
/mnt/AllData/hacking/active \
xtrantor::/backup/giskard/active-hacking
}
bu-test () {
/usr/bin/rdiff-backup -v4 \
--exclude-globbing-filelist /mnt/AllData/hacking/active/exclude.bac \
--remote-schema "/usr/bin/ssh -T -F $SSH_CONFIG %s '/usr/bin/rdiff-backup --server'" \
/mnt/AllData/hacking/active \
trantor::/backup/giskard/active-hacking
}
giskard_active_bu () { giskard_active_bu () {
backup -s -o '\-v3' /mnt/Alldata/hacking/active /backup/active/ backup -s -o '\-v4' /mnt/AllData/hacking/active /backup/active/
# trantor host needs to be in root's config file # trantor host needs to be in root's config file
backup -s -o '\-v5' -u sysadmin -h trantor /mnt/AllData/hacking/active /media/sysadmin/snapshots/giskard/active-hacking backup -s -o '\-v4' -u sysadmin -h trantor /mnt/AllData/hacking/active /backup/giskard/active-hacking
} }
giskard_users_bu () {
backup -s -o '\-v3' /mnt/AllData/users /backup/users
# trantor host needs to be in root's config file
#backup -s -o '\-v5' -u sysadmin -h trantor /mnt/AllData/hacking/active /media/sysadmin/snapshots/giskard/active-hacking
}
giskard_hacking_bu () {
sudo rsync --exclude *[C]ache* --exclude node_modules --exclude kernel/ --progress -aAru /mnt/AllData/hacking/ /backup/hacking
}

10
giskard/function/golang Normal file
View File

@ -0,0 +1,10 @@
#!/bin/bash
module_load golang-install
module_load acl
echo loaded golang func
golang() {
golang_install -e m
if [[ $? -eq 0 ]]; then
share_dir -w -o sysadmin -g users /opt/go sysadmin david
fi
}

View File

@ -2,5 +2,5 @@
module_load acl module_load acl
snd_share () { snd_share () {
parent=${1:-$PWD} parent=${1:-$PWD}
share_dir -o sysadmin -g users $parent sysadmin david share_dir -w -o sysadmin -g users $parent sysadmin david
} }