We help IT Professionals succeed at work.

Need to backup some machines d$\folders to a shared folder every day (Send mail after backup)

211 Views
Last Modified: 2010-04-16
Hi,

Need to backup some machines d$\folders to a shared folder every day (Send mail after backup).

I have a regular possess of backing up the managements Psts to a shared folder every day.
Is there a way a script can backup the files as mentioned in the backup file and send a mail after completion everyday as scheduled.

Regards
Sharath
Comment
Watch Question

Commented:
@echo off

copy *.pst  \\server\folder

dir \\server\folder |  blat - -to abc.def@ghi.com -subject "Transferred files..."
----------------------------


Download blat here:
http://www.blat.net/


And do a:
blat -install  <mail server>  <username>

Author

Commented:
Hi Harris,

I get this...

C:\>Backup.bat
Sophos.pst
The process cannot access the file because it is being used by another process.
        0 file(s) copied.
Blat v2.6.2 w/GSS encryption (build : Feb 25 2007 12:06:19)

Failed to open registry key for Blat
To set the SMTP server's name/address and your username/email address for that
server machine do:
blat -install  server_name  your_email_address
or use '-server <server_name>' and '-f <your_email_address>'
aborting, nothing sent

Commented:
Oh... the pst files (emails) are currently in use.  Is there a time where outlook is closed so you can access the .pst files?  

Judging from the filename of the pst file...  SOPHOS is firewall/antivirus software.  I guess that is turned on all the time?  Let me check what else I can dig.



You need to setup the blat smtp configurations.

blat  -install    yourEmailServerHere     yourEmailAddressHere

before use.

Commented:
How to automate the back up of .pst files with the Personal Folder Backup utility
Microsoft has released a utility to automate the backup of your personal folders (.pst) file. The utility can be downloaded from the following Microsoft Web site:

http://www.microsoft.com/downloads/details.aspx?FamilyId=8B081F3A-B7D0-4B16-B8AF-5A6322F4FD01&displaylang=en 

For more information about the Personal Folder Backup utility, click the following article number to view the article in the Microsoft Knowledge Base:
238782 (http://support.microsoft.com/kb/238782/)
How to automatically backup your personal folders file

Author

Commented:
Harris for a bat file like this.

@echo off

copy *.pst  \\dev-chen-mrd100\c$

dir \\dev-chen-mrd100\c$ |  blat - -to email@address.com -subject "Transferred files..."

Where should i specify the destination path?

Commented:
Hi bsharath --

destination path for your .pst files?

@echo off

::  let us use xcopy here for better copying.
::  copy all .pst files to destination \\dev-chen-mrd100\c$
::        
XCOPY  /s/e/y *.pst  \\dev-chen-mrd100\c$              


::  get the list of files in the destination folder including sizes
::      sort by date descending (new files first)
::      and email it to email@address.com for confirmation
dir /o-d /s \\dev-chen-mrd100\c$ |  blat - -to email@address.com -subject "Transferred files..."
Commented:
Unlock this solution and get a sample of our free trial.
(No credit card required)
UNLOCK SOLUTION

Author

Commented:
Thanks harris.

The sam way to copy a folder what are the changes i need to do?

Gain unlimited access to on-demand training courses with an Experts Exchange subscription.

Get Access
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Empower Your Career
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE

Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Unlock the solution to this question.
Thanks for using Experts Exchange.

Please provide your email to receive a sample view!

*This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

OR

Please enter a first name

Please enter a last name

8+ characters (letters, numbers, and a symbol)

By clicking, you agree to the Terms of Use and Privacy Policy.