l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2003 Dec 05 16:44

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
[vox-tech] Tar, MySQL, and cron-ed backups
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vox-tech] Tar, MySQL, and cron-ed backups

Each night I run via cron a shell script to backup one of my Debian boxes, which has NFS-mounted partitions for the rest of my network.

The backup is supposed to do a full copy-to-tape of all the specified directories, including the NFS-mounted partitions.

However, I get a "tar: file changed as we read it" error on a couple of MySQL db files because they are in use during the backup. Locking the files during the backup is not an option because another automated process -- which really can't be rescheduled, either -- writes to them during the same window.

I could --exclude the files; but that would mean they don't get backed up properly (meaning automatically), which would be a Bad Thing.

So, if tar is saying the "file changed as we read it", does that mean that tar:
* skipped the file,
* made a copy of the version that existed when tar *started* the operation,
* made a copy of the version that existed when tar *finished* the operation, or
* some combination of these?

Why, look, someone with *precisely* the same question -- and no answer since April 2001:

Somebody with a suggested workaround using mysqldump that doesn't quite work for me:

Any other ideas?

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
EDGE Tech Corp.
For donating some give-aways for our meetings.