- You’re going to need
- Raspberry pi
- micro sd card
- Some other computer that can write to micro sd
- Ethernet cable
- 3.5 hard drive, probably. Any hard drive that isn’t powered entirely though USB should work
- Format SD card as fat 32
- Download and extract Noobs lite to SD card
- Put SD card in pi and attach hard drive
- Install Debian. Make sure to change the default password
- Some commands to run in terminal
- sudo apt-get update
- sudo apt-get upgrade
- sudo apt-get install netatalk gparted samba samba-common-bin
- sudo gparted
- Partition your hard drive (likely /dev/sda) as you wish, I recommend a pair of equal ext4 partitions
- Some more commands to set up paths and mounting
- sudo mkdir /mnt/TimeMachine
- sudo mkdir /mnt/FileHistory
#Making the folders to mount into - sudo sh -c "echo '/dev/sda1 /mnt/TimeMachine ext4 defaults 0 2' >> /etc/fstab"
- sudo sh -c "echo '/dev/sda2 /mnt/FileHistory ext4 defaults 0 2' >> /etc/fstab"
#Making sure these drives re-mount on reboot - sudo mount /dev/sda1
- sudo mount /dev/sda2
- #Mounting the drives right now for impatience
- sudo chmod 777 /mnt/TimeMachine
- sudo chmod 777 /mnt/FileHistory
#Giving us super duper god access to the drives - sudo sh -c "echo '/mnt/TimeMachine \"Time Machine\” options:tm” >> /etc/netatalk/AppleVolumes.default"
- sudo sh -c "echo '[FileHistory]\ncomment = FileHistory\npath = /mnt/FileHistory\nwriteable = Yes\nonly guest = Yes\ncreate mask = 0777\ndirectory mask = 0777\nbrowseable = Yes\npublic = yes' >> /etc/samba/smb.conf"
#configuring each application. Feel free to make adjustments with sudo nano /etc/netatalk/AppleVolumes.default or sudo nano /etc/samba/smb.conf - sudo service netatalk restart
- sudo service sama restart
#Restarting the services to pick up the new configuration
That should be all, both your mac and your pc should now be able to back up to the pi. Windows might need to do it over IP rather than name, but c'est la vie