Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Copying an open file dangerous?

Posted on 2000-02-25
1
Medium Priority
?
261 Views
Last Modified: 2010-04-14
I have an AppleScript that executes nightly and does a Finder copy my Microsoft Outlook data files to another computer to back up my email.

Outlook checks for mail every 10 minutes (as I have it set up). So, it is possible that the contents of the data file may change while the Finder copy is going on.

Does that mean that the copies file may end up in an inconsistent state? Or does the file system make sure that when the Finder is copying a file, updates will be ignored by the process doing the copy, i.e. the file looks as it did at the beginning of the copy operation?
0
Comment
Question by:garyrob
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 4

Accepted Solution

by:
Alex Curylo earned 600 total points
ID: 2560456
Yup, sure does, and here's how to prove it to yourself:

1. Start downloading a big file with your browser or ftp client.
2. Wait a couple seconds.
3. Copy the partially-downloaded file in the Finder.
4. Wait for the download to finish.
5. Note that the copy is slightly bigger than the original when you started, but not the full file.

Moral: If a file is altered while the Finder is copying, the copy's integrity is questionable at the very best.

Perhaps if you send the AppleScript "connect to" command before you copy, the timer resets so you have 10 minutes to copy once it returns? Or you could always just quit and restart it from your script, too.
0

Featured Post

Enroll in September's Course of the Month

This month’s featured course covers 16 hours of training in installation, management, and deployment of VMware vSphere virtualization environments. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Create a default user profile for Mac OS X 10.7/10.8 Create a user account on OS X that will be a template for every other user of that computer. I usually call it “profile” and make it an administrator account for the time being. 1. Install a…
iCloud Drive was introduced after iOS 8 was launched last year. This drive is Apple’s online storage device that lets users sync their files and access them from all their Apple devices.   There is a lot of data that is not automatically backed up…
Add bar graphs to Access queries using Unicode block characters. Graphs appear on every record in the color you want. Give life to numbers. Hopes this gives you ideas on visualizing your data in new ways ~ Create a calculated field in a query: …
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question