Sftpup enables users to upload files to FTP servers while maintaining consistency with a local directory in just a few clicks.
First, you need to create a directory for your work, which will serve as the storage location for all your files. For instance, if you're creating websites via XML and XSLT, this directory can be named "www," and you can set it as the target for each generated file.
Next, upload all the files to the FTP server. Your server directory and "www" should now be in sync. sftpup saves the state of "www" by calculating SHA hashes for each file. To initialize this process, execute the following command: "sftpup --init your-config-file." The hashes are stored in the file indicated by hashfile in your-configfile.
If you modify, delete, add, or do any other changes to your files or directory, you can update the FTP server by entering the command: "sftpup --update your-config-file." sftpup compares the HTML files with the stored hashes and lists any discrepancies. This list is then used to send appropriate commands to the FTP server.
If you want to test what actions would be taken without actually making any changes, use the so-called dry-run feature by typing: "sftpup --dry-run your-config-file." This will prompt sftpup to print a list of commands and files/directories so you can see what would happen if you were to execute an update.
Overall, sftpup is a great software tool that simplifies the process of uploading and maintaining the consistency of files on an FTP server. Its easy-to-follow steps and features make it a reliable choice for anyone needing such functionalities.
Version 6: N/A