Skip to content

Instantly share code, notes, and snippets.

@rosd89
rosd89 / backup.sh
Created July 30, 2019 06:07 — forked from comfuture/backup.sh
backup daily to remote host, and delete old backups smarter
#!/bin/bash
date=`date "+%Y-%m-%dT%H_%M_%S"`
HOME=/YOUR/LOCALHOME
SERVER=ID@HOST
DIR=backup
rsync -azP \
--bwlimit=500 \
--delete \
--delete-excluded \