I want to synch my local FTP repository with the FTP folders on the FTP server. so if i create a folder with client 1, i want to FTP create a folder on the FTP server called client 1, then i make a client 2, it creates a folder on client 2 once a script is run. basically just sync up my local directory and delete everything in the remote directory (the FTP server) if that folder doesn't exist on my local server. We have people that create the client logins and i just want the folders there so they cant mess up the permissions.
Problem is i don't want to do this with any files, just the folder names, because i don't want to send the files on the FTP repository back to the FTP server. Maybe once overnight, just check the folders on the FTP server with the folders on my server and add and delete the names to keep them synchronized. Anyone have an idea how i can accomplish this with a simple command?