Skip to content

Latest commit

 

History

History
27 lines (22 loc) · 1023 Bytes

File metadata and controls

27 lines (22 loc) · 1023 Bytes

Hosting for data pipeline development

Digital Ocean

  • doctl — command line tool for provisioning Digital Ocean droplets

Secure backup a Linux volume over a network

  • Backup: dd if=/dev/sda | gzip -1 - | ssh user@hostname dd of=sda.img.gz
  • Restore: ssh user@hostname dd if=sda.img.gz | gunzip -1 - | dd of=/mnt/sda.img
  • Test: fdisk ./sda.img returns block size and start of each partition
  • Make mount point: mkdir /mnt/partname
  • Calc offset: start * blocksize. E.g. 2048*512 = 1048576
  • Mount: mount -o loop, offset=OFFSET hda.img /mnt/partname
  • Ready to use at /mnt/partname

Provision checklist

  • create droplet with SSH key (not root login)
  • create SSH Public Key for user

Configuration checklist

  • create a username on new droplet
  • give publc keys to study group members

Platforms