#!/bin/sh DATE=`date +%Y%m%d` URL=https://yourblog.com/wp-content-/backup-3c42f/wordpress-files.tar.gz.gpg cd /where/you/put/the/backup wget --no-check-certificate $URL >/dev/null 2>&1 && \ mv wordpress-files.tar.gz.gpg wordpress-files-$DATE.tar.gz.gpg # Delete backups more than 30 days old find . -mtime +30 -name "wordpress-files*.tar.gz.gpg" -print | xargs rm -f