rsync backup

Karl F. Larsen klarsen1 at gmail.com
Mon Nov 23 15:17:59 UTC 2009


Thomas K Gamble wrote:
> On Saturday 21 November 2009 04:37:02 pm Karl F. Larsen wrote:
>> Chris wrote:
>>> On Sat, 21 Nov 2009 10:08:57 -0700
>>>
>>> Karl Larsen <klarsen1 at gmail.com> wrote:
>>>> 	I have lost the little thing I used to call for a backup of
>>>> my linux. I was using rsync -avg /  exempt/media exempt/dev  .
>>>> .. /media/disk-1, or something like that.
>>>>
>>>> 	I have looked at man rsync which is confusing, and tried
>>>> Google but their info is trivial.
>>>>
>>>> 	Is anyone using something like this?
>>>>
>>>> Karl
>>> Have a look here, Karl.
>>> http://www.my-guides.net/en/content/view/87/26/
>> rsync -rtvogpclz --exclude-from=/home/karl/bin/exclude-list /
>> /media/disk-1/rsync/
>>
>> In this rsync setup the excluded directories are in
>> /home/karl/bin/exclude-list. This looks like:
>>
>> /proc/*
>> /sys/*
>> /dev/*
>> /lost+found/*
>> /var/log/lastlog/*
>> /tmp/*
>> /mnt/*
>> /cdrom/*
>> /media/*
>>
>> and the place I want to put the backup is on a USB hard drive
>> at /media/disk-1/rsync.
>>
>> Most of this is from the fedora list you showed me. It runs
>> but it sends NOTHING to the USB Hard Drive. What am I missing?
> 
> If you are wanting to back up your entire system, you need to run rsync as 
> sudo.  If you don't, you'll get "permission denied" errors and nothing will be 
> copied except your home directory.
> 
> what I do is :
> 
> sudo rsync -auv --exclude-from=/home/tkg/exclude_list / /backup 
> 
> The -a option includes most of the options in your list and the -u option 
> tells rsync to only back up those files that have changed since your last 
> backup. 
> 
> If your running a script from a cron job (in /etc/cron.daily for example), you 
> don't need to use sudo.
> 
>> 73 Karl
>>
> 
	Thank you! That was what I thought. I will test it later but 
expect it will work. It is a lot simpler.




-- 

	Karl F. Larsen, AKA K5DI
	Linux User
	#450462   http://counter.li.org.
         Key ID = 3951B48D





More information about the ubuntu-users mailing list