maintancemode

This commit is contained in:
Shihaam Abdul Rahman 2022-05-18 17:26:09 +05:00
parent ab05330e40
commit 63f61de636
Signed by: shihaam
GPG Key ID: 16ADCF6871CB2A56
2 changed files with 6 additions and 2 deletions

View File

@ -8,8 +8,9 @@ FILENAME=$(echo $WORKINGDIR-$DATETIME.tar.gz)
mkdir /tmp/$WORKINGDIR mkdir /tmp/$WORKINGDIR
TMPDIR=$(echo /tmp/$WORKINGDIR) TMPDIR=$(echo /tmp/$WORKINGDIR)
$STOP_SERVICE
tar czf $TMPDIR/$FILENAME . tar czf $TMPDIR/$FILENAME .
$START_SERVICE
cd /tmp/$WORKINGDIR cd /tmp/$WORKINGDIR
#check if file size over 1.9GB, Split by 1.8GB if so #check if file size over 1.9GB, Split by 1.8GB if so

View File

@ -6,4 +6,7 @@ TG_CHATID=''
### Change to a private hosted Telegram Bot API if compressed dir is over 50MB ### Change to a private hosted Telegram Bot API if compressed dir is over 50MB
TG_BOTAPI='https://api.telegram.org/bot' TG_BOTAPI='https://api.telegram.org/bot'
# Compression # Start and start service command, This could be a systemctl or screen or whatever else command
STOP_SERVICE='echo Mainanace mode on'
START_SERVICE='echo Mainanace mode off'