• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 194
  • Last Modified:

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

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
0
bsharath
Asked:
bsharath
  • 5
  • 3
1 Solution
 
harris_cCommented:
@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>

0
 
bsharathAuthor 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
0
 
harris_cCommented:
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.

0
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
harris_cCommented:
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
0
 
bsharathAuthor 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?
0
 
harris_cCommented:
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..."
0
 
harris_cCommented:
if you want to specify the source directory:

xcopy <destination>  <source>


XCOPY  /s/e/y  \\sourcePC\d$\*.pst     \\dev-chen-mrd100\c$      
0
 
bsharathAuthor Commented:
Thanks harris.

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

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 5
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now