#!/bin/bash # Another useless script by fm_scripts at noinfo.de # http://www.noinfo.de/skripte/ # # Just change BACKUP_ROOT to the root of your backup-dir # and BACKUP_THIS to the root of your important files and # your data will be copied (recursively!) to a directory # which will be created inside the BACKUP_ROOT and named # after the current timestamp. # # If you have trouble using it, try "wget http://noinfo.de/skripte/backup" # to download the script # TIMESTAMP=`date +%Y_%j-%H_%M_%S` BACKUP_ROOT=~/backup_root BACKUP_THIS=/important_files_here cp -R $BACKUP_THIS $BACKUP_ROOT/$TIMESTAMP/ exit 0