LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-10-2016, 03:49 AM   #1
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 473

Rep: Reputation: 29
more functions with rsync


is it possible to capture data from an rsync operation like the size of folders being synced,the time it took,the changes that were copied over and then the total amount of data that was transferred across and then have all that data sent via email to my email address?
 
Old 03-10-2016, 05:03 AM   #2
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,465

Rep: Reputation: 381Reputation: 381Reputation: 381Reputation: 381
Yes.
Write a small script to print date/source/dest, perform the rsync with -v and such, print date.
Then just run it and pipe the output to 'mail' or such cli mailer, or just stick it in cron (which mails output automatically as well).
 
Old 03-10-2016, 06:46 AM   #3
sigint-ninja
Member
 
Registered: Feb 2011
Location: Republic Of Ireland
Distribution: Debian,Centos,Slackware
Posts: 473

Original Poster
Rep: Reputation: 29
will i have to capture results in variables and then print those variables to a mail?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
OSE system call functions to Linux Sytem Call functions required roshantraj30 Linux - General 0 06-08-2009 02:06 AM
LXer: OpenOffice.org Calc functions, part 1: Understanding functions LXer Syndicated Linux News 0 03-31-2007 12:01 PM
Slackpkg: missing something in /usr/libexec/slackpkg/functions.d/dialog-functions.sh michelino Slackware 4 03-20-2007 12:22 PM
Want to use few functions of rsync?? Sulman Shah Programming 6 02-01-2007 04:00 AM
pointers to functions/member functions champ Programming 2 03-28-2003 06:22 PM


All times are GMT -5. The time now is 06:27 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration