#!/bin/bash backed_up=0 for file in ~/linux/*; do cp -u "$file" ~/linux/backup; ((backed_up++)) done echo "Files backed up: $backed_up" This finds the file in given ...
It also saves a log in the same location as the backup file, including: Logging the start and end time plus how long the backup took. Logging every file that was ...