From 1ea18a0916f3631224160577f190f396f544a80f Mon Sep 17 00:00:00 2001 From: SinTan1729 Date: Sat, 17 Sep 2022 22:09:56 -0500 Subject: [PATCH] Better layout --- crontab-bk.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crontab-bk.sh b/crontab-bk.sh index 80acfab..36752bd 100644 --- a/crontab-bk.sh +++ b/crontab-bk.sh @@ -1,6 +1,7 @@ #!/bin/sh # this is a script to backup crontab data + # put this inside /etc/cron.daily # define location for output @@ -11,4 +12,4 @@ mkdir -p $DIR ls /etc/cron.hourly/ /etc/cron.daily/ /etc/cron.weekly/ /etc/cron.monthly/ > $DIR/crontab echo "-----------------" >> $DIR/crontab -crontab -l >> $DIR/crontab +find /var/spool/cron/ -type f -exec sh -c "echo {} && cat {} && echo ---" \; >> $DIR/crontab