TAR'ing a directory that's possibly in use?
I want to make a TAR of a directory we have that is shared out with samba, but there may be some users using a couple files on it. Will this cause any issues TAR'ing the whole thing now? will it just skip the files that are opened by users? it's only a few files, and i really want to get a TAR file as a backup of how it is now.
|
Quote:
It won't damage what's there if someone has it open, but may not restore correctly later. |
Corruption as in my TAR file would be totally useless, or just those couple open files might not extract right?
|
A solution is to put the directory on an LVM volume and then use an LVM snapshot. That way you get a consistent backup at a point in time and can restore the files as they were at that time.
|
I usually use a TAR then GZIP cron job, but i needed a more immediate, fresh backup for something. can't really move this shared volume to another server with LVM.
|
Quote:
|
OK, thanks for clarifying. is there a way to tell what files are even open within a directory through Samba at a given time?
|
Quote:
|
Thanks everybody. I think I'm just going to wait till early morning and kick off the TAR file. guess i'll just have to be patient :-( haha
|
All times are GMT -5. The time now is 04:23 PM. |