Skip to content

Commit

Permalink
backuping to directory
Browse files Browse the repository at this point in the history
  • Loading branch information
tomekbielaszewski committed Aug 22, 2021
1 parent b17cb32 commit 2b2b500
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ then
else
export backup_date=`date +20%y%m%d-%H%M%S`
echo "Backing up old crontab into cron.backup.$backup_date"
mkdir -p backup
crontab -l > backup/cron.backup.${backup_date}
echo "Installing new crontab"
crontab < ./crontab.txt
Expand Down

0 comments on commit 2b2b500

Please sign in to comment.