Changes
Upload & Download Files from RutOS (view source)
Revision as of 02:01, 16 March 2021
, 02:01, 16 March 2021→vivo
===File transfer===
===File transfer===
----
* Launch WinSCP and fill in the highlighted fields:
* Launch WinSCP and fill in the highlighted fields:
===Upload files===
===Upload files===
----
To upload a file from a PC to the router, you must specify the source path to the file on your computer and the destination path to the router.
To upload a file from a PC to the router, you must specify the source path to the file on your computer and the destination path to the router.
* If you upload configuration (''config'') files into the router, changes will not take effect until you reload the related service. You can use the '''''luci-reload'''' command to do so or simply '''reboot''' the router.
* If you upload configuration (''config'') files into the router, changes will not take effect until you reload the related service. You can use the '''''luci-reload'''' command to do so or simply '''reboot''' the router.
* In most cases people upload config files, custom scripts or software packages. It useful to know where certain files should be uploaded. For example, all config files are stored in ''/etc/config/''; the [[User Scripts]] file is called ''rc.common'' and stored in ''/etc/''.
* In most cases people upload config files, custom scripts or software packages. It useful to know where certain files should be uploaded. For example, all config files are stored in ''/etc/config/''; the User Scripts file is called ''rc.common'' and stored in ''/etc/''.
* Configuration files have fixed names. So, for example, if you upload an OpenVPN config file but with a different name than the one used in the example above, the configuration will not work. You can find a list of RUTxxx config file names and related services '''[[UCI_command_usage#Configuration_files|here]]'''.
* Configuration files have fixed names. So, for example, if you upload an OpenVPN config file but with a different name than the one used in the example above, the configuration will not work. You can find a list of RUTxxx config file names and related services '''[[UCI_command_usage#Configuration_files|here]]'''.
===Download files===
===Download files===
----
Downloading files from a router is very similar to uploading. You just have specify the file path of the router in place of the file location.
Downloading files from a router is very similar to uploading. You just have specify the file path of the router in place of the file location.
scp [email protected]:/etc/config/openvpn ~/Desktop
scp [email protected]:/etc/config/openvpn ~/Desktop
As you may notice, all that is different is that source and destination paths are switched.
As you may notice, all that is different is that source and destination paths are switched.
==Transfer directories==
==Transfer directories==
===External links===
===External links===
----
* [https://winscp.net/eng/download.php WinSCP download]
* [https://winscp.net/eng/download.php WinSCP download]
[[Category:FAQ]]
[[Category:Control & Configuration]]