Skip to content

Work done for a subject in Distributed Systems [SDIS] in MIEIC @FEUP, in collaboration with @cyrilico

Notifications You must be signed in to change notification settings

antonioalmeida/distributed-bs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

91 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

distributed-bs

Work done for a subject in Distributed Systems [SDIS] in MIEIC @FEUP, in collaboration with @cyrilico

Project: A Distributed Backup Service

Development of a distributed backup service for a local area network (LAN). The idea is to use the free disk space of the computers in a LAN for backing up files in other computers in the same LAN. The service is provided by servers in an environment that is assumed cooperative (rather than hostile). Nevertheless, each server retains control over its own disks and, if needed, may reclaim the space it made available for backing up other computers' files.

Repository Structure

This repository has three main folders:

  • L01: Code for the first labratory assignment.
  • L02: Code for the second labratory assignment.
  • project: Main project.

Usage

# compiling - output to bin directory
sh compile.sh

# starting a peer
# sh run.sh <protocol version> <peer id> <service access point> [<MCReceiver address> <MCReceiver port> <MDBReceiver address> <MDBReceiver port> <MDRReceiver address> <MDRReceiver port>]
sh run.sh 1.1 1 remote1

# running a sample client
# sh testapp.sh <remote host> <sub-protocol name> [<sub-protocol args]
# example - running the RECLAIM protocol 
sh testapp.sh //localhost:0/remote1 reclaim 100

Usage Remarks

  • To kill possibly pendent executions, run kill.sh
  • OpenJDK based systems need to install openjfx
  • Peer metadata is saved in a PeerController<ID>.ser file and are loaded automatically once the same an ID is reused

About

Work done for a subject in Distributed Systems [SDIS] in MIEIC @FEUP, in collaboration with @cyrilico

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published