package both systemd timers
[myplc.git] / systemd / plc-dump-db.service
diff --git a/systemd/plc-dump-db.service b/systemd/plc-dump-db.service
new file mode 100644 (file)
index 0000000..eaefa4e
--- /dev/null
@@ -0,0 +1,6 @@
+[Unit]
+Description=designed to be run on a daily basis, this creates a dump of the planetlab5 and drupal databases, and cleans old ones
+
+# keep backups during two months
+[Service]
+ExecStart=/usr/bin/bash /etc/plc.d/db dump-and-clean 60