You might want to write a simple bash script containing these commands and place it on recovery disk for convenience. defaults write DUDebugMenuEnabled 0<īoot into recovery mode, and mount the NFS. select show every partition in debug tab in disk utility, and mount it. So in here, I mount it on the recovery partition.Ĭreating mnt directory in recovery hd for mounting I am not sure what happens when NFS share is mounted on the MacintoshHD volume.(OS intallation partition), I recommend using TimeMachineEditor to schedule backup if you think it’s just plain stupid to take hourly backups of home-useĭisable another annoying feature of Time Machine by the command below.Ĩ. Open System Preference, Select Accounts, Select your Account, Click on Login components tab, and drag the sparsebudle image on NFS and drop it to the list.ħ. Set sparsebundle image to be attached automatically. Sudo tmutil setdestination /Volumes/TimeMachineĦ. Set the image as destination of time machine backup. Hdiutil attach -verbose /Users/Shared/NFS/Backup/TimeMachine/timemachine.sparsebundle Setting NFS share as time machine destination Rsync -avE timemachine.sparsebundle /Users/Shared/NFS/Backup/TimeMachine/ĥ. Move the disk image to NFS directory you mounted, and remove the local sparsebundle disk image Hdiutil create -size 500g -type SPARSEBUNDLE -nospotlight -volname "TimeMachine" -fs "Case-sensitive Journaled HFS+" -verbose ~/timemachine.sparsebundleĤ. Any volname, and sparsebundle filename is acceptable. Command below create sparsebundle image under current directory. Change the size to your liking, it won’t take actual space in the disk. Retrans=10,proto=tcp,resvport,locallocks,noacl 192.168.1.1:/srv/nfs/MacĮdit /etc/auto_master, write mount point and filename of the text file created above.įormat: “mount point” “name of the text file you created above”ģ. Make sure to use vers=3,resvport and locallocks, at least.įormat: “name of the mount directory you want to see in Finder” “nfs options” “nfs device directory”īackup -fstype=nfs,vers=3,rw,soft,intr,rsize=32768,wsize=32768,noatime,timeo=1200, Mounting NFS share from Mac by automount.Ĭreate a file containing mount options. Rw,no_subtree_check,insecure,no_root_squashĢ. The exports should at least have these options below. NFSv3 is as fast as Netatalk in my environment.ġ. The only manual to do is connect the SSD for the clone after a virus and malware scan.Here is my way of using nfs as time machine backup.Īvoid NFSv4 on Mavericks, it’s terribly unstable. Key storage on Synology also backs up to BackBlaze B2 daily:ĥ copies: Mac, Clone, NAS, Time Machine, Cloud B2Ĥ different media: Mac, SSD, NAS, Hard driveģ versions in the cloud: Backblaze, Backblaze B2, iCloud, Dropbox Then daily clone to SSD, which gets swapped with an offsite SSD every week. Use iCloud only for photos, syncing app settings and iOS backups. I do Synology Drive from PC to NAS and use Cloudsync from NAS to Dropbox and OneDrive (this way, I don’t need Dropbox installed on my Mac). The best is to have cloned and disconnected data in different locations. Time Machine allows for little time, but not much. iCloud, OneDrive is that issues/infections replicate to all locations instantly. Mostly use it for local version control, and I have excluded many folders (such as downloads, virtual machines etc.) from Time Machine. Check out BackupLoupe: One Stop Shop for Time Machine, which provides good insights. There are also tools to help thin out your backups if needed. If you set a Synology space 2x the Mac SSD size, you can go for a very long time. These are not full backups but rather incremental snapshots, and if and when your target drive is full, it starts deleting the earliest (oldest) backups.
0 Comments
Leave a Reply. |