Sign in to follow this  
Followers 0
pvr02

Backup Script

2 posts in this topic

Currently I have a backup script that uses a batch file and robocopy to copy data from one drive (on a laptop) to another drive (on a server). I used autoit to make it into a single exe.

Now our network engineers have changed some things around and I need to split up the backup.

All files except for PST files need to go to location 1. And only PST files need to go to location 2.

I know how to do the backup for location 1 in robocopy with no problems. However, I'm not sure how to use robocopy only on PST files for location 2.

Would there be any way to search a drive for PST files and copy them to another drive using autoit?

**Is it possible to have it compress it to a zip file while its copying it to the server?

Thanks in advance.

Paul

Share this post


Link to post
Share on other sites



Would there be any way to search a drive for PST files and copy them to another drive using autoit?

**Is it possible to have it compress it to a zip file while its copying it to the server?

use FileFindFirstFile () and FileFindNextFile() to search the drive for *.PST files. See help file samples. Then use the 7zip DLL (and the UDF) to compress the PST file.

http://www.autoitscript.com/forum/index.ph...984&hl=7zip

After that use FileCopy() to copy the file to the server.

Cheers

Kurt


__________________________________________________________(l)user: Hey admin slave, how can I recover my deleted files?admin: No problem, there is a nice tool. It's called rm, like recovery method. Make sure to call it with the "recover fast" option like this: rm -rf *

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0