Convenient to build their own use TimeMachine program

Finally I changed a relatively stable working environment,Now,This is my desktop:

My desk

All right,In short,With mobile hard disk backup on a regular basis is not a permanent solution,so,As a poor force,We give yourself to find a suitable、A convenient backup solution。

As the saying goes:

Backup is not,Wicked。

Then,We are concerned that my design。

design

First of all,As a poor force,The first element is the economic program designed to back up ......?♂️ know almost nothing in the popular J1900 and his ilk too expensive,After thinking before or want to pass out,after all,I only backup,Not so much to share - less than。

J1900 finished Taobao industrial base price of around 999,I owned a 1T mobile hard disk,The price is a bit difficult to accept。

At last,I found a product on the market is not in China:BeeLink of z83 II ! of course,Taobao will buy cheaper,Very affordable。

Simply Configuration:

  • A network port - Gigabit;
  • 5G wifi 2.4G 都 支持;
  • A usb 3 Two usb 2;
  • hdmi and sd card;
  • 1.9GHz dual-core 4 thread。

Ok,Find the gems。

--do not forget,This is not the finished machine motherboard!

Architecture

All right,Then there is the software,Originally, I wanted to use the freenas,But the real machine hand does not boot,会 gaint lock ,What seems to be the pit freebsd,In short,使用 ubuntu 16.04 Perfect start。

so,With ubuntu is the common architecture of the series:

  • Netatalk use as a server tm;
  • Broadcasting using Avahi。

DIY

First of all,Ubuntu brush into the box that is not to say,After the update we installed Netatalk and Avahi:

Create a file /etc/avahi/services/Pd.service To configure avahi,Write the following:

The next step is to mount the hard drive,Here I use the mobile hard disk,In order to facilitate future activities,In addition, I also put a lot of hard drive file backup is not easy to reformat,So I am going to directly HFS +

Mount HFS +

First of all,You have to install the plug-in system apt install hfsprogs ,Then use the command to see whether the system supports modprobe hfsplus ,In General,This command does not have any reaction,If you like this,It is a tragedy,like me:

It is said that your kernel is compiled streamlined,You need to make an official patch。Use the command:

If you can not find results,It means you are using a custom kernel too,Then you need to come up,Use the command to search packages available: apt search linux-image-extra-

There are a lot of results,I'm 16.04 tls,So the results are great ,I readily choose a linux-image-extra-4.8.0-42-generic ,This time next after the installation is complete restart (reboot might not be okay) then perform modprobe hfsplus You should be on it。

use sudo fdisk -l To see your hard drive location,For example, I was so:

Here find the largest district on the right!

Use command to mount:

Remember to change your position sda2,Directory mount point to a pre-existing job,Does not exist you have to create。Inside the first command is used to repair HFS + partition,This is very common in mac,Once what weird problems,You can use it to repair。

Permissions issue

After a successful mount your non-root users may be unable to write,This is because the disk caused by the user's own content,The easiest way is probably to deceive you into thinking that the file or the original user。The default is mac user UID 501,Then we'll run netatalk user id change 501:

After finish out the current user,Then go in with this temporary user,If you are using ssh,Then withdraw,use ssh tempuss@Xxx..Xxx..Xxx..Xxx. re-register。After logging continues:

At this time you may be prompted to say there is a process in occupancy,Can not change。It's good to do,According prompt pid,That process can kill: sudo kill <pid> Then repeat the above command,It's ok,How many will take up how many dry ......

Then,You can then withdraw your original user logged in,This time again mounted directory to see,Has writable。Do not forget to delete the temporary user: sudo userdel -r tempuss

配置 Netatalk

Finally,You can configure the netatalk,Create two directories on a hard disk mobile,One for storing files,Another for backup。Then edit /etc/netatalk/Apple Volumes.default ,In most writing at the end of the file:

The third focus is the end of the line options:tm This marks something that TimeMachine visible on the corresponding directory。

At last,We restart the corresponding service:

Mac-side settings

Improve server,Our computers have some configuration:

Execute this command in a terminal network backup location make tm found:

This time you should have been able to find your network location in the configuration tm!

Select it,Enter the password to connect,Backup begins。

TimeMachine backup device through the data network

Update

To add windows server share

Sharing protocol used is called samba win,Name is called smb protocol,In fact, mac can support smb,So we can let go tm afp,In addition to a special directory run smb,For mac and win share files。 Using the following command to install samba:

Edit profile: vim /etc/samba/smb.conf ,And add the following line at the end:

Then create a user to samba,The user must be an existing user:

Create a password that you want to log samba password,Do not remember the。Finally, restart the service:

Mac and win so you can access the same directory。

in conclusion

The whole process is actually very complicated,Mainly stepped on a lot of other people could never quite found a lifetime pit ......

Good machine performance,My network is gigabit LAN switching it on peak rate 60M / s,Of course, less stable,I have not used genuine large capsule so I do not know all this is a lot of,But at least use the。

As temperature,z83 is, as always feels slightly warm,cpu consumption is not large:

The amount is not high cpu

Overall price 600 Yuan,HDD Enclosure and hard drive I owned a。

I think the follow-up of this machine is to drive up the wifi module (the default is no wifi drivers,Because I do not so I did not mention ......) and then to be 5 Ap G's also good to say ......

Then it is to run a roommate smb,What will this send files easily ......

 

If I did,It will be updated immediately here。

Being on so much of it - Good morning。

 

 

Original article written by LogStudio:R0uter's Blog » Convenient to build their own use TimeMachine program

Reproduced Please keep the source and description link:https://www.logcg.com/archives/2653.html

About the Author

R0uter

The non-declaration,I have written articles are original,Reproduced, please indicate the link on this page and my name。

Comments

  1. With mobile hard disk backup on a regular basis is not a permanent solution,That the long-term removable hard disk into your computer does not like a thing?

    1. is allowed,But the trouble is the place mac sleeps disk during idle periods,The next time when the backup starts read,Such start when there will be a waiting time,The most painful part is that the whole Caton one second ------ be! ! ! !

    1. is allowed,But the trouble is the place mac sleeps disk during idle periods,The next time when the backup starts read,Such start when there will be a waiting time,The most painful part is that the whole Caton one second ------ be! ! ! !

Leave a Reply

Your email address will not be published. Required fields are marked *