commit 9ed0fb77e580616f2bfb38fc01a3e7a3dfb8bfe8 parent 350c68154335ae56bf3c32626038351b40d9ac75 Author: Antoine Amarilli <a3nm@a3nm.net> Date: Tue, 20 Oct 2015 00:54:47 +0200 backup_crontab Diffstat:
backup_crontab | | | 8 | ++++++++ |
1 file changed, 8 insertions(+), 0 deletions(-)
diff --git a/backup_crontab b/backup_crontab @@ -0,0 +1,8 @@ +#!/bin/bash + +FILE="crontab_$(date +%s)" +DIR="$HOME/backup/crontab" + +mkdir -p "$DIR" +crontab -l > "$DIR/$FILE" +