I’m sure this set-up will evolve over time. It enables scheduled copies of your data to the samba share. One of the easiest way is to use File History feature. Netatalk (time capsule on Ubuntu) Backing up Android devicesįolderSync is one of the well supported applications that have the option of backing up to a samba share. It worked well but this time I opted to re-use the Samba server and a more transparent backup using a freeware tool Backuplist+ Backuplist+ has the advantage that it can create a copy of the files instead of unreadable archives. I used to install a netatalk server on the Ubuntu server to create a new local time capsule. The simplest solution (from Mac perspective) is the built-in Time Machine. For simplicity and integration I use Ubuntu’s own Backup tool (Déj? Dup) although I am still looking for a more powerful and efficient software such as Borg Backup, and hope it gets a nice integrated UI some day. Sudo systemctl restart rvice rviceĮven on the Ubuntu machine itself I follow the 3-2-1 rule and perform a regular backup of all files to a 3TB separate encrypted disk. Restart the service to apply new settings: Then set up backup shares (one for each user account you wish to use):Īdd users who can access the defined shares with the ‘smbpasswd’ command. Set up workgroup name, set security to user, and disable guest access in /etc/samba/smb.conf In order to connect all the devices to the Ubuntu server in a single and easily supported way I decided to use a Samba server. Direct cloud backup from the devices can be used instead of (or in addition to) the server’s cloud backup too. This is the most convenient option for the local backup, whether it is a Mac, Windows, Android, or an Ubuntu machine. The Exploit Database is a non-profit project that is provided as a public service by OffSec. Samba does not have built-in bonjour support, but with the help of avahi, its possible to advertise your smb shares through bonjour as well, and they show up in the Finders navigation bar as well (awesome). I run central home Ubuntu server 24×7 and it makes sense to backup all family devices to it and backup the server to the cloud. The Exploit Database is maintained by OffSec, an information security training company that provides various Information Security Certifications as well as high end penetration testing services. Netatalk has built-in bonjour support, so if you run netatalk, the afp shares show up nicely in Finder (great). If the disk is shared you can, however, limit the space Time Machine consumes by adding this to the /etc/netatalk/afp.The 3-2-1 backup rule states that there should be 3 copies of your data – 2 local and 1 offsite. If I shared the disk with something else and didn’t set a disk reservation, I could run the risk of something else consuming the space that the backups need. The last part is why I dedicated a disk to backups. The oldest backups are deleted when the disk is full Backups are stored according to the scheme below: Unfortunately, there isn’t any other option to configure if you wish to manage the backups. Once you’ve selected “Backup Automatically” the Time Machine client will automatically take a backup every hour, as long as it’s connected to the server. When prompted, enter a username and password of an account on the linux server that has permissions to the /timemachine directory. Select the NAS Time Machine Target on the server and click “Use Disk” and then “Connect” The share that’s configured in the afp.conf file should be available to select. Now, on your Mac, you should be able to open the Time Machine settings in System Preferences and use Select Disk… to pick your new Time Machine backup drive. 1 I prefer GPT because it’s newer and the larger capacity drives it can support 2.įirewall-cmd -permanent -add-port =/udp I have a spare hard drive that I’ve dedicated to Time Machine backups that I’ve installed in my file server. Create Backup Directory and Assign Permissions.I’ll be using Fedora 35 Server Edition as my backup server for this blog post, but be aware that other Linux distros will have slightly different commands. Thanks to the Apple File System (APFS) and its filesystem snapshot capabilities, Time Machine backups are very efficient, perform well, and can be used to do a full system restore at a specific point in time in addition restoring individual files.Īttaching a USB hard drive as a backup target is the simplest way to get started with Time Machine backups, but server backups are, in my opinion, the most convenient for the long term - no cables or drives cluttering my desk and anytime I’m connected to my file server via wifi, the automated backups will still run. If you use a Mac, Time Machine is a powerful, simple, and all encompassing backup solution that is built in to MacOS. Use a disk on a linux server to store MacOS Time Machine backups.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |