Created
August 1, 2017 00:36
-
-
Save koheisg/5c865967108f7b68204778e8d9e42360 to your computer and use it in GitHub Desktop.
Make backup for mac
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
.PHONY: backup | |
backup: | |
$(eval DATE := $(shell /bin/date +'%Y%m%d')) | |
mkdir -p ~/backup/$(DATE)/desktop | |
mkdir -p ~/backup/$(DATE)/downloads | |
mv ~/Desktop/* ~/backup/$(DATE)/desktop | |
mv ~/Downloads/* ~/backup/$(DATE)/downloads |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
This file keeps
~/Desktop
and~/Downloads
clean.I might focus my task.