-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathExample job.yaml
More file actions
29 lines (22 loc) · 836 Bytes
/
Example job.yaml
File metadata and controls
29 lines (22 loc) · 836 Bytes
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
name: Backup some stuff to KINGSTON USB
source:
# Note that serial always takes precedence if supplied and
# a matching drive is found.
serial: 'AB12CD34'
path: 'MyStuff'
# If the drive was found as D: this would be D:\MyStuff
destination:
# Will find the first drive labelled KINGSTON.
label: "KINGSTON"
path: 'Backup\MyStuff'
# If the drive was found as F: this would be F:\Backup\MyStuff
# Optional: require this file, in this case F:\Robocopy.flag
#flag: '$drive$\Robocopy.flag'
robocopy:
# Robocopy options (warning, /MIR can delete files!)
options: "/FFT /DST /MIR /XJ /NP /R:3 /W:30"
# Tell Robocopy to save a log
log: '$dst_drive$\Robocopy-$timestamp$.log'
settings:
# Optional format parameter for $timestamp$
time_format: "%Y-%m-%dT%H%M%S"