added custom backup functions

added snd_share function to change ACL and ownership of a directory to sysadmin and david
modified path to node global apps
giskard
Kebler Network System Administrator 2021-02-18 08:31:01 -08:00
parent 7e92b4e268
commit 9b635cb964
3 changed files with 22 additions and 1 deletions

15
giskard/function/backups Normal file
View File

@ -0,0 +1,15 @@
#!/bin/bash
giskard_opt_bu () {
backup -s -o '\-v3' /opt /backup/opt/
# trantor host needs to be in config file
backup -s -o '\-v5' -u sysadmin -h trantor /opt /media/sysadmin/snapshots/giskard/opt
}
giskard_active_bu () {
backup -s -o '\-v3' /mnt/Alldata/hacking/active /backup/active/
# 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
}

6
giskard/function/share Normal file
View File

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

View File

@ -1 +1 @@
path_append /opt/node-global-apps/bin
path_append /opt/node-apps/bin