Skip to content

ekm507/server-copy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 

Repository files navigation

server copy (cs command)

copy a file from your local machine into server and get a link.

alternatively, download a link from web on your server and get a link so you can somehow proxy downloading a file.

install

  1. edit server_copy.py file:

set server_name to servername with the username. for instance:

erfan@server.com

set server_directory_name to directory you want to copy files into. for instance:

/home/erfan/Downloads/

set server_access_dir to the link connected to the directory. for instance:

https://server.com/files/

for doing this, you need to set a reverse proxy or alias in your webserver application (nginx, apache,...).

  1. run script install.sh:
./install.sh

usage

run this with cs command:

cs --help

to copy a file into server:

cs filename

to give an alternative name to file in the server use -a option. to have a random alternative name use -r option.

to download from a link into the server use -l switch to specify the link.

cs -l link -a alternativename

About

a script for copying files into server

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published