Sponsored Content
Full Discussion: Backup on S3 Amazon
Top Forums Shell Programming and Scripting Backup on S3 Amazon Post 302932205 by chetan on Tuesday 20th of January 2015 01:52:37 AM
Old 01-20-2015
Backup on S3 Amazon

Hi,

Can someone help me how can I made when backup is done to send me email?
I'm using bash for first time and I'm not sure what I doing.

We have made the script to take the backup of server locally and on S3 Amazon..I am checking this backup manually. I need the script which calculate the size of the .tar.gz.

It means the scripts need to send me the notification that Backup on S3 for date so and so has been complateted and the size of the backup file is 3 GB..like this

I am using below script at the end of the my orignal script .


Code:
#!/bin/bash
DATE=`date +%Y-%m-%d`
NOW=$(date +"%Y-%m-%d-%H%M")


FILE1=$(du -ks $Server Path | awk '{print $1}') # get file size in K
echo "Sending Backup report : Backup of $DATE.tar.gz completed and Size is $FILE1" | mail -s "   Server  Backup report " abx@gmail.com


Can you please help me?
1. How to calcualte the size of the backup file on s3?
2. Send notification also

Last edited by Don Cragun; 01-20-2015 at 03:54 AM.. Reason: Add CODE tags again.
 

3 More Discussions You Might Find Interesting

1. Virtualization and Cloud Computing

CEP as a Service (CEPaaS) with MapReduce on Amazon EC2 and Amazon S3

Tim Bass 11-25-2008 01:02 PM Just as I was starting to worry that complex event processing community has been captured by RDBMS pirates off the coast of Somalia, I rediscovered a new core blackboard architecture component, Hadoop. Hadoop is a framework for building applications on large... (0 Replies)
Discussion started by: Linux Bot
0 Replies

2. Solaris

Amazon S3 storage mounting.

We need to mount an amazon S3 share on windows as well as Solaris servers. Any help is appreciated. Thanks in advance. (5 Replies)
Discussion started by: uxadmin007
5 Replies

3. Shell Programming and Scripting

rsync backup mode(--backup) Are there any options to remove backup folders on successful deployment?

Hi Everyone, we are running rsync with --backup mode, Are there any rsync options to remove backup folders on successful deployment? Thanks in adv. (0 Replies)
Discussion started by: MVEERA
0 Replies
BDB.DB0(5)							AFS File Reference							BDB.DB0(5)

NAME
bdb.DB0, bdb.DBSYS1 - Contain the Backup Database and associated log DESCRIPTION
The bdb.DB0 file contains the Backup Database, which records configuration information used by the AFS Backup System along with cross- indexed records of the tapes created and volumes dumped using the Backup System commands. The bdb.DBSYS1 file is a log file in which the Backup Server (buserver process) logs each database operation before performing it. When an operation is interrupted, the Backup Server replays the log to complete the operation. Both files are in binary format and reside in the /var/lib/openafs/db directory on each database server machine that runs the Backup Server. When the Backup Server starts or restarts on a given machine, it establishes a connection with its peers and verifies that its copy of the bdb.DB0 file matches the copy on the other database server machines. If not, the Backup Servers use AFS's distributed database technology, Ubik, to distribute to all of the machines the copy of the database with the highest version number. Use the commands in the backup suite to administer the Backup Database. It is advisable to create a backup copy of the bdb.DB0 file on tape on a regular basis, using the UNIX tar command or another local disk backup utility. SEE ALSO
backup(8), backup_savedb(8), buserver(8) COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved. This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell. OpenAFS 2012-03-26 BDB.DB0(5)
All times are GMT -4. The time now is 07:16 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy