Backup Outlook .pst file that is in use - outlook

I backup an Outlook .pst file on a client pc with a xcopy command to a Cloud storage account. Sometimes the user client has Outlook started and I can't copy the file because it is in use. Is there a way I can copy the file when Outlook has it opened and locked?

Not using the regular Windows file API. AFAIK you can only do that using the backup file API (https://learn.microsoft.com/en-us/windows/win32/backup/backup-functions)

Related

Virtual streamed files like sync clients

I have seen many sync clients such as Dropbox that can create "virtual" files that do not really exist on disk. They have a size and you can open them in any program, but they are streamed e.g. from the Dropbox servers.
I don't know how this is called, and I can't find any information about this on the internet. Do I have to write a file system driver for that, or is it possible to do this for example with the Windows API?
Dropbox is a file hosting service. (From WiKi)
On Windows you can use OneDrive to store files on Cloud.
Please refer to "Create file to Onedrive programmatically from C#?" for an sample.
Similar topic: "How to create a virtual file?"

How can I auto sync with a folder on the server to a folder on a Windows pc

I have a directory on my server, Ubuntu Linux, and it contains a bunch .csv files and is updated regularly, I need to be able to sync that folder with a folder on a local machine which is a Windows PC.
There's no problem connecting via FTP, filezilla, but it's the automation I need to work out out.
The files once downloaded are then screened for deliveries.
I can't seem to see anything of help online.
In Windows you can use WinSCP instead of Filezilla, it have a option "Autosync" every time a specific files change on local computer.
You can download and read the documentation in the oficial website:
https://winscp.net/eng/download.php

c# for WP7.5: How to do remote backup of a .txt file?

I want to complete my application with a function that automatically downloads or uploads three .txt files, which are generated by my application. How to do it? Can I do it with one of my web sites? How? Which functions should I use?
What i would to do is similar than EverNote, so I know what i want to do is possible in C#.
i would assume that you have a server for your website.
you could use the server as the endpoint and send it over via a stream or create your own set of api.
SkyDrive and DropBox both support uploads and downloads from Windows Phone, and are available on iOS and Android as well.

Get .txt files from Windows Phone 7 to a PC

I am able to write to a .txt file in Windows Phone 7. I know I can read this file programmatically, but how will I be able to get this file to a PC? Where exactly is the file stored on the phone?
The SDK comes with the Isolated Storage Explorer tool which allows you to read and write files from Isolated Storage. Learn about it's usage at http://msdn.microsoft.com/en-us/library/hh286408(v=vs.92).aspx
This assumes that you're wanting to do this with files you're creating for dev/testing purposes.
If you want to make an application which allows you to create files which users can access from teh PC you're out of luck. Instead you'd need to look at emailing the info from the file or distributing the file via the web.

executing copy command in a batch file

I'm using a windows copy command to perform auto file backup of Microsoft outlook files for a domain users.
the problem exists after 6 month of using this batch file is that the .pst file size for each user is growing and the copy operation is getting too long to complete.
i want to know are there any way to copy only the changed bits in the .pst file couse what i'm doing is copying the whole file each time a user login.
copy C:\"Documents and Settings"\%USERNAME%\"Local Settings"\"Application Data"\Microsoft\Outlook\ \\storage\folder1\folder2\%USERNAME%\%DESTDIR% /y /v
thanks
This page might help you in doing that : link
In a word: with the regular Windows copy command, no.
You've a few alternatives, though. Probably the best is to ask your users (or get your administrator) to reduce the size of the mailbox.
Another is to try the robocopy utility, which is part of the Windows Server Resource Kit and which replaces xcopy in versions of Windows above Server 2008 R2. In my experience this is a little faster. It also includes an option to skip the copy if the file hasn't changed, which may help if your users only use email infrequently.
rsync (details here, Windows version here) does a true differential copy, so only the changed bytes between the files are copied. However this needs to be installed as a Windows service on the listening side and needs to be installed as a program on each client.

Resources