#!/bin/bash USER_ROOT=/home/fasoonli CONFIG_FILE="$USER_ROOT/backup-config" . $CONFIG_FILE all_backups=$(list_all_backups | sort) if [[ "$all_backups" ]]; then echo "List of all backups (copy and paste the name with quotes):" for d in $all_backups; do FULLMETA="$BACKUP_ROOT/$d/$METATXT" BACKUP_NAME=$(cat "$FULLMETA") created_at=$($STAT --printf "%y" "$FULLMETA") echo -e "->\"$BACKUP_NAME\"\t created on $created_at" done else echo "No backups found. Please run ./$SCRIPT_BACKUP BACKUP_NAME to create one" fi