Skip to content

Instantly share code, notes, and snippets.

@n3rd
n3rd / backup.sh
Created April 24, 2019 18:31
Script for scheduled recursive FTP backup
#!/bin/bash
# backups a ftp host (complete all recursive)
# currently does not support the backup of a specified directory
cd "$(dirname "$0")"
backupfile=$(date +%Y%m%d)
savetodir=./backup-$(date +%Y)/
host=ftp.site.com