

- #DROPBOX BACKUP FOR MAC HOW TO#
- #DROPBOX BACKUP FOR MAC FOR MAC#
- #DROPBOX BACKUP FOR MAC UPDATE#
- #DROPBOX BACKUP FOR MAC ARCHIVE#
- #DROPBOX BACKUP FOR MAC CODE#
Here I’ve excluded the most common macOS resource files and, obviously, the Dropbox folder, but you can customize it as you like. This is the list of files and folder we want to exclude from our backup, starting from the home directory.
#DROPBOX BACKUP FOR MAC CODE#
Then copy the code below and paste it inside the file called exclude.txt. Well done, copy the code below and paste it inside the same file with a text editor - even TextEdit will do the job #!/bin/bash COMPUTER_NAME=$(hostname -s) USER_NAME=$(whoami) SOURCE_PATH=~/ DESTINATION_PATH=”dropbox:Backups/$_archive” rclone sync $SOURCE_PATH $DESTINATION_PATH \ - backup-dir $ARCHIVE_DESTINATION_PATH \ - exclude-from exclude.txt \ - delete-excluded
#DROPBOX BACKUP FOR MAC UPDATE#
#DROPBOX BACKUP FOR MAC ARCHIVE#
In my case, the full path on Dropbox would be /Backups/macbook-pro-di-alan/tegola.Īs a bonus point, if you delete a file or folder locally and then launch a backup, that file/folder will be moved in the Archive folder - located, in my case, at /Backups/macbook-pro-di-alan/tegola_archive - so you can find accidentally deleted items there, or clean it up if you want. When rclone will run, it’ll store data two folders down, the first will have your computer’s name, and the second one will have your user name. We need to pick a destination folder for storing our backup, so open your Dropbox folder and create a new sub-folder called Backups. Rclone’s configuration screen Step 2: Setup your Dropbox account


#DROPBOX BACKUP FOR MAC FOR MAC#
This guide is for Mac users, but can be easily adapted for Windows or Linux with little tinkering.
#DROPBOX BACKUP FOR MAC HOW TO#
In this tutorial I’ll show you how to setup an system to backup your home directory to Dropbox - which is my cloud storage service of choice, but you can use pretty much every other major cloud storage service - using rclone, a command line utility to sync files and folders between your computer and cloud storage services, or between different cloud storage services.Įven if you’re not a command line us er, at the end of this tutorial you will have a executable app that will back up your home directory to Dropbox, and move locally deleted files in an archive folder at each subsequent run.
