Last active
March 2, 2016 18:12
-
-
Save lg3bass/0a37c43044b726001793 to your computer and use it in GitHub Desktop.
Save directory listing, RSYNC to external drive
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
// clear out a log | |
USRLSML-2HLDV7L:logs uwhitbo$ echo "" > php_error.log | |
RESULT: | |
-rw-r--r-- 5 uwhitbo admin 1 Mar 2 13:08 php_error.log | |
// save folder listing | |
//source: https://github.com/0nn0/terminal-mac-cheatsheet/wiki/Terminal-Cheatsheet-for-Mac-%28-basics-%29 | |
ls -R > CURRENT_2015_2.txt | |
//rsync select folders to external drive. | |
rsync -a --exclude '.DS_Store' ~/Documents/workspace /Volumes/PearsonBackup/Documents/ | |
rsync -a --exclude '.DS_Store' ~/Documents/1_BW_PROJECTS /Volumes/PearsonBackup/Documents/ | |
rsync -a --exclude '.DS_Store' ~/Documents/2_DROP_ZONES /Volumes/PearsonBackup/Documents/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment