Rsnapshot is an open-source backup utility that helps create point-in-time copies of your filesystem. It makes use of the rsync
and ssh
utilities to transfer and store backups securely. In this tutorial, we will guide you through the installation of Rsnapshot on macOS.
Open your terminal.
Ensure that your Homebrew package manager is updated to the latest version by running the following command:
brew update
brew install rsnapshot
/usr/local/etc/rsnapshot.conf
.sudo nano /usr/local/etc/rsnapshot.conf
snapshot_root /var/rsnapshot/
cmd_cp /bin/cp
cmd_ssh /usr/bin/ssh
cmd_rsync /usr/bin/rsync
retain hourly 6
retain daily 7
retain weekly 4
retain monthly 3
backup /path/to/source/dir/ user@hostname:/path/to/destination/dir/
For example, to backup your Documents
folder to a remote server with IP 192.168.0.10
, add the following line to the configuration file:
backup /Users/yourusername/Documents/ user@192.168.0.10:/backups/yourusername/Documents/
Save and exit the configuration file.
Run a test backup with the following command:
sudo rsnapshot configtest
sudo rsnapshot hourly
You now have Rsnapshot installed and configured on your macOS system. The backup process is now automated, and new backups will be created automatically based on your specified retention policies. To change the backup frequency or retention policies, edit the configuration file and rerun the rsnapshot
command. Happy backup!
If you want to self-host in an easy, hands free way, need an external IP address, or simply want your data in your own hands, give IPv6.rs a try!
Alternatively, for the best virtual desktop, try Shells!