Posted on 01-03-2019 02:41 PM
So I have read through a few threads about how to setup using time Machine to backup to a QNAP for just one user folder. What I am actually looking at doing is setting up Time Machine to be pre-configured to backup the the user folder for all profiles on the computer but not actually enable the auto backup. We are only looking to backup the data when user leaves the company just incase that data is needed after the computer is re-deployed.
If I just ran the script below would that set all the settings I want but not enable the backup or is there a better way to get these settings ready and deployed to each Mac so that we can easily do the backup once the computer is returned?
tmutil setdestination smb://username:password@ipaddress/volumename
tmutil addexclusion -p /Applications
tmutil addexclusion -p /Library
tmutil addexclusion -p /System
tmutil addexclusion -p /bin
tmutil addexclusion -p /cores
tmutil addexclusion -p /etc
tmutil addexclusion -p /Network
tmutil addexclusion -p /private
tmutil addexclusion -p /sbin
tmutil addexclusion -p /tmp
tmutil addexclusion -p /usr
tmutil addexclusion -p /var
exit 0