You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
43 lines
1.3 KiB
43 lines
1.3 KiB
3 years ago
|
# имя задачи
|
||
|
name: Archives
|
||
|
# папка, куда будет помещен архив
|
||
|
dst_dir: /tmp/pyback/archives
|
||
|
# список действий состоит из
|
||
|
actions:
|
||
|
- com:
|
||
|
# сообщения, которое будет выведено в консоль
|
||
|
message: "{warn} Имитируем бурную деятельность"
|
||
|
# и команды
|
||
|
cmd: >-
|
||
|
sleep 2
|
||
|
- com:
|
||
|
message: "{warn} Создаем шум"
|
||
|
cmd: >-
|
||
|
mkdir -p /tmp/folder1 && touch /tmp/folder1/c_files{1,2,3,4,5}.org
|
||
|
- com:
|
||
|
message: "{process} Архивируем"
|
||
|
cmd: >-
|
||
|
gtar czf
|
||
|
/tmp/pyback/archives/Archives-{date}-{time}.tar.gz
|
||
|
/tmp/folder1
|
||
|
2> /dev/null
|
||
|
---
|
||
|
name: Private Data
|
||
|
dst_dir: /tmp/pyback/private
|
||
|
actions:
|
||
|
- com:
|
||
|
message: "{warn} Имитируем бурную деятельность"
|
||
|
cmd: >-
|
||
|
sleep 2
|
||
|
- com:
|
||
|
message: "{warn} Создаем шум"
|
||
|
cmd: >-
|
||
|
mkdir -p /tmp/pdata && touch /tmp/pdata/c_files{1,2,3,4,5}.org
|
||
|
- com:
|
||
|
message: "{process} Архивируем"
|
||
|
cmd: >-
|
||
|
gtar czf
|
||
|
/tmp/pyback/private/pdata-{date}-{time}.tar.gz
|
||
|
/tmp/pdata
|
||
|
2> /dev/null
|