bsharath
asked on
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
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
ASKER
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
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
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.
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.
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
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
ASKER
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?
@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?
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..."
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..."
ASKER CERTIFIED SOLUTION
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
ASKER
Thanks harris.
The sam way to copy a folder what are the changes i need to do?
The sam way to copy a folder what are the changes i need to do?
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>