mirror of
https://gitlab.com/openlp/packaging.git
synced 2024-09-01 03:33:42 +00:00
13 lines
376 B
Bash
Executable File
13 lines
376 B
Bash
Executable File
#!/bin/bash
|
|
|
|
FILENAME=`date +%Y%m%d-%H%M%S`.rss
|
|
BACKUPDIR=~/georss
|
|
BACKUPDAYS=14
|
|
|
|
# Delete files older than $BACKUPDAYS days ago
|
|
find $BACKUPDIR -mtime $BACKUPDAYS -exec rm -f {} \;
|
|
|
|
# Get the latest GeoRSS from our map
|
|
wget -c -O $BACKUPDIR/$FILENAME 'http://maps.google.com/maps/ms?ie=UTF8&source=embed&msa=0&output=georss&msid=113314234297482809599.00047e88b1985e07ad495'
|
|
|