I'm retrieving an xml file from an offsite third-party server and copying it to my local server. Problem is, once in a while the offsite server is down for maintance and during this time I don't want the crontab command to overwrite my local file. Is there a way I can check to make sure the file exists first, before copying?
Current crontab
0 * * * * username wget -O /home/www/inc/xml/wufoo.xml https://AAAA-BBBB-CCCC-DDDD:x@myaccount.wufoo.com/api/v3/reports/123456/entries.xml