Re: Best backup option

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 05/18/2010 03:50 PM, Jeff Sadino wrote:
> Hello everyone,
> 
> I was wondering what everyone's opinion is as to the best
> command/program to use for backups?  I don't need to preserve the
> partition table, basically just copy files to a backup hard drive.
> 
> Thanks!
> Jeff
> 

Here's my script to backup to an external USB drive

[sdstern@sds-desk ~]$ cat /usr/local/bin/do-backup
#! /bin/sh
cd /media/MyBookLX/sds-desk
echo deleting oldest backup
rm -fr backup.9
echo rolling backups
mv backup.8 backup.9
mv backup.7 backup.8
mv backup.6 backup.7
mv backup.5 backup.6
mv backup.4 backup.5
mv backup.3 backup.4
mv backup.2 backup.3
mv backup.1 backup.2
echo copying backup to backup.1
cp -al backup backup.1
echo updating backup
touch /last_backup_ts
rsync -va --exclude-from /usr/local/bin/do-backup-excludes --delete /
/media/MyBookLX/sds-desk/backup/
cd /
echo Wait for external drive to settle
sleep 30
umount /media/MyBookLX
echo USB drive ejected



[sdstern@sds-desk ~]$ cat /usr/local/bin/do-backup-excludes
/home/*/.gvfs/
/home/*/.google/
/home/*/.dbus/
/home/*/.fonts/
/proc
/tmp
/var/tmp
/media
/sys
/dev

-- 
-- Steve
-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [EPEL Devel]     [Fedora Magazine]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Desktop]     [Fedora Fonts]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Fedora Sparc]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux