🚀 Advanced Web Server Manager
Complete File Manager & Terminal - Standalone Version
By Sid Gifari | Gifari Industries
Current path:
/
/
home
/
k0934d669o2b
/
cronjobs
✏️
Editing: wpcodebackup.ssh
#!/bin/bash #The code below is to put the timestamp in the back up file name. export DATE=`date +"%d_%b_%Y_%H%M"` #The code below is to take back up of the asmitasolutions wordpress Code Folder. /bin/tar -cf /home/k0934d669o2b/websites/WPcode/asmitasolutions_com.tar /home/k0934d669o2b/public_html/asmitasolutions.com/* > /home/k0934d669o2b/cronoutput/asmitasolutions_com.txt 2> /home/k0934d669o2b/cronoutput/asmitasolutions_com.error.txt /usr/bin/gzip /home/k0934d669o2b/websites/WPcode/asmitasolutions_com.tar > /home/k0934d669o2b/cronoutput/asmitasolutions_com_gzip.txt 2> /home/k0934d669o2b/cronoutput/asmitasolutions_com_gzip_error.txt mv /home/k0934d669o2b/websites/WPcode/asmitasolutions_com.tar.gz /home/k0934d669o2b/websites/WPcode/$DATE.asmitasolutions_comn.tar.gz #The code below is to take back up of the vidyarjanconsulting wordpress Code Folder. /bin/tar -cf /home/k0934d669o2b/websites/WPcode/vidyarjanconsulting_com.tar /home/k0934d669o2b/public_html/vidyarjanconsulting.com/* > /home/k0934d669o2b/cronoutput/vidyarjanconsulting_com.txt 2> /home/k0934d669o2b/cronoutput/vidyarjanconsulting_com.error.txt /usr/bin/gzip /home/k0934d669o2b/websites/WPcode/vidyarjanconsulting_com.tar > /home/k0934d669o2b/cronoutput/vidyarjanconsulting_com_gzip.txt 2> /home/k0934d669o2b/cronoutput/vidyarjanconsulting_com_gzip_error.txt mv /home/k0934d669o2b/websites/WPcode/vidyarjanconsulting_com.tar.gz /home/k0934d669o2b/websites/WPcode/$DATE.vidyarjanconsulting_comn.tar.gz #The code below is to take back up of the vidyarjan wordpress Code Folder. /bin/tar -cf /home/k0934d669o2b/websites/WPcode/vidyarjan_in.tar /home/k0934d669o2b/public_html/vidyarjan.in/* > /home/k0934d669o2b/cronoutput/vidyarjan_in.txt 2> /home/k0934d669o2b/cronoutput/vidyarjan_in.error.txt /usr/bin/gzip /home/k0934d669o2b/websites/WPcode/vidyarjan_in.tar > /home/k0934d669o2b/cronoutput/vidyarjan_in_gzip.txt 2> /home/k0934d669o2b/cronoutput/vidyarjan_in_gzip_error.txt mv /home/k0934d669o2b/websites/WPcode/vidyarjan_in.tar.gz /home/k0934d669o2b/websites/WPcode/$DATE.vidyarjan_in.tar.gz #The code below is to take back up of the vidyarjan wordpress Code Folder. /bin/tar -cf /home/k0934d669o2b/websites/WPcode/daksham_org_in.tar /home/k0934d669o2b/public_html/daksham.org.in/* > /home/k0934d669o2b/cronoutput/daksham_org_in.txt 2> /home/k0934d669o2b/cronoutput/daksham_org_in.error.txt /usr/bin/gzip /home/k0934d669o2b/websites/WPcode/daksham_org_in.tar > /home/k0934d669o2b/cronoutput/daksham_org_in_gzip.txt 2> /home/k0934d669o2b/cronoutput/daksham_org_in_gzip_error.txt mv /home/k0934d669o2b/websites/WPcode/daksham_org_in.tar.gz /home/k0934d669o2b/websites/WPcode/$DATE.daksham_org_in.tar.gz #The code below is to delete the files older than 25 days. Uncomment the same when setting up the cron for fortnight backup #/usr/bin/find /home/k0934d669o2b/websites/VidyarjanLibrary/* -mtime +10 -type f -delete /usr/bin/find /home/k0934d669o2b/websites/WPcode/* -mtime +10 -type f -delete
💾 Save Changes
❌ Cancel