On Thursday 01 April 2004 16:20, pinto wrote:
Please could some 'Illuminati' help me get my cron-script right? :-
I have problems because rsync is copying directory /proc [ including the huge kcore ], and also /mnt [ where I have mounted my backup partition /dev/hda6 ] , recursively.
Here is the copying code I use to clone a machine during boot. The model machine is mounted on /source the partitions to be filled are on /target The command that does it is this: rsync -aH --delete --exclude-from /source/etc/clone/exclude-list /source/ /target/ Where the file exclude-list contains this: cat exclude-list # file to control the rsync copy onto a new machine # Just the top level home directory + /home/ - /home/* # just the mount points + /media/ + /media/cdrom/ - /media/cdrom/* + /media/floppy/ - /media/floppy/* - /media/* # just mount points + /mnt/ - /mnt/* + /proc/ - /proc/* + /tmp/ - /tmp/* # All directories in /var/log + /var/log/**/ - /var/log/* - /var/log/**/* Hopefully this should give you enough examples to work out your problem, michaelj -- Michael James michael.james@csiro.au System Administrator voice: 02 6246 5040 CSIRO Bioinformatics Facility fax: 02 6246 5166