2022-01-21 22:59:30 +01:00
|
|
|
ks-upv - Upload videos file(s) to server with scp or rsync.
|
|
|
|
===========================================================
|
2021-03-07 18:29:39 +01:00
|
|
|
|
2021-03-22 18:43:19 +01:00
|
|
|
### Syntax:
|
2021-03-07 18:29:39 +01:00
|
|
|
|
2021-04-18 00:21:59 +02:00
|
|
|
```shell
|
|
|
|
$ ks-upv -i - Start upload
|
2022-01-22 00:10:10 +01:00
|
|
|
$ ks-upv -g - Create configuration
|
2021-04-18 00:21:59 +02:00
|
|
|
$ ks-upv -r - Remove configuration
|
|
|
|
$ ks-upv -c - Show configuration
|
|
|
|
$ ks-upv -e - Edit configuration
|
|
|
|
$ ks-upv -v - Show version
|
|
|
|
$ ks-upv -h - Show help
|
|
|
|
```
|
2021-03-07 18:29:39 +01:00
|
|
|
|
|
|
|
### Initialize video file(s) upload:
|
|
|
|
|
2022-01-22 00:10:10 +01:00
|
|
|
* For initialize video file(s) upload only run the following command:
|
2021-03-07 18:29:39 +01:00
|
|
|
|
2021-04-18 00:21:59 +02:00
|
|
|
```shell
|
|
|
|
$ ks-upv -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-04-18 00:21:59 +02:00
|
|
|
```shell
|
|
|
|
* Enter the server user: anonymous
|
2022-01-03 19:34:53 +01:00
|
|
|
* Enter the server key: *******
|
2021-04-18 00:21:59 +02:00
|
|
|
* 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 detect the videos and upload them to the server directory.
|
|
|
|
|
|
|
|
### Remove configuration:
|
|
|
|
|
|
|
|
* If you want to clear the connection settings, you just need to run the following command:
|
|
|
|
|
2021-04-18 00:21:59 +02:00
|
|
|
```shell
|
|
|
|
$ ks-upv -r
|
|
|
|
````
|
2021-03-07 18:29:39 +01:00
|
|
|
|
|
|
|
### Show configuration:
|
|
|
|
|
|
|
|
* You can check the configuration with the following command:
|
|
|
|
|
2021-04-18 00:21:59 +02:00
|
|
|
```shell
|
|
|
|
$ ks-upv -c
|
|
|
|
````
|
2021-03-07 18:29:39 +01:00
|
|
|
|
|
|
|
* When consulting the configuration, we will see something like this:
|
|
|
|
|
2021-04-18 00:21:59 +02:00
|
|
|
```shell
|
|
|
|
* Server User: anonymous
|
2022-01-03 19:34:53 +01:00
|
|
|
* Server Password: *******
|
2021-04-18 00:21:59 +02:00
|
|
|
* URL (or IP) Server: mypersonaldomain.es
|
|
|
|
* Destination Path (Server): /home/anonymous
|
|
|
|
* Scan Path (Local): /home/local/videos
|
2022-01-21 22:59:30 +01:00
|
|
|
* Upload Tool: scp
|
2022-01-25 20:21:47 +01:00
|
|
|
* Port Connection: 22
|
2021-04-18 00:21:59 +02:00
|
|
|
````
|
2021-03-07 18:29:39 +01:00
|
|
|
|
|
|
|
### Edit configuration:
|
|
|
|
|
|
|
|
* To edit any section of the configuration, the following command would be executed:
|
|
|
|
|
2021-04-18 00:21:59 +02:00
|
|
|
```shell
|
|
|
|
$ ks-upv -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-04-18 00:21:59 +02:00
|
|
|
```shell
|
|
|
|
1 - Edit User (anonymous)
|
2022-01-03 19:34:53 +01:00
|
|
|
2 - Edit Password (*******)
|
2021-04-18 00:21:59 +02:00
|
|
|
3 - Edit Server (mypersonaldomain.es)
|
|
|
|
4 - Edit Dest. Path (/home/anonymous)
|
|
|
|
5 - Edit Local Path (/home/local/videos)
|
2022-01-22 00:10:10 +01:00
|
|
|
6 - Edit Upload Tool (scp)
|
2022-01-25 20:21:47 +01:00
|
|
|
7 - Edit Port Connection (22)
|
2021-04-18 00:21:59 +02:00
|
|
|
|
2022-01-25 20:21:47 +01:00
|
|
|
8 - Exit
|
2021-04-18 00:21:59 +02:00
|
|
|
|
|
|
|
* Choose an option:
|
|
|
|
````
|
2021-03-07 18:29:39 +01:00
|
|
|
|
|
|
|
### Show version:
|
|
|
|
|
2021-03-07 18:48:07 +01:00
|
|
|
* You can check the version with the command:
|
2021-03-07 18:29:39 +01:00
|
|
|
|
2021-04-18 00:21:59 +02:00
|
|
|
```shell
|
|
|
|
$ ks-upv -v
|
|
|
|
````
|
2021-03-07 18:42:36 +01:00
|
|
|
|
|
|
|
### Back to README.md
|
|
|
|
|
2022-03-26 14:53:14 +01:00
|
|
|
* [Go back](../README.md)
|
2021-03-22 18:43:19 +01:00
|
|
|
|