⬆️ ⬇️

Linux: Teaching Time Machine to the home server

I set myself the task of backing up my iMac using Time Machine to a home server under Gentoo





emerge net-fs / netatalk

nano /etc/netatalk/netatalk.conf



ATALKD_RUN=no

PAPD_RUN=no

CNID_METAD_RUN=yes

AFPD_RUN=yes

TIMELORD_RUN=no

A2BOOT_RUN=no



nano /etc/netatalk/afpd.conf



- -noddp -advertise_ssh



nano /etc/netatalk/AppleVolumes.default



/mnt/sdb/TimeMachine TimeMachine allow:@users

( - - )



/etc/init.d/atalk start

tail / var / log / messages (see if there are any errors)

rc-update add atalk default (add to startup)



I did not fool around with the Avahi setting to raise Bonjour (this infection wants too much along with it), so go on to setting up MacOS

')

Check if everything works

Finder - Go - afp: // server / TimeMachine

After entering the name / password, everything should be properly mounted



Further, the capsule itself does not want to work normally, for this we force it with pens, open the console and write:

hdiutil create -size 160g -fs HFS + J -volname “TimeMachine” name_mack_comp_c_mack_address_mac_comp..sparsebundle

in response we get:

created: /Users/user_name / machine_name_001ec20a3330.sparsebundle

Further:

cp -r /Users/user_name/machine_name_001ec20a3330.sparsebundle /Volumes/TimeMachine/machine_name_001ec20a3330.sparsebundle

and close the terminal



Now everything should work fine, I myself sit 106GB inundated :)

Source: https://habr.com/ru/post/59605/



All Articles