There is a fairly simple WordPress site. I am just getting acquainted with WordPress. I want to synchronize local development with the server. Backups that are done by the plugin, which now stands there (BackUpWordPress), take up 100 MB each. It seems to me that my data is 5 megabytes there. But the site as a result seems to weigh a lot more. Ideally, I would like to make a small local repository, for my data, the current state of which is synchronized with the server, so that the remaining 100 MB, probably related to plug-ins, are downloaded and filled with my settings automatically. If this is possible, what solution is possible for this?

  • one
    git, svn or any version control system - mihdan
  • git ------------ - Ufx
  • I do not understand the essence of your comment? - mihdan
  • If the question is what I use, then git. And dashes, because the minimum length of the comment is 15. - Ufx
  • Well, then use git, what's your difficulty? - mihdan

1 answer 1

If the problem is to transfer 100 MB of files back and forth, then you can:

  1. Go by brute force and money by buying a wider channel.

  2. Use rsync to upload only different files over SSH.

  3. You can also unpack the backup archive and put it in Git. In this solution, there are more side buns (such as the file change history and the possibility of rollback), but in terms of traffic usage, this is still the same rsync.

Finally, you can download not the backups, but just the site itself using rsync .

If at any cost you want only your files in your project, and everything else is connected in the form of dependencies, then this is also possible. To do this, you will need a dependency manager, for the role of which there are currently no alternatives other than Composer . Therefore, see the links:

Stop browsing these pages diagonally to see that with Composer everything becomes a lot more complicated and confusing than with just git pull or rsync -av . Maybe you don’t need to complicate things for the sake of ideals from the world of C ++.

  • The problem is that I want a repository in which only my data, without plug-ins, and it is desirable that all plug-ins are easily installed. For example, when I develop in C ++, I do not commit to the repository of my library project that it uses. In my repository, only my code and how this library is used, but not itself. - Ufx
  • This is possible. But this will not necessarily make your life easier and easier. The answer is updated. - sanmai