Reply

How-to: Setup multi-Mac backup shares with quotas. Easy.

bct
Tutor
Tutor

How-to: Setup multi-Mac backup shares with quotas. Easy.

Over the last couple years, I've been backing up each of my Macs to the default ReadyNAS Time Machine share. It's been OK, aside from having to hack my sparse bundles to stop them from increasing in size on their own. For some reason, as of Lion, I've had trouble getting that trick to work reliably.

After a weekend of research and playing around I finally put together a good Time Machine setup for my three Macs. Rather than have all three computers backup to the default ReadyNAS Time Machine share, I've setup specific user accounts with quotas to limit the size of the Time Machine backups and I backup each computer to the respective user account home folder. Turns out with the latest 4.2.19 update (I have an x86 NAS) it's a pretty easy setup. I've now tested it with two Lion and one Leopard OS. (And as a test, I found that SSH and Unix know-how isn't necessary.) Figured I'd try to contribute something back to the forum.

These steps assume that Time Machine support is already enabled on the ReadyNAS.

1.) Go into FrontView. Under Security > User Accounts I added a user account for each computer with a quota. (I tend to allocate 1.5x my computer's hard drive space for backups.)

2.) For each user, only two files needed to be created. Repeat the following steps for each user you create:

3.) Open a Finder window and open the AFP (or CIFS) representation of your ReadyNAS in the sidebar or Network folder.

4.) You'll probably be connected as "Guest" and might see any shares that are publicly accessible. Click the "Connect As" button at the top of the window and connect using one of the user accounts you created earlier.

5.) A folder should show up with the name of the user that you logged on as. That's the user's home folder.

6.) Using your favorite plain-text editor create a new plain-text file with a single line containing:


/c/home/<username> ReadyNAS cnidscheme:dbd allow:<username> options:tm


Replace <username> with the exact spelling of the user you're connected as. (It should match the folder name in case and spelling.) Save this file as .AppleVolumes in the user's home folder.

7.) Create an empty file called .com.apple.timemachine.supported and save it in the user's home folder.

Note: both the files start with a . which won't show up in the Finder normally. Eject the ReadyNAS share when you're done creating those two files and connect as the next user if necessary. I found I didn't have to reboot the system to make the changes work for the next step. But it doesn't hurt.

8.) On your Mac, go into the Time Machine preferences. If Time Machine was already setup, go to Select Disk and choose "Do Not Backup" (this makes it forget the previous username/password that was saved). Then do Select Disk again and choose your ReadyNAS like usual. When asked for a username and password, connect using the user and password you setup for that particular computer.

That should be it. Like I said, worked on three computers without a problem. No special settings had to be made on the computers.


Sources:

http://www.readynas.com/forum/viewtopic.php?f=71&t=57003
http://www.readynas.com/forum/viewtopic.php?f=10&t=55738
http://www.readynas.com/forum/viewtopic.php?f=71&t=55166
Message 1 of 65
akeiler
Aspirant

Re: How-to: Setup multi-Mac backup shares with quotas. Easy.

Works like a charm, thanks for the summary!
😄
Nas#1: ReadyNAS Pro Pioneer; 4 GB (Kingston); RAIDiator-x86 Version: 4.2.22; X-RAID2; 6x WD RED WD30EFRX 3TB
Nas#2: ReadyNAS Ultra 6; 1GB RAM; RAIDiator-x86 Version: 4.2.22; 6x Western Digital WD20EADS 2TB - TLER ON & WDIDLE /D
Backup Options: 1 Seagate FreeAgent 2TB USB (formated EXT3); 1 Maxtor OneTouch 1TB USB (formated EXT3)
Network: 3 Netgear GS108T GBit Smart Switches; 1 Linksys WRT54GL Wireless Router (running DD-WRT Firmware); 1 NetGear D6200 Wireless Router
Clients: Mac (Mountain Lion), Ubuntu 10.04, Windows 7, Windows 8 Professional, Virtual Machines: Ubuntu 10.04, Linux Mint 14, Win 7
*backup is bliss
Message 2 of 65
pilot144
Aspirant

Re: How-to: Setup multi-Mac backup shares with quotas. Easy.

