2021-03-07 18:29:39 +01:00
|
|
|
ks-upr - Upload recursively file(s) to server with rsync+ssh.
|
|
|
|
=============================================================
|
|
|
|
|
|
|
|
### Sintax:
|
|
|
|
|
2021-03-07 18:35:27 +01:00
|
|
|
* `ks-upr -i - Start upload`
|
|
|
|
* `ks-upr -r - Remove configuration`
|
|
|
|
* `ks-upr -c - Show configuration`
|
|
|
|
* `ks-upr -e - Edit configuration`
|
|
|
|
* `ks-upr -v - Show version`
|
|
|
|
* `ks-upr -h - Show help`
|
2021-03-07 18:29:39 +01:00
|
|
|
|
|
|
|
### Initialize common file(s) upload:
|
|
|
|
|
|
|
|
* For initialize recursively upload only un the following command:
|
|
|
|
|
2021-03-07 18:35:27 +01:00
|
|
|
* `ks-upr -i`
|
2021-03-07 18:29:39 +01:00
|
|
|
|
|
|
|
* The first time you run the command, you will be asked for the necessary connection information:
|
|
|
|
|
2021-03-07 18:35:27 +01:00
|
|
|
* `Enter the server user: anonymous`
|
|
|
|
* `Enter the server key: 1234567`
|
|
|
|
* `Enter the server URL: mypersonaldomain.es`
|
|
|
|
* `Enter the path on the server: /home/anonymous`
|
|
|
|
* `Enter the local path to scan: /home/local/videos`
|
2021-03-07 18:29:39 +01:00
|
|
|
|
|
|
|
* Once the connection data has been entered, the local directory will be scanned to upload recursively them to the server directory.
|
|
|
|
|
|
|
|
### Remove configuration:
|
|
|
|
|
|
|
|
* If you want to clear the connection settings, you just need to run the following command:
|
|
|
|
|
2021-03-07 18:35:27 +01:00
|
|
|
* `ks-upr -r`
|
2021-03-07 18:29:39 +01:00
|
|
|
|
|
|
|
### Show configuration:
|
|
|
|
|
|
|
|
* You can check the configuration with the following command:
|
|
|
|
|
2021-03-07 18:35:27 +01:00
|
|
|
* `ks-upr -c`
|
2021-03-07 18:29:39 +01:00
|
|
|
|
|
|
|
* When consulting the configuration, we will see something like this:
|
|
|
|
|
2021-03-07 18:35:27 +01:00
|
|
|
* `Server User: anonymous`
|
|
|
|
* `Server Password: 1234567`
|
|
|
|
* `URL (or IP) Server: mypersonaldomain.es`
|
|
|
|
* `Destination Path (Server): /home/anonymous`
|
|
|
|
* `Scan Path (Local): /home/local/videos`
|
2021-03-07 18:29:39 +01:00
|
|
|
|
|
|
|
### Edit configuration:
|
|
|
|
|
|
|
|
* To edit any section of the configuration, the following command would be executed:
|
|
|
|
|
2021-03-07 18:35:27 +01:00
|
|
|
* `ks-upr -e`
|
2021-03-07 18:29:39 +01:00
|
|
|
|
|
|
|
* After its execution, we will see a menu like the following one to be able to edit the desired section:
|
|
|
|
|
2021-03-07 18:35:27 +01:00
|
|
|
* `1 - Edit User (anonymous)`
|
|
|
|
* `2 - Edit Password (1234567)`
|
|
|
|
* `3 - Edit Server (mypersonaldomain.es)`
|
|
|
|
* `4 - Edit Dest. Path (/home/anonymous)`
|
|
|
|
* `5 - Edit Local Path (/home/local/videos)`
|
|
|
|
* `.`
|
|
|
|
* `6 - Exit`
|
|
|
|
* `.`
|
|
|
|
* `Choose an option:`
|
2021-03-07 18:29:39 +01:00
|
|
|
|
|
|
|
### Show version:
|
|
|
|
|
|
|
|
* You can check the version with the command:
|
|
|
|
|
2021-03-07 18:35:27 +01:00
|
|
|
* `ks-upr -v`
|
2021-03-07 18:42:36 +01:00
|
|
|
|
|
|
|
### Back to README.md
|
|
|
|
|
|
|
|
* [Go back](https://github.com/q3aql/ks-tools/blob/main/README.md)
|
2021-03-07 18:29:39 +01:00
|
|
|
|