Last active
October 22, 2019 09:54
-
-
Save glowinthedark/8d8879735f8cb6cc45d90c415ee15cfb to your computer and use it in GitHub Desktop.
mac backup rsync home folder
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/usr/local/bin/rsync --progress -av \ | |
--exclude '.DS_Store*' \ | |
--exclude .fseventsd \ | |
--exclude '.Spotlight-V100*' \ | |
--exclude '.TemporaryItems*' \ | |
--exclude '.Trashes*' \ | |
--exclude '.Trash*' \ | |
--exclude 'tmp*' \ | |
--exclude 'Application\ Support' \ | |
--exclude '.PKInstallSandboxManager*' \ | |
--exclude '.DocumentRevisions-V100*' \ | |
--exclude 'Caches*' \ | |
--exclude .cocoapods \ | |
--exclude '.config/yarn/' \ | |
--exclude '.cpan' \ | |
--exclude '.flow-typed' \ | |
--exclude .local \ | |
--exclude node_modules \ | |
--exclude '.cache*' \ | |
--exclude '.metadata*' \ | |
--exclude 'Saved Application State*' \ | |
--exclude 'Logs*' \ | |
--exclude 'DiagnosticReports*' \ | |
--exclude 'CrashReporter*' \ | |
--exclude '.journal*' \ | |
--exclude '.journal_info_block*' \ | |
--exclude 'lost+found*' \ | |
--exclude '.com.apple.timemachine.donotpresent*' \ | |
--exclude 'TheVolumeSettingsFolder*' \ | |
--exclude '.hotfiles.btree*' \ | |
--exclude '/private/var/db/dyld/dyld_*' \ | |
--exclude '/dev/*' \ | |
--exclude '.bash_sessions' \ | |
--exclude '.android' \ | |
--exclude '.node-modules' \ | |
--exclude '.npm' \ | |
--exclude '.nuget' \ | |
--exclude '.nvm' \ | |
--exclude '.vscode' \ | |
--exclude 'Autosave Information' \ | |
--exclude 'Library/Containers' \ | |
--exclude 'Library/Group Containers' \ | |
--exclude 'Library/Developer' \ | |
--exclude 'Library/Logs' \ | |
/Users/___YOURUSERNAME___/ /Volumes/Untitled/___YOUR_BACKUP_DRIVE___ | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment