ks-tools/doc/ks-upr.md
2022-01-25 20:21:47 +01:00

2.4 KiB

ks-upr - Upload recursively file(s) to server with scp or rsync.

Syntax:

$ ks-upr -i  - Start upload
$ ks-upr -g  - Create configuration
$ 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

Initialize common file(s) upload:

  • For initialize recursively upload only run the following command:

    $ ks-upr -i
    
  • The first time you run the command, you will be asked for the necessary connection information:

    * Enter the server user: anonymous
    * Enter the server key: *******
    * Enter the server URL: mypersonaldomain.es
    * Enter the path on the server: /home/anonymous
    * Enter the local path to scan: /home/local/videos
    
  • 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:

    $ ks-upr -r
    

Show configuration:

  • You can check the configuration with the following command:

    $ ks-upr -c
    
  • When consulting the configuration, we will see something like this:

    * Server User: anonymous
    * Server Password: *******
    * URL (or IP) Server: mypersonaldomain.es
    * Destination Path (Server): /home/anonymous
    * Scan Path (Local): /home/local/videos
    * Upload Tool: scp
    * Port Connection: 22
    

Edit configuration:

  • To edit any section of the configuration, the following command would be executed:

    $ ks-upr -e
    
  • After its execution, we will see a menu like the following one to be able to edit the desired section:

    1 - Edit User (anonymous)
    2 - Edit Password (*******)
    3 - Edit Server (mypersonaldomain.es)
    4 - Edit Dest. Path (/home/anonymous)
    5 - Edit Local Path (/home/local/videos)
    6 - Edit Upload Tool (scp)
    7 - Edit Port Connection (22)
    
    8 - Exit
    
    * Choose an option: 
    

Show version:

  • You can check the version with the command:

    $ ks-upr -v
    

Back to README.md