-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmakefile
76 lines (66 loc) · 1.91 KB
/
makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
RSYNCFLAGS =\
-av \
--progress \
--exclude='$RECYCLE.BIN' \
--exclude='$Recycle.Bin' \
--exclude='.AppleDB' \
--exclude='.AppleDesktop' \
--exclude='.AppleDouble' \
--exclude='.com.apple.timemachine.supported' \
--exclude='.dbfseventsd' \
--exclude='.DocumentRevisions-V100*' \
--exclude='.DS_Store' \
--exclude='.fseventsd' \
--exclude='.PKInstallSandboxManager' \
--exclude='.Spotlight*' \
--exclude='.SymAV*' \
--exclude='.symSchedScanLockxz' \
--exclude='.TemporaryItems' \
--exclude='.Trash*' \
--exclude='.vol' \
--exclude='.VolumeIcon.icns' \
--exclude='Desktop DB' \
--exclude='Desktop DF' \
--exclude='hiberfil.sys' \
--exclude='lost+found' \
--exclude='Network Trash Folder' \
--exclude='pagefile.sys' \
--exclude='Recycled' \
--exclude='RECYCLER' \
--exclude='System Volume Information' \
--exclude='Temporary Items' \
--exclude='Thumbs.db' \
instructions:
@echo be sure the connect all keeper shares then run
@echo
@echo make backup
@echo
@echo current connected shares (should see Admin, Data, Media, Personal, Programs, Projects, Resources, Scratch)
@ls /Volumes
backup: admin data personal programs projects resources scratch media
admin:
@echo Admin
@rsync $(RSYNCFLAGS) /Volumes/Admin /Volumes/Backup
data:
@echo Data
@rsync $(RSYNCFLAGS) --exclude='Pluralsight' /Volumes/Data /Volumes/Backup
media:
@echo Media
@mkdir -p ./Media
@rsync $(RSYNCFLAGS) /Volumes/Media/Audio /Volumes/Backup/Media
personal:
@echo Personal
@rsync $(RSYNCFLAGS) /Volumes/Personal /Volumes/Backup
@rsync $(RSYNCFLAGS) /Volumes/Media/Personal/ /Volumes/Backup/Personal-Media
programs:
@echo Programs
@rsync $(RSYNCFLAGS) /Volumes/Programs /Volumes/Backup
projects:
@echo Personal
@rsync $(RSYNCFLAGS) /Volumes/Projects /Volumes/Backup
resources:
@echo Resources
@rsync $(RSYNCFLAGS) /Volumes/Resources /Volumes/Backup
scratch:
@echo Scratch
@rsync $(RSYNCFLAGS) /Volumes/Scratch /Volumes/Backup