Thanks for putting this summary together. It is exactly what I have been looking for sometime now! I can't seem to get it to work for some reason and I suspect it has something to do with the text editor/naming that I am using - I created a user account for each of the Macs that I want to use time machine with i.e. - MacPro

6.) Using your favorite plain-text editor create a new plain-text file with a single line containing:
Which text editor do you use/recommend? I tried - TextEdit.app on the Mac. with a problem of only being able to create the filename with a .txt extension - i.e.( .AppleVolumes.txt/.com.apple.timemachine.supported.txt). I suspect this is giving me the problem- when a backup starts it stops with an error that says those features are not supported on the volume. Please pardon my lack of experience here...

/c/home/<username> ReadyNAS cnidscheme:dbd allow:<username> options:tm


Replace <username> with the exact spelling of the user you're connected as. (It should match the folder name in case and spelling.) Save this file as .AppleVolumes in the user's home folder.

My file .AppleVolumes for the user account MacPro reads - /c/home/MacPro ReadyNAS cnidscheme:dbd allow:MacPro options:tm
Do you see any mistakes there?
Thanks for your help, Mike
Message 3 of 65
mdgm-ntgr
NETGEAR Employee Retired

Re: How-to: Setup multi-Mac backup shares with quotas. Easy.

You need to create the file wihout the .txt extension. Do a command (has Apple symbol on it) + I (i.e. Get Info) of the file and rename it to not have the .txt extension. See if that works.
Message 4 of 65
pilot144
Aspirant

Re: How-to: Setup multi-Mac backup shares with quotas. Easy.

Thanks mdgm - That worked like a charm! Renaming and deleting the .txt extension was very simple. I've now backed up my MacPro and will move on to the other 3 machines.
Really appreciate the quick response too - Mike
Message 5 of 65
bct
Tutor
Tutor

Re: How-to: Setup multi-Mac backup shares with quotas. Easy.

pilot144 wrote:
Thanks mdgm - That worked like a charm! Renaming and deleting the .txt extension was very simple. I've now backed up my MacPro and will move on to the other 3 machines.
Really appreciate the quick response too - Mike



Glad you got it worked out!
Message 6 of 65
bct
Tutor
Tutor

Re: How-to: Setup multi-Mac backup shares with quotas. Easy.

Tip:

Set quota warnings to 100% of the quota, rather than the default 80%.

If your Time Machine backups go over the 80%, Time Machine will just give you an error and the ReadyNAS will complain too. At 100% Time Machine will properly consolidate your old backups.

The setting is under User and Group Accounts, then choose Preferences from the drop-down menu above the list of users. The option is the last one: "Warn user when disk usage is:"
Message 7 of 65
bct
Tutor
Tutor

Re: How-to: Setup multi-Mac backup shares with quotas. Easy.

To make creating the files easier:

I recommend always showing filenames extensions in the Finder. You can enable this under the Finder menu > Preferences… > Advanced > Show all filename extensions.

You can also show hidden files, since the period hides the files in the Finder:

1.) Open Terminal.app. (It's under Applications > Utilities folder.)

2.) At the prompt, type (or copy & paste the following and press Return:
defaults write com.apple.Finder AppleShowAllFiles YES


3.) Then type in the following to restart the Finder:
killall Finder


To stop showing hidden files when you're done, follow the same steps but change YES to NO.
Message 8 of 65
Martin4x4
Aspirant

Re: How-to: Setup multi-Mac backup shares with quotas. Easy.

I have a few problems that I hope someone can help me with.

I have an iMac which I already have backing up with Time Machine - I would now like to add my wife's MacBook. I've read the instructions given here, but I am assuming that this method applies when there had not been an initial use of Time Machine (TM) - am I correct?

I have tried adding the MacBook after setting up my wife as a users, but when I try to connect her to TM I get an error 'The operation could not be completed. (OSStatus error 2.)'

