rsync script mis-cue ??

William Case billlinux at rogers.com
Tue Jun 5 17:17:00 UTC 2007


Hi;

I have the following script I have been using for backing up:
I just added the rsync -auH /etc/* /backup/etc line now to the script,
to backup in preparation for installing FC7. /backup/ is a properly
partitioned and mounted secondary hard disk.

I have the following home directory:
ls -l /home/bill (with individual files removed) is:
drwxr-xr-x  3 bill bill   4096 May 28 12:32 Desktop
lrwxrwxrwx  1 bill bill     23 Mar 30  2006 Docs
-> /home/bill/Desktop/Docs
drwxr-xr-x  3 bill bill  36864 Dec 25 10:54 icons
drwx------  2 bill bill   4096 Mar  9 23:04 Mail
drwxr-xr-x  2 bill bill   4096 Dec  5 18:39 Music
drwxrwxr-x 18 bill bill   4096 May 27 10:23 OclugRepo
drwxr-xr-x  2 bill bill   4096 May 14 09:55 Templates
drwxr-xr-x  2 bill bill   4096 Nov  6  2006 Wallpaper

]$ FullBU
#! FullBU
....
if [ "$?" = 0 ]; then
rsync -auH  /home/bill/* /backup/bill
rsync -auH /etc/* /backup/etc
fi
...

I just did a visual check and discovered that none of my dot files had
been backed up; some /home/bill directories were not copied
(icons,Mail,Music,OclugRepo,Templates); and, the /etc/* line did
nothing.

I have re-read 'man' rsync and believe that the script should work.

Can anyone offer me any suggestions about what I have done wrong?

-- 
Regards Bill




More information about the fedora-list mailing list