Compare commits

...

2 Commits

Author SHA1 Message Date
Asif Bacchus ff3f9f4eba Fixed error in borg config sample 2018-10-16 09:26:29 -06:00
Asif Bacchus 15d2db16bd Changed ncMaint to use sudo instead of su to allow non-interactive accts 2018-10-16 09:25:45 -06:00
2 changed files with 5 additions and 5 deletions

View File

@ -142,10 +142,10 @@ function checkExist {
### ncMaint - pass requested mode change type to NextCloud occ
function ncMaint {
su -c "php ${ncRoot}/occ maintenance:mode --$1" - "${webUser}" \
>> "$logFile" 2>&1
maintResult="$?"
return "$maintResult"
sudo -u ${webUser} php ${ncroot}/occ maintenance:mode --$1 \
>> "$logFile" 2>&1
maintResult="$?"
return "$maintResult"
}
### cleanup - cleanup files and directories created by this script

View File

@ -4,5 +4,5 @@
<password for SSH key/repo> pAsSwOrd
<path to file listing extra files> /root/NCscripts/xtraLocations.borg
<path to file with exclusions> /root/NCscripts/excludeLocations.borg
<purge timeframe options> --keep-within=7 --keep-daily=30 --keep-weekly=12 --keep-monthly=-1
<purge timeframe options> --keep-within=7d --keep-daily=30 --keep-weekly=12 --keep-monthly=-1
<location of borg remote instance> borg1