README.md 2 KB
Newer Older
Efthymia Bika's avatar
Efthymia Bika committed
1 2 3 4
# BaaS

Backup as a Service

5 6 7
## Build instructions

### Build instructions for Windows
8 9

I. Cygwin installation and setup
Giorgos Korfiatis's avatar
Giorgos Korfiatis committed
10
    1. Download Cygwin setup.exe from https://www.cygwin.com/setup-x86_64.exe in this directory.
11
    2. Execute install.bat
Giorgos Korfiatis's avatar
Giorgos Korfiatis committed
12 13
        This will install Cygwin and prerequisite packages under .\build\cygwin.
        It will also download and install python-lockfile, duplicity and python-swiftclient.
14 15 16 17 18 19 20 21 22 23

II. Node.js
    1. Install Node.js from https://nodejs.org/en/
        Important: npm3 is required. To update:
        - cd %ProgramFiles%\nodejs
        - npm -g install npm@latest

    2. Install nw-builder : npm -g install nw-builder

III. Clone repo and build
Giorgos Korfiatis's avatar
Giorgos Korfiatis committed
24 25 26
    1. Get the code from the baas repo
    2. cd into baas directory
    3. nwbuild -p win64 -v 0.12.0 baas
27 28
    4. copy contents of build\baas\win64 folder into build directory

Efthymia Bika's avatar
Efthymia Bika committed
29
### Build instructions for Linux
30 31 32 33 34

I. Building duplicity
   1. You will need python, pip and gnupg.
   2. Make sure you have librsync-dev installed.
   3. pip install wheel.
Giorgos Korfiatis's avatar
Giorgos Korfiatis committed
35
   4. Download and unpack the latest duplicity source code from https://launchpad.net/duplicity/0.7-series
36
   5. Run make_duplicity.sh <path_to_duplicity_src>. This will build duplicity and collect its dependencies under build/duplicity. In order to run the executable build/duplicity/duplicity, you need to set PYTHONPATH=build/duplicity/lib.
37

Efthymia Bika's avatar
Efthymia Bika committed
38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53
## Copyright and license

Copyright (C) 2015 GRNET S.A.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.