Skip to content

Instantly share code, notes, and snippets.

@celeryclub
Created March 18, 2022 17:35
Show Gist options
  • Save celeryclub/beec9f990086e35cb459ff8296436d87 to your computer and use it in GitHub Desktop.
Save celeryclub/beec9f990086e35cb459ff8296436d87 to your computer and use it in GitHub Desktop.

Based on https://mudge.name/2019/11/12/using-a-raspberry-pi-for-time-machine/.

sudo apt install samba

lsblk

FORMAT

sudo mkfs -t ext4 /dev/sda

MOUNT ON BOOT

echo 'UUID=7b6e6927-ee45-4e85-9d1d-712999f7e4fc /media ext4 noexec,nodev,noatime,nodiratime 0 0' | sudo tee -a /etc/fstab

SET SPINDOWN

sudo apt install hdparm sudo nano /etc/hdparm.conf

/dev/disk/by-uuid/7b6e6927-ee45-4e85-9d1d-712999f7e4fc {
	spindown_time = 120
}

SAMBA STUFF

sudo mkdir /media/backups sudo apt install samba sudo nano /etc/samba/smb.conf

[backups]
   comment = Cherry
   path = /media/backups
   valid users = pi
   read only = no
   vfs objects = catia fruit streams_xattr
   fruit:time machine = yes

sudo service smbd reload

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment