Skip to content

Backup Progress

I got my new 64GB USB stick. You can read about my backup story here and here.

The script is fairly simple:

now=$(date +%Y-%m-%d_%H-%M-%S)
backup_dest_local=/home/$user/BACKUP/ # do not forget to exclude this

rsync -h --progress --stats -r -tgo -p -l -D --update --delete-after --delete-excluded \
# ... many lines of exluding folders, e.g. cache, node_modules etc.
$backup_source $backup_dest_local &&
cp -r $backup_dest_local $backup_dest_external

Every some days I move the data from the USB stick to my external long-term backup after some cleaning.