Sign inSign up

y0uls/survival

By y0uls

•Updated almost 7 years ago

Server / Client to backup files

Image
0

1.1K

y0uls/survival repository overview

⁠Survival

Survival allows you to save a file in real time if it is modified on a remote server.

Survival uses socket.io to transfer data.

  • Docker-compose example :
version: "2.4"
services:
  server:
    image: y0uls/survival
    container_name: survival_server
    restart: always
    ports:
      - 8085:8085
    volumes:
      - ./received:/usr/src/app/received
    command: ["node", "server.js"]

  client:
    image: y0uls/survival
    container_name: survival_client
    restart: always
    ports:
      - 8085:8085
    volumes:
      - ./config.json:/usr/src/app/config.json
      - ./send:/usr/src/app/send
    command: ["node", "client.js"]
  • Config.json example :
{
"keyPass":"123456789",
"serverAddress":"192.168.0.1",
"filePath":"./send"
}

It is possible to modify the "keyPass" server directly in server.js as well as the "maxValue" value which corresponds to the number of retained files.

Tag summary

Content type

Image

Digest

Size

39.1 MB

Last updated

almost 7 years ago

docker pull y0uls/survival