Mailing List Archive
tlug.jp Mailing List tlug archive tlug Mailing List Archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]Re: [tlug] Remote MySQL backup and download
- Date: Fri, 13 Mar 2009 11:18:19 +0000
- From: Josh Glover <jmglov@example.com>
- Subject: Re: [tlug] Remote MySQL backup and download
- References: <49BA27E5.40408@articlass.org>
2009/3/13 Dave M G <dave@example.com>: > What I want to do is set up a batch script that will log in to each server > and download a copy of the database, just to keep everything backed up. > Right now I'm backing up each database manually after each time I make > changes, but since there are other users making continual changes, I want to > do something more regular, all encompassing, and automatic. Use mysqldump with SSH: : jglover@example.com; mysqldump --help mysqldump Ver 10.11 Distrib 5.0.70, for pc-linux-gnu (i686) By Igor Romanenko, Monty, Jani & Sinisa This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPL license Dumping definition and data mysql database or table Usage: mysqldump [OPTIONS] database [tables] OR mysqldump [OPTIONS] --databases [OPTIONS] DB1 [DB2 DB3...] OR mysqldump [OPTIONS] --all-databases [OPTIONS] [...] : jglover@example.com; for host in host1.domain1.com host2.domain2.com hostN.domainN.com; do :; ssh $host mysqldump -h $host -u username table -p \ :; >db-backup.$host.sql :; done -- Cheers, Josh
- References:
- [tlug] Remote MySQL backup and download
- From: Dave M G
Home | Main Index | Thread Index
- Prev by Date: Re: [tlug] Remote MySQL backup and download
- Next by Date: Re: [tlug] Remote MySQL backup and download
- Previous by thread: Re: [tlug] Remote MySQL backup and download
- Next by thread: Re: [tlug] Remote MySQL backup and download
- Index(es):
Home Page Mailing List Linux and Japan TLUG Members Links