Coder Social home page Coder Social logo

backup2cloud's Introduction

backup2cloud

backup2cloud is an .sh wrapper for automated duplicity backups.
Duplicity is bandwidth-efficient backup solution that creates encrypted tar archives and can write to remote locations using various protocols (FTP, Rsync, WebDAV, SMB, etc.).

backup2cloud is developed and tested on ReadyNAS OS to create backups at Stack using the WebDAV protocol. The software should also run on other debian-based Linux distros. Usage of other remote storage locations and protocols should be possible with minimal adaptations to the configuration file.

Preparations

1. Download and install duplicity

sudo apt-get install duplicity

2. Setup WebDAV connection (optional)

Note: Duplicity supports various file transfer protocols, so this step is not needed if you decide to configure your remote connection differently.

For practicality reasons, a WebDAV folder is mounted (permanently) during boot here. It uses the davfs2 WebDAV drivers, which is also described here.

# Install the davfs2 drivers
sudo apt-get install davfs2
 
# Open the davfs secrets file with your favorite text editor
nano /etc/davfs2/secrets
 
# Add the following line to the "Credential Line" section
https://USERNAME.stackstorage.com/remote.php/webdav/path/to/stack/folder STACK_USERNAME STACK_PASSWORD
 
# Create the WebDAV mount at reboot (fstab doesn't work at ReadyNAS)
crontab -e
@reboot mount -t davfs https://USERNAME.stackstorage.com/remote.php/webdav/path/to/stack/folder /path/to/mountpoint

3. Clone backup2cloud repository

git clone https://github.com/mcoonen/backup2cloud.git

Configuration

Usage (backup)

Usage (restore)

Scheduling (crontab)

backup2cloud's People

Contributors

mcoonen avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.