Skip to content

VSilantyev/ansible-timemachine

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • DIGITAL Command Language 100.0%