Can0n Posted November 1, 2017 Share Posted November 1, 2017 Since installing unraid and replacing an older system I have been scouring the forums to find out how to get Apple TimeMachine working correctly with UnRAID. I have lots of issues with connecting to TimeMachine, errors in the back up or more recently that my Mac's keep telling me my backup disk has a new identity and needs to create a new backup, this taking about 24hours or so for the initial one and needing to redo it a few times a week is painful. Well from some help via this forum and YouTube I found a working solution to this. Its most definitely using disk shares instead of user shares that's the key. Here is how it got it working perfectly on my 2 Macs in my home. First you really should dedicate a single disk for this purpose as we will be using Disk Shares not user shares. Prep: _________________________________________________________________________________________________________________________________________________________________ For my purpose I set all shares to exclude disk8 (5TB) to dedicate for my two Mac's (a Mac Mini with 2x1TB SSD's and a Macbook Air with 256GB of SSD space) I deleted my TimeMachine user share and made sure my disks shares were being exported on the Tower/Main screen. (v6.3.5) ---- Method of Procedure: with array stopped head to Settings-->Global Share Settings and make sure Enable Disk Shares is set to Yes, then start the array. Next I had about 2.5TB on the Drive so used the docker contain Krusader and ssh via terminal to move the contents to the appropriate folders on other disks. _________________________________________________________________________________________________________________________________________________________________ Setup: Once the disk was empty it was time to set Timemachine up. Head over to the Shares tab, click on the disk# you are going to use and not a share name make sure Export is set to Yes (TimeMachine) and Security is Secure (TimeMachine wont backup to public shares/disks over a network) make sure to give your user read/write access Mount the Disk on your Mac with cmd-K then use type afp://username:password@serverIP/disk# and connect (in my case is used disk8) On your Mac: Open Preferences and TimeMachine connect to the disk you just mounted it should also be detected if you didn't mount it but I always mount it to know i can access it. Start a Backup once Timemachine accepts your disk and is scheduling a backup. I found my backup started but failed after about 20min or so. but i noticed I have a new Usershare named after my computers name with the .sparsebundle attached Resolving the Backup Error: _________________________________________________________________________________________________________________________________________________________________ Click on the new User Share with the .sparsebundle on its name. Change the Allocation Method to High Water I chose not to use the Cache drive as i only have 512GB and my initial backup was over 1TB but feel free to use it or turn it on after the initial backup completes. under the Security Settings leave it all as default Thats It both my Mac's connect and backup without error now and I couldn't be happier 3 4 Quote Link to comment
Torolime Posted December 10, 2017 Share Posted December 10, 2017 Was having issue using time machine. Followed the post and now the backup progress around 40% and going strong. Thanks for the post. Quote Link to comment
Can0n Posted December 13, 2017 Author Share Posted December 13, 2017 You're welcome @Torolime and glad to hear it. Quote Link to comment
alfredo_2020 Posted April 9, 2018 Share Posted April 9, 2018 I have only used "User Shares" is it safe to add a new drive to my array, and only use that as a "Disk Share" for this purpose. I will go to all my other shares and make sure they exclude this new disk first. i guess my question is... IS it safe to have both User Shares + 1 Disk Share active at the same time on the same unRAID Server? Quote Link to comment
wgstarks Posted April 9, 2018 Share Posted April 9, 2018 (edited) 38 minutes ago, alfredo_2020 said: I have only used "User Shares" is it safe to add a new drive to my array, and only use that as a "Disk Share" for this purpose. I will go to all my other shares and make sure they exclude this new disk first. i guess my question is... IS it safe to have both User Shares + 1 Disk Share active at the same time on the same unRAID Server? I would suggest setting this up as a time machine share and only including one disk in the share. But yes, you can share disks without a problem. Edited April 9, 2018 by wgstarks Quote Link to comment
steve1977 Posted April 29, 2018 Share Posted April 29, 2018 Thanks for this guide. There are some other guides referencing to use time machine over SMB instead. Is this supported by Unraid and what are pros and cons? How would the instructions change? Thanks! Quote Link to comment
Can0n Posted May 5, 2018 Author Share Posted May 5, 2018 Hello I have heard this was started with support in unraid 6.5 and on MacOS high Sierra I have yet to try it yet if I can find time tonight will see if I can get it going as I am finding issues with the hourly backup now it will get at least one successful back up a day the rest fail with a unsupported features error Quote Link to comment
jowi Posted July 14, 2018 Share Posted July 14, 2018 (edited) For some reason, i always have a recurring issue with timemachine and unraid. After a reboot of unraid, TM can't find the disk anymore and you have to move heaven and earth to make TM finally use the correct disk, even with the setup described here. Once that is done, and the first backup is done (i'm scheduling a backup once a week) in 9 out of 10 times TM keeps spinning up the unraid disk every 10 minutes or so. Driving me crazy. After a reboot that stops, but... most of the time TM lost it's disk again... and the whole sh*tty procedure starts over again... at the moment, i've rebooted the mac, and selected the unraid disk TM should use, it found it, but... it starts accessing it every 10 minutes... and i didn't even do a backup... i'm getting so tired of this. Any tips on how to set up TM once and for all? Basically this setup here works, but how do i prevent TM from constantly spinning up the unraid disk every 10 minutes or so after the backup is finished? Edited July 14, 2018 by jowi Quote Link to comment
Jorgen Posted July 15, 2018 Share Posted July 15, 2018 8 hours ago, jowi said: how do i prevent TM from constantly spinning up the unraid disk every 10 minutes or so after the backup is finished? Go to the settings page for your TM share, and set AFP Security Settings/Volume dbpath to a directory that will persist on your cache drive (assuming you have a cache drive). TM constantly (well, every 10 minutes) checks info stored in some TM database files. If these are located on your array disk, the disk will spin up. By configuring the share as above, those files are actually stored on the cache drive. Not only does that prevent the array disk to spin up, the whole operation is also much faster. In fact, I recommend you do the same for ALL your AFP shares as it greatly improves general file browsing performance (ever waited 5 minutes for a share directory listing to be displayed in Finder?) This is from the unRAID help for Volume dbpath: Quote Sets where to store netatalk database information. A directory with same name as the share will be created here. Leave this field blank to have the database created in the root of the share. 2 Quote Link to comment
jowi Posted July 16, 2018 Share Posted July 16, 2018 Thanks, made the setting, did a test and it looks like it's working, i'll have to test some more, also what happens after a reset etc. Quote Link to comment
cracksilver Posted November 22, 2018 Share Posted November 22, 2018 Hi there I had the same odysee as everyone here. Only problems with timemachine backups. Then I proceeded to the above steps and still had promleme to find the backups. Even after the first run. Now I additionally changed the timemachine shares to public and additionally set the volume dbpath to a directory on the cache disk. /Mnt/cache/apple-data The system has wrote some folders and files in there right now. Now it seems to be working right. It is really boring this timemachine issue. cracksilver Quote Link to comment
cracksilver Posted November 23, 2018 Share Posted November 23, 2018 Just to tell it. Now it works with my work from my last post very, well with both iMac and MacBook. Even after restart the timemachine starts and works backups how it should. Thank you for this post. cracksilver Quote Link to comment
eagle470 Posted December 22, 2018 Share Posted December 22, 2018 I'm new to Mac (just bought my wife one), so I've never dealt with time machine before. Do I need to dedicate a disk (meaning: will MAC reformat the space) or can I just group my disks and let things fall where they may, which is how I have been doing things. Quote Link to comment
wgstarks Posted December 22, 2018 Share Posted December 22, 2018 (edited) 1 hour ago, eagle470 said: Do I need to dedicate a disk No. You can just create a share for your TM backups and let it use all your disks if that works better for you. Really depends on what limit you configure for the size of your share I think. If you limit the share to say 500GB there probably isn't a need to spread it across ten 8TB disks (you could though). Your Mac will not reformat the disk space used. Probably the only major difference between this share and your others will be the sharing protocol (AFP rather than SMB). Edit: Also, if you do decide to limit the TM share to just one disk you can still use that same disk for other shares. Edited December 22, 2018 by wgstarks Quote Link to comment
alfredo_2020 Posted February 5, 2019 Share Posted February 5, 2019 (edited) So i upgraded to 6.6.6 and timemachine stopped working getting a PANIC error now... Any ideas why this would be? EDIT: I Manually Downgraded to 6.6.5 by replacing the 5 files that start with bz... on the flash drive, and my problem wasn't fixed. So something got corrupted when i upgraded to 6.6.7RC2 to see if the new kernel would fix my Vega Reset Issue (It didnt) So when i reverted to 6.6.6 i lost my 6.6.5 recovry through the gui, but i learned you can replace the 5 BZ files with the ones i download from unraid. I will keep investigating this and might start my own thread. Edited February 7, 2019 by alfredo_2020 Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.