Just discovered how to utilise RSYNC to eliminate FileZilla |
03-22-2019, 07:16 AM
(This post was last modified: 03-22-2019, 07:28 AM by John_Betong. Edit Reason: formatting problems )
Just discovered how to utilise RSYNC to eliminate FileZilla
For years I have laboriously written code on my Localhost then used FileZilla to update the relevant Server files. Although FileZilla is very good it does take quite a few clicks to synchonise all the updated files so... eventually got round to trying RSYNC. Updating changes now only takes a couple of seconds!!! FileZilla is never used!!! The web-page update links and function can be used on any CodeIgniter installation. The following prerequisites does take a bit of trial and error to install but the effort is well rewarded. Prerequisites: 1. install RSYNC 2. install Linux SSH 3. Localhost mirror image of the Server files 4. Upload links on home page banner/footer (only on Localhost web-pages) Test for the following GET parameter links: 1. https://my-ci-website.com/web-page?rsync=app 2. https://my-ci-website.com/web-page?rsync=wri 3. https://my-ci-website.com/web-page?rsync=ass The main controller tests for above links and if true calls the following function: PHP Code: // Controller Web_page |
Messages In This Thread |
Just discovered how to utilise RSYNC to eliminate FileZilla - by John_Betong - 03-22-2019, 07:16 AM
RE: Just discovered how to utilise RSYNC to eliminate FileZilla - by skunkbad - 03-22-2019, 07:02 PM
RE: Just discovered how to utilise RSYNC to eliminate FileZilla - by John_Betong - 03-22-2019, 08:49 PM
RE: Just discovered how to utilise RSYNC to eliminate FileZilla - by Paradinight - 03-23-2019, 02:20 AM
|