The other problem I keep running across is the reference to FrontView - this has been replaced as I understand it by ReadyNAS - and there is no mention in it of Quota! So how do I set User Accounts I added a user account for each computer with a quota. (I tend to allocate 1.5x my computer's hard drive space for backups.) Is this the same as Capacity shown in Backup Time Machine?

I am also a little confused by the <username> does this have to match a name on the Mac? For instance my iMac has a file called Martin Sullivan's Computer.sparsebundle.

I have the Duo v2.
Message 9 of 65
Martin4x4
Aspirant

Re: How-to: Setup multi-Mac backup shares with quotas. Easy.

Well some success I'm please to report. I followed the instructions and created the two files, and my wife's MacBook is now in the process of backing up via Time Machine.

Just one problem now! My iMac is not doing the hourly TM back ups - it says Backup Delayed… and when I try Back up Now - Time Machine could not complete the backup. the backup disc is not available. I have tried reselecting the NAS, and logged in again, but then I get the 'The operation could not be completed. (OSStatus error 2.)'

Does this mean that I will have to follow the same procedure as with the MacBook? Or can I only back up one Mac at a time?

If I have to start again which TM files can I delete from the NAS?

Thanks again for any help.
Message 10 of 65
Martin4x4
Aspirant

Re: How-to: Setup multi-Mac backup shares with quotas. Easy.

Just for anyone else reading this post.

I did carry out the same set up for the iMac and this is now being backed up via Time Machine.

I also had the answer on removing the old backups in another thread, and it seems this cannot be done until there is a firmware update.
Message 11 of 65
bct
Tutor
Tutor

Re: How-to: Setup multi-Mac backup shares with quotas. Easy.

Sorry, I forgot to ever follow-up on this. Did you have luck getting both of the computers working OK?
Message 12 of 65
ChunkySocks
Guide

Re: How-to: Setup multi-Mac backup shares with quotas. Easy.

Thanks for writing this guide, it appears to have worked; at least, I set-up my g/f as a user with a 500GB allowance and her initial back up via TM is progressing as I type.

Am finding that the speed of writing to the ReadyNAS Ultra 2 is a little on the slow side at <10MB/s but that is a separate issue to this topic as I've been experiencing the same speed when copying music files across from my laptop as well so will look into that separately.

My experience in setting this up was that all went smoothly. I set up user accounts for both myself and my g/f on the ReadyNAS however there was a slight hitch when I wanted to check the username that I had used in file .AppleVolumes as I wasn't sure if I had used correct capitalisation on one of them and found that every time I tried to connect via AFP in Finder with the username & p/w that I'd set up for the account, I got a "Connection denied" error message. Re-booting the NAS and my laptop didn't fix it and I was only able to connect using my Admin login & p/w, navigate to the home folders of the respective user and open up the .AppleVolumes file and check. After disconnecting, I was then able to connect via AFP in Finder with the respective user names I'd set up.

Just to add, if you would rather save bashing in some terminal commands to reveal/hide hidden files in Finder, then Unhidden is a great piece of freeware that makes the process as quick as a click of a mouse button:
http://www.macupdate.com/app/mac/38136/unhidden
Message 13 of 65
beaudettee
Aspirant

Re: How-to: Setup multi-Mac backup shares with quotas. Easy.

Will this work with a SPARC based system (X6) running 4.1.8? I just want to make sure before I make any changes to the 6 machines backing up to it.

Thanks!
Message 14 of 65
Slippers
Aspirant

Re: How-to: Setup multi-Mac backup shares with quotas. Easy.

Before I jump in.....
I'm still a bit confused with the <username> part.
If I have a Mac with 3 users, do I need to have the same 3 users setup on my ReadyNAS?

Also, now what if I have two Macs and each Mac there is a user with the same name (I am the "admin' on both machines)?
Will this process still work for my setup?

Thanks in advance to everyone who has contributed.
NAS: NV+ :: Ultra 4 Plus
Network: Dell PowerConnect 2816 :: Airport Extreme / Express
Clients: OS X 10.6 & 10.7 :: Ubuntu 11.x :: Win 7 Pro
UPS: Tripp Lite SM750UNAFTA
Message 15 of 65
rharse361
Aspirant

Re: How-to: Setup multi-Mac backup shares with quotas. Easy.

I still can't get this to work. I can connect to the ReadyNAS backup volume using the admin uname and pw but can't connect using the user I set up (keep getting the (OSStatus error 2.). I can see the folder for the user I set up and see the .AppleVolumes and .com.apple.timemachine.supported in there but still can't connect. Any suggestions?
Message 16 of 65
majayjay
Aspirant

Re: How-to: Setup multi-Mac backup shares with quotas. Easy.

Hello,

Im a bit confused by User and Share Quotas and how best to setup Time Machine Backups.
I just changed over from Share to User Security Mode. I am trying to create dedicated Time Machine Shares for 2 Machines, as well as allow 2 users to access other shares on the ReadyNAS. Here is a breakdown:

Users and Machines:
2 Users
2 Machines
User 1 has a MBP Retina with 768GB SSD
User 2 has a MBA with 256GB SSD

Desired Shares:
Time Machine Backup for User 1 (MBP Retina) - (1.5TB Quota) (User 1 has access only)
Time Machine Backup for User 2 (MBA) - (384GB Quota) (User 1 & 2 have access)
Videos - (No Quota) (User 1 and 2 have access)
Music - (No Quota) (User 1 and 2 have access)
User 1 Personal - (No Quota) (User 1 has access only)
User 2 Shared - (100GB Quota) (User 1 and 2 have access)

My questions are:
1) I want to confirm that once setup, I can delete the ReadyNAS standard Time Machine Backup Share "Backup" and disable the setting in Frontview?
2) Is the best method to use to setup the 2 new dedicated backup shares the method described in this post? I am wondering if I should be using the old 15 step method instead?
3) I am confused that using this method, you assign a quota to a USER and not a SHARE. Does this mean that I should create 2 User permissions in the ReadyNAS for each physical user. Example: User 1 would have two ReadyNAS User Accounts (1 for the Time Machine access with a 1.5TB quota and another with no quota for accessing the other shares)?
4) How do I assign a (100GB Quota) to the Share: "User 2 Shared"

