-
Notifications
You must be signed in to change notification settings - Fork 25
/
Copy pathsasynx.set-sample
executable file
·80 lines (63 loc) · 2 KB
/
sasynx.set-sample
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
77
78
79
80
unset src dest src_dir dest_dir group
################## DO NOT CHANGE ABOVE LINE #####################
### Example1: Your set file can be as simple as this
#################################################################
src=("acct1")
dest=("acct2" "acct3")
#################################################################
### Example2: You can add multiple sets like this for movies and tv
#################################################################
case $1 in
# Sets
movies)
src_dir=("-movies:movies")
;;
tv)
src_dir=("-tv-20s:television/20s")
;;
*) printf "\nArgument missing or set \"$1\" is invalid.\n\n";continue
;;
esac
#################################################################
### Example3: You can add groups of sets like this
#################################################################
case $1 in
# Sets
movies)
src_dir=("-movies:movies")
dest_dir=("-movies:movies")
;;
movies-4k)
src_dir=("-movies-4k:movies/4k")
dest_dir=("-movies-4k:movies/4k")
;;
tv)
src_dir=("-tv-20s:television/20s")
dest_dir=("_tv2:television/20s")
;;
ebooks)
src_dir=("-ebooks:ebooks")
dest_dir=("-ebooks:ebooks")
;;
photos)
src_dir=("-photos:photos")
dest_dir=("-photos:photos")
;;
# Group section
all-movies)
group=("movies" "movies-4k")
;;
other)
group=("ebooks" "photos")
;;
*) printf "\nArgument missing or set \"$1\" is invalid.\n\n";continue
;;
esac
#################################################################
#################################################################
### NOTES:
### NAME THE SET FILE AS YOU LIKE, BUT SPECIFY IT IN CONFIG FILE OR WITH THE -s FLAG
### THE SYNTAX ABOVE IS BASH CASE SYNTAX. https://linuxize.com/post/bash-case-statement/
### IN STATEMENTS LIKE src=("acct1:") or dest=("acct2:" "acct3:") PARENTHESES ARE
### ONLY REQUIRED FOR MULTIPLE SRC/DEST DIRS. SO src="acct1:" IS EQUIVALENT
#################################################################