mirror of
https://pagure.io/fedora-infra/ansible.git
synced 2026-03-30 08:50:55 +08:00
add artboard backup to occur
This commit is contained in:
6
files/artboard/artboard-backup
Normal file
6
files/artboard/artboard-backup
Normal file
@@ -0,0 +1,6 @@
|
||||
#!/bin/sh
|
||||
SNAPSHOTTIME=$(date +"%m-%d-%Y")
|
||||
cd /srv/persist
|
||||
echo "Snapshot taken $SNAPSHOTTIME.\n" >> /var/www/html/artboard/artboard-backup-summary.log
|
||||
tar -zcvf "artboard-backup.tar.gz" artboard
|
||||
|
||||
@@ -46,6 +46,10 @@
|
||||
- php
|
||||
- php-gd
|
||||
- php-mysql
|
||||
- cronie-noanacron
|
||||
|
||||
- name: artboard backup thing
|
||||
action: copy src=$files/artboard/artboard-backup dest=/etc/cron.daily/artboard-backup
|
||||
|
||||
- name: link artboard into /var/www/html
|
||||
action: file state=link src=/srv/persist/artboard path=/var/www/html/artboard
|
||||
|
||||
Reference in New Issue
Block a user