Thank you for your help!
NV+ w/ 1GB Crucial Ram
RAIDiator 4.1.9
RAIDar Widget
X-Raid w/ (3) Seagate Barracuda 7200.11 1.5TB (2.7TB Total Available)
AFP File Sharing Only, Full Data Journaling-Disabled, Journaling-Disabled, Optimize for OSX-Enabled
Fast CIFS writes-Disabled, Fast USB disk writes-Disabled, Jumbo Frames-Disabled
Mid-2012 MacBook Pro Retina connected to 2009 AEBS Dual Band via Wireless N
NV+ connected to AEBS Dual Band via CAT6
APC Back-UPS BN1250LCD
Message 17 of 65
Martin4x4
Aspirant

Re: How-to: Setup multi-Mac backup shares with quotas. Easy.

I now have a new problem. PC's and my iMac are backing up without any apparent problem.

However my for wife's MacBook, Time Machine starts goes through making disc available, preparing items, and the cleaning up - but then an pop up box appears "Time Machine could not complete the backup" (While this is going on my RaedyNAS is active, I can hear the NAS drives working.) Latest Backup: FAILED. If I look at the sparsebundle it's showing that its been updated with today's date & time. The red info tells me The problem may be temporary. Try again later to back up. If the problem persists, use Disc utility to repair your backup disk.

Time Machine should have been making weekly back ups (using TimeMachineEditor) and the last one was made on June 10, and I've just noticed that this failure has been happening

Any suggestions?
Message 18 of 65
majayjay
Aspirant

Re: How-to: Setup multi-Mac backup shares with quotas. Easy.

I followed the instruction for this also and setup unique users with home folders for myself and my wife. When I try to backup my machine or her machine, neither will connect and both are given the same message "The operation could not be completed. (OSStatus error 2.)"

I've checked and re-checked to make sure I did everything correctly, yet inevitably I get this message. Please help!

Also, are we supposed to keep time machine support "Enabled" in settings? Mine currently is. I'm afraid to disable it in case I lose all our backups prior to being able to create new ones?
NV+ w/ 1GB Crucial Ram
RAIDiator 4.1.9
RAIDar Widget
X-Raid w/ (3) Seagate Barracuda 7200.11 1.5TB (2.7TB Total Available)
AFP File Sharing Only, Full Data Journaling-Disabled, Journaling-Disabled, Optimize for OSX-Enabled
Fast CIFS writes-Disabled, Fast USB disk writes-Disabled, Jumbo Frames-Disabled
Mid-2012 MacBook Pro Retina connected to 2009 AEBS Dual Band via Wireless N
NV+ connected to AEBS Dual Band via CAT6
APC Back-UPS BN1250LCD
Message 19 of 65
Martin4x4
Aspirant

