Giter VIP home page Giter VIP logo

ansible-timemachine's Introduction

Overview

An ansible playbook to setup a TimeMachine on Debian (Jessie).

Since there is currently not a package for netatalk 3 available for Jessie this playbook provides an easy way to build and install it.

Intented to use with raspberry pi and raspbian / jessie.

Prequisites

  • ansible 2.0 or higher
  • osx

Setup Raspbery Pi

  1. Download image from https://www.raspberrypi.org/downloads/raspbian/. I've used raspbian jessy lite
  2. Copy it to SD card:
diskutil list
sudo diskutil unmountDisk /dev/disk2
sudo dd if=~/Downloads/2016-03-18-raspbian-jessie-lite.img of=/dev/disk2 bs=1m
  1. Boot raspberry pi, ssh to it, setup ssh key for user "pi", run raspi-config and resize root partition, reboot

Prepare USB disk

  1. Attach usb disk to mac and run diskutil to determine device
 
 diskutil list
  1. Format usb disk using HFS+ non-journaled. I created two partitions:
diskutil partitionDisk /dev/disk2 2 MBR HFS+ backups 650G HFS+ media 100G
  1. Determine volume UUID:
diskutil info disk2s1|grep "Volume UUID"
  1. unmount disk
diskutil unmountDisk /dev/disk2


Prepare ansible config
----------------------

1. Create host_vars/raspberry_pi_host_name_or_ip file, copying from example.com. 
2. Fill parameters in this file, see comments in file for instruction

Run
---
ansible-playbook -i "raspberry_pi_host_name_or_ip," playbook.yml 

ansible-timemachine's People

Contributors

instagraeme avatar vsilantyev 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.