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 appsgiskard
parent
7e92b4e268
commit
9b635cb964
|
@ -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
|
||||
}
|
|
@ -0,0 +1,6 @@
|
|||
|
||||
module_load acl
|
||||
snd_share () {
|
||||
parent=${1:-$PWD}
|
||||
share_dir -o sysadmin -g users $parent sysadmin david
|
||||
}
|
|
@ -1 +1 @@
|
|||
path_append /opt/node-global-apps/bin
|
||||
path_append /opt/node-apps/bin
|
||||
|
|
Reference in New Issue