Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7551187
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T10:24:59+00:00 2026-05-30T10:24:59+00:00

I am looking for an automatic solution to sync the file tree as well

  • 0

I am looking for an automatic solution to sync the file tree as well as a MySQL database, and as a bonus, I’d like to perform some basic file manipulation when I do the sync. Currently my dev server is my Mac running local copies of Apache and MySQL. My code is all stored in SVN.

In the past I’ve been able to fashion a “build script” of sorts on my server, that would check out the contents of SVN and move it into place on the server. This wasn’t bad (and was certainly the fastest way to get the latest version of the site online, plus it gave me version control in case I needed to roll back the site) but it didn’t do anything with MySQL.

Is there a good/standard/”right” way to do what I’m trying to do? Should I just keep a dev database on the live server, access it remotely on my (local) dev machine, and then copy the dev database to the live db on the server when I’m ready to migrate changes?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T10:25:01+00:00Added an answer on May 30, 2026 at 10:25 am

    rsync is probably what you want to sync files. It can preserve everything including permissions, and is well-optimized to minimize the amount of network transfer necessary, even for binary blobs.

    As for MySQL: you can either rsync the mysqldump output, or use binary logging (or if you keep the same database version, copy the table files – but that’s trickier).

    There is no “right” way to do this. You usually just need to set up a mirrored environment and work away. Of course, in an ideal world you’d script every change you make to the dev copy, so that moving the modifications over would just consist of running the script on the live server…

    A script file you run is as good as any other automatic solution.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm looking for a database that supports synchronous replication and fail over. Automatic fail
I'm looking for some type of solution for getting a window dev environment up
I'm looking for an automatic way in eclipse to reformat curly braces to K&R
I am looking for a tool for semi-automatic XSLT generation. Given 2 XML files,
I am looking for a good automatic syntax highlighter for self-hosted WordPress blog (not
I've been looking at switching many of our Oracle tablespaces over to use automatic
I'm looking to automate the backup of a Windows XP file structure (a wiki)
I'm looking for some Best Practices for automating the deployment of Stored Procedures/Views/Functions/Table changes
I`m looking for best mechanism for self update in .net programs! solution should cover
I'm looking for a generic way on managing database connections in Zend Framework (1.1).

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.