13

[ubuntu] Backup script questions

view full story
linux-howto

http://ubuntuforums.org – I have created this script from ubuntu wiki pages: Quote: #!/bin/bash # Backup Script # #What to backup. backup_files="/home/mrc/" #Where to place backup. dest="/home/mrc/backup/" #Create archive filename. day=$(date +%d%m%Y-%R) hostname=$(hostname -s) archive_file="$hostname-$day.tgz" #Print start status message. echo "Backing up $backup_files to $dest/$archive_file" date echo #Backup the files using tar. tar czf $dest/$archive_file $backup_files --exclude 'backup/*' --exclude 'backup' #Print end status message. echo echo &qu (Hardware)