Re: How-to: Setup multi-Mac backup shares with quotas. Easy.

Can anyone help with this problem? Original posted July 3rd!

I now have a new problem. PC's and my iMac are backing up without any apparent problem.

However my for wife's MacBook, Time Machine starts goes through making disc available, preparing items, and the cleaning up - but then an pop up box appears "Time Machine could not complete the backup" (While this is going on my ReadyNAS is active, I can hear the NAS drives working.) Latest Backup: FAILED. If I look at the sparsebundle it's showing that its been updated with today's date & time. The read info tells me The problem may be temporary. Try again later to back up. If the problem persists, use Disc utility to repair your backup disk.

Time Machine should have been making weekly back ups (using TimeMachineEditor) and the last one was made on June 10, and I've just noticed that this failure has been happening

Any suggestions?
Message 20 of 65
Akabane
Aspirant

Re: How-to: Setup multi-Mac backup shares with quotas. Easy.

I have to admit I really don't understand the relation between the users created and the ReadyNAS share... :x Anyway, following that method I get OSSTatus error 2 "the Machine Can't access the backup disk "ReadyNAS" " 😞 Files and users are created though... :x
Old and trusty NV rev B (4x1.5 Tb) (FW 4.1.10 T3)
New and shiny Ultra 6 plus (6x3 Tb) (FW 4.2.21)
About 10 devices @ home asking them to work.
Message 21 of 65
mdgm-ntgr
NETGEAR Employee Retired

Re: How-to: Setup multi-Mac backup shares with quotas. Easy.

What version of Mac OS X?
What version of RAIDiator?
Message 22 of 65
Martin4x4
Aspirant

Re: How-to: Setup multi-Mac backup shares with quotas. Easy.

I am running as follows;
OS X 10.7.4
RAIDiator 4.3.4 and Dashboard 1.0.0.224

Thanks
Message 23 of 65
majayjay
Aspirant

Re: How-to: Setup multi-Mac backup shares with quotas. Easy.

FYI - Regarding my error "The operation could not be completed. (OSStatus error 2.)" I ended up deleting both users from the ReadyNAS NV+, deleted the keychain passwords for each user account on the macs, then followed the steps outlined above again. It worked correctly after that.

I'm not sure why it didn't work properly the first time... The initial time I tried it, i renamed the user accounts from all lowercase to mixed case & of course, used mixed case in the system files I put in the home folder. When I recreated everything from scratch, I left everything lowercase. I'm not sure if that is the reason it worked the second time?
NV+ w/ 1GB Crucial Ram
RAIDiator 4.1.9
RAIDar Widget
X-Raid w/ (3) Seagate Barracuda 7200.11 1.5TB (2.7TB Total Available)
AFP File Sharing Only, Full Data Journaling-Disabled, Journaling-Disabled, Optimize for OSX-Enabled
Fast CIFS writes-Disabled, Fast USB disk writes-Disabled, Jumbo Frames-Disabled
Mid-2012 MacBook Pro Retina connected to 2009 AEBS Dual Band via Wireless N
NV+ connected to AEBS Dual Band via CAT6
APC Back-UPS BN1250LCD
Message 24 of 65
Akabane
Aspirant

Re: How-to: Setup multi-Mac backup shares with quotas. Easy.

OKAY, it is working, thx for the awesome howto. 🙂

I ended up deleting the users again, deleting my old TM drive from the Mac Pref (I think it was the problem), redoing the whole process and as I type, 2 Mac are TM'ing into the Ultra 6. Joy. 😉

Note : You can just activate Time Machine backup on the NAS and assign 1 or 0 size, it doesn't matter. Only the size for the user will matter. Cool thing is it seems you can change it on the fly.
Old and trusty NV rev B (4x1.5 Tb) (FW 4.1.10 T3)
New and shiny Ultra 6 plus (6x3 Tb) (FW 4.2.21)
About 10 devices @ home asking them to work.
Message 25 of 65
Top Contributors
Discussion stats
Announcements