[Linuxcommand-announce] [LinuxCommand.org: Tips, News And Rants] Project: Getting Ready For Ubuntu
Brought to you by:
bshotts
|
From: William S. <bs...@pa...> - 2010-05-15 14:54:53
|
After some experiments and benchmarking, I have modified the
usb_backup_ntfs script presented in the last installment to remove
compression. This cuts the time needed to perform the backup using this
script by roughly half. The previous script works, but this one is
better:
#!/bin/bash
# usb_backup_ntfs # backup system to external disk drive
SOURCE="/etc /usr/local /home"
NTFS_DESTINATION=/media/BigDisk_NTFS/backup
if [[ -d $NTFS_DESTINATION ]]; then
for i in $SOURCE ; do
fn=${i//\/}
sudo tar -cv \
--exclude '/home/*/.gvfs' \
-f $NTFS_DESTINATION/$fn.tar $i
done
fi
--
Posted By William Shotts to LinuxCommand.org: Tips, News And Rants at
5/15/2010 10:54:00 AM |