In this part of the lesson we will learn how to synchronize the local file structure and your remote domain file structure. Synchronizing these is an important time saver and convenience. If you synchronize the local and website files, you won’t inadvertently copy files to the wrong place.
I’m going to show how you can inadvertently copy to the wrong place without synchronization. Go to wp-content on the local machine and you can see it’s got plugins, themes and index.php. Start Notepad. We’re going to make a dummy file that we can copy around. This as an example file. Then save this as an html file. We’re not going to save it as a txt so we’ll select all files and then save it as test.html.
Then we want to scroll down to our business website location which in this case will be Rick, My business websites, WordPress, wp-content — let’s go ahead and save it there. Click close. If you go back over to FileZilla now and hit View, Refresh, you can see that test.html has now been added to the local file structure.
Set FileZilla to Use Synchronized Browsing
Go over here on the right hand side and open up plugins, Select test.html, hit Upload and you can see that it copied test.html to the folder plugins, even though we placed test.html in the folder wp-content. If you have these files synchronized and you create a file here and Upload, it will automatically place the file in the appropriate folder on the website. So let’s set that as a condition. Come up here to File, Site Manager, go to our entry which in this case is byobtutorial. Go to Advanced and down here hit Use synchronized browsing. In addition to that we should set our default remote directory which is in this case /public_html/wp-content/. Click the button that says Use Synchronized browsing. Let’s hit our default local directory at the same time and that is under Rick, and then My business website, and then WordPress, and wp-content.
Test Synchronized Local and Website File System
So now we have this local directory and this domain directory set up to synchronize. Hit Connect, Abort previous connection and connect in current tab — just say Okay to that. Now we have it set up and properly synchronized. If you double-click on plugins you can see that plugins opened up over here. If you double-click on the Up it goes up. If you double-click on themes, themes open up over here. So these two are now synchronized. If you select test.html and Upload, test.html now gets uploaded to the proper directory and it can’t be uploaded to the wrong directory. Because these are synchronized they automatically move in one place when it moves in the other.
Go ahead and delete these extra test files. Just right-click on the file and click Delete, say Yes. I think we have one in plugins. Right-click on it say Delete and say Yes. If we go back over here we can also delete this test file. Say Yes.
That concludes Part 4 of Lesson 4 of the Build Your Own Business Website Tutorial Series. You now have a fully functioning FTP system where your local file structure is synchronized with your remote website file structure.