From 88fa1e04bcffbbd763d570a69936d6c7cebb0bbb Mon Sep 17 00:00:00 2001 From: fossilfranv Date: Mon, 20 Feb 2023 18:07:02 +0100 Subject: [PATCH] Update 'backup_calendars.sh' --- backup_calendars.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backup_calendars.sh b/backup_calendars.sh index 082d799..afb617c 100644 --- a/backup_calendars.sh +++ b/backup_calendars.sh @@ -22,4 +22,5 @@ wget \ --quiet --output-document="/home/franv/calendars/$DATE-$NAME-li_next.ics" \ --auth-no-challenge \ --http-user=$user --http-password="$pwd" \ -"$url" \ No newline at end of file +"$url" +find /home/.franv/calendars/* -mtime +5 -exec rm {} \; \ No newline at end of file