? Script Autobackup Multics in the email.

Step 1.
install mutt ( email client )

Ubuntu/Debian :

Code:
apt-get install mutt

Centos :

Code:
yum -y install mutt

Step2
download script and edit this line as you see the samples.

Code:
echo "backup in proccess" | mutt -a "/var/mcsbackup.tar.gz" -s "mcsbackup" -- YourEmail@whatever.com

Step3.
upload it at /usr/script/
( if you dont have a “script” folder just create it.

Step4.
Edit your Crontab and add this line before “Exit 0”

Code:
0 0 * * * root /var/script/autobackup.sh

Download Script

download-button-20100510

now restart your vps. and your script will run every midnight.

Share Button

Leave a Reply: