From 9d648da9c9b15d1365e1d9f5e900ca5bf8453b39 Mon Sep 17 00:00:00 2001 From: fossilfranv Date: Tue, 7 Feb 2023 19:37:04 +0100 Subject: [PATCH] first --- backup_calendars.sh | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 backup_calendars.sh diff --git a/backup_calendars.sh b/backup_calendars.sh new file mode 100644 index 0000000..741c6ee --- /dev/null +++ b/backup_calendars.sh @@ -0,0 +1,25 @@ +#!/bin/bash + +DATE=`date +"%d-%m-%Y"` +NAME=next +url="https://next.franv.site/remote.php/dav/calendars/fossilfranv/next-1/?export" +user=fossilfranv +pwd="Yaounde471&#" + +wget \ +--quiet --output-document="/home/franv/calendars/$DATE-$NAME-next.ics" \ +--auth-no-challenge \ +--http-user=$user --http-password="$pwd" \ +"$url" + +DATE=`date +"%d-%m-%Y"` +NAME=next +url="https://www.livan.myeu.cloud/remote.php/dav/calendars/lishanghai/li_next/?export" +user=lishanghai +pwd="%sMw)D}n>&Zo" + +wget \ +--quiet --output-document="/home/franv/calendars/$DATE-$NAME-li_next.ics" \ +--auth-no-challenge \ +--http-user=$user --http-password="$pwd" \ +"$url"