#!/bin/sh
# Script to Backup code to Amazon S3
backup_files=."/mnt/logs_bkp_archive_old"
access_log="/mnt/logs_old_archive/access_backup"
app_log="/mnt/logs_new_archive_old/txt_backup/"
# S3 location
s3_loc="s3://bkp-logs"
# Create archive filename.
day=$(date +%y%m%d)
#s3cmd put --recursive --preserve --storage-class STANDARD_IA /mnt/logs_bkp_arch ive_old/backup/2015/70_logs s3://backup/
mail -s 'BKP logs copied to S3' test@gmail.com test222@gmail<< EOF
Hello,
BKP logs are copied to s3 $day.
Have a Nice Day.
Regards,
IT Team
EOF
# Script to Backup code to Amazon S3
backup_files=."/mnt/logs_bkp_archive_old"
access_log="/mnt/logs_old_archive/access_backup"
app_log="/mnt/logs_new_archive_old/txt_backup/"
# S3 location
s3_loc="s3://bkp-logs"
# Create archive filename.
day=$(date +%y%m%d)
#s3cmd put --recursive --preserve --storage-class STANDARD_IA /mnt/logs_bkp_arch ive_old/backup/2015/70_logs s3://backup/
mail -s 'BKP logs copied to S3' test@gmail.com test222@gmail<< EOF
Hello,
BKP logs are copied to s3 $day.
Have a Nice Day.
Regards,
IT Team
EOF