Exclusive access (was Re: [vox-tech] Tar, MySQL, and cron-ed backups)

2003-12-05 Thread Jeff Newmiller
On Fri, 5 Dec 2003, Mark K. Kim wrote: > On Fri, 5 Dec 2003, Mitch Patenaude wrote: > > > > * some combination of these? > > > > yes. if it was half-way through reading the file.. then the first half > > is the old file, and the second half is the new files. If more than > > one change was made,

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

2003-12-05 Thread David Siedband
Thanks Rob. I did read Marc's entire e-mail though. I was asking to determine why mysqldump wasn't a workable solution in his situation. In my experience it has proved the most effective fix for the problem he is describing. -- Dave Right at the bottom of the email you quoted... >> Somebod

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

2003-12-05 Thread Mark K. Kim
Never mind. Mitch is right. Checked the tar sourcecode. -Mark On Fri, 5 Dec 2003, Mark K. Kim wrote: > On Fri, 5 Dec 2003, Mitch Patenaude wrote: > > > > * some combination of these? > > > > yes. if it was half-way through reading the file.. then the first half > > is the old file, and the se

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

2003-12-05 Thread David Hummel
On Fri, Dec 05, 2003 at 05:21:53PM -0800, David Hummel wrote: > mysqldump -l --opt mydb | gzip > mydb_`date +%y%m%d%H%M%S`.sql.gz Silly me, this is redundant. -l is included when using --opt. -David ___ vox-tech mailing list [EMAIL PROTECTED] http://

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

2003-12-05 Thread David Hummel
On Fri, Dec 05, 2003 at 04:43:25PM -0800, Mitch Patenaude wrote: > Basically, you can use a tool like mysqldump to dump a version of the > tables, which can be used to reconstruct the database later. If you > don't have enough disk space, then get another (or bigger) disk. Even > then, transacti

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

2003-12-05 Thread Mark K. Kim
On Fri, 5 Dec 2003, Mitch Patenaude wrote: > > * some combination of these? > > yes. if it was half-way through reading the file.. then the first half > is the old file, and the second half is the new files. If more than > one change was made, then more than one file is there. Hold on...

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

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

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

2003-12-05 Thread Rob Rogers
> Why not just export the the databases with MySQL-dump and back up the > exported files instead of the live databases? Right at the bottom of the email you quoted... >> Somebody with a suggested workaround using mysqldump that doesn't quite >> work for me: >> http://ben.milleare.com/archives/000

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

2003-12-05 Thread David Hummel
On Fri, Dec 05, 2003 at 12:33:22PM -0800, Bill Kendrick wrote: > > On Fri, Dec 05, 2003 at 12:24:59PM -0800, David Siedband wrote: > > Why not just export the the databases with MySQL-dump and back up the > > exported files instead of the live databases? > > I'm vaguely familiar with what he's w

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

2003-12-05 Thread Bill Kendrick
On Fri, Dec 05, 2003 at 12:24:59PM -0800, David Siedband wrote: > Why not just export the the databases with MySQL-dump and back up the > exported files instead of the live databases? I'm vaguely familiar with what he's working on (though hadn't looked into backups there), and unfortunately, I th

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

2003-12-05 Thread David Siedband
PROTECTED]> Subject: [vox-tech] Tar, MySQL, and cron-ed backups Reply-To: [EMAIL PROTECTED] 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

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

2003-12-05 Thread Marc Elliot Hall
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