Compare commits
2 Commits
71507b1341
...
ff3f9f4eba
Author | SHA1 | Date |
---|---|---|
Asif Bacchus | ff3f9f4eba | |
Asif Bacchus | 15d2db16bd |
|
@ -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
|
||||
|
|
|
@ -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
|
Loading…
Reference in New Issue