Koozali.org: home of the SME Server
Obsolete Releases => SME 9.x Contribs => Topic started by: smnirosh on April 22, 2016, 10:23:34 AM
-
Hi friends, I am running backup using rsync command. I have set the incremental backup process at 8.00pm everyday. Plus I receive an email when backup time starts. But I want to know the terminated time of the backup from log. Only the start time will be appear but no terminated time in log file. is there any procedure to verify that time?
-
first of all tell us how you're doing backup, since you're using a custom script
moving to contribs section
-
rsync -avr --delete --log-file="/var/log/rsync/rsync.log.$(date)" /home /mnt/nas
where "nas" is a nas drive which is mounted to /mnt/nas folder.
-
well.. you'd encapsulate such command into a custom script that sends you an email with wished info
if you search out there (google) for "rsync backup script" you'll find zillions
P.S. making a raw backup of your home dir is not enough to restore your server, expecially if it's a DC
-
I already receives an email. But it doesn't contain the information which i am searching for now
-
please, re read my suggestion
you'd embed rsync command into a script
something like (pseudo code)
NOW=`date`
echo "starting backup: $NOW"
rsync .......
NOW=`date`
echo "finish backup: $NOW"
-
I tried follwoing and got good result:
NOW="$(date)"
echo "time star: $NOW"
rsync...
NOW="$(date)"
echo "time end: $NOW"