Thomas K Gamble
tkg at lanl.gov
Mon Nov 23 14:42:27 UTC 2009
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 /
> In this rsync setup the excluded directories are in
> /home/karl/bin/exclude-list. This looks like:
> 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
If your running a script from a cron job (in /etc/cron.daily for example), you
don't need to use sudo.
> 73 Karl
Thomas K. Gamble
Research Technologist, System/Network Administrator
Chemical Diagnostics and Engineering (C-CDE)
Los Alamos National Laboratory
There cannot be a crisis next week. My schedule is already full.
More information about the ubuntu-users