This is a discussion on Script to Copy Files Conditionally within the Sun Solaris Administration forums, part of the Solaris Operating System category; --> On Apr 5, 10:49 am, Huge <H...@nowhere.much.invalid> wrote: > On 2007-04-05, Tim Bradshaw <t...@tfeb.org> wrote: > pkg-get install rsync ...
| |||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| ||||
| On Apr 5, 10:49 am, Huge <H...@nowhere.much.invalid> wrote: > On 2007-04-05, Tim Bradshaw <t...@tfeb.org> wrote: > pkg-get install rsync > > Not hard ... I live in absolute terror of pkg-get (at least the blastwave one). 3 times out of 10 it will do what you want, 6 times out of 10 it will install a new version of gnome and/or libc which it will take a day to excise from the machin, once out of 10 you will need an exorcist, bleach and a flamethrower. --tim (yes, I know, it's not really that bad and what it's trying to do makes sense in context.) |
| |||
| On 2007-04-05, Tim Bradshaw <tfb+google@tfeb.org> wrote: > On Apr 5, 10:49 am, Huge <H...@nowhere.much.invalid> wrote: >> On 2007-04-05, Tim Bradshaw <t...@tfeb.org> wrote: > >> pkg-get install rsync >> >> Not hard ... > > I live in absolute terror of pkg-get (at least the blastwave one). 3 > times out of 10 it will do what you want, 6 times out of 10 it will > install a new version of gnome and/or libc which it will take a day to > excise from the machin, once out of 10 you will need an exorcist, > bleach and a flamethrower. It does have a habit of installing 200Gb of stuff when all you wanted was a new version of "less", I admit, but it's never broken anything here, and since it uses its own libraries and directory trees, it's easy enough to remove. -- Ignorance more frequently begets confidence than does knowledge: it is those who know little, not those who know much, who so positively assert that this or that problem will never be solved by science. [email me at huge {at} huge (dot) org <dot> uk] |
| |||
| Huge wrote: > On 2007-04-05, Tim Bradshaw <tfb+google@tfeb.org> wrote: > >>On Apr 5, 10:49 am, Huge <H...@nowhere.much.invalid> wrote: >> >>>On 2007-04-05, Tim Bradshaw <t...@tfeb.org> wrote: >> >>>pkg-get install rsync >>> >>>Not hard ... >> >>I live in absolute terror of pkg-get (at least the blastwave one). 3 >>times out of 10 it will do what you want, 6 times out of 10 it will >>install a new version of gnome and/or libc which it will take a day to >>excise from the machin, once out of 10 you will need an exorcist, >>bleach and a flamethrower. > > > It does have a habit of installing 200Gb of stuff when all you wanted > was a new version of "less", I admit, but it's never broken anything > here, and since it uses its own libraries and directory trees, it's > easy enough to remove. > Took your advice and built rsync. Couldn't find a binary for sol8, so downloaded the source and it built (only one warning !) and was running in about 15 minutes. It appears to copy the whole tree on the first run through identical src/dst trees, but nothing on a second run. Still thinking about the script though - puzzle. find $1 -newer $2 > files will pull out the differences, but still work to do building the args to cp. The systems here need very little sysadmin, so never really spend enough time to get up to speed on scripting. Have Kernighan and Pike, sed & awk and the man pages and that's about it, so a good book on scripting wouldn't be a bad idea... Chris -- ---------------------- Greenfield Designs Ltd Electronic and Embedded System Design Oxford, England (44) 1865 750 681 |
| |||
| On 2007-04-05 23:15:23 +0100, ChrisQuayle <nospam@devnul.co.uk> said: > Took your advice and built rsync. Couldn't find a binary for sol8, so > downloaded the source and it built (only one warning !) and was running > in about 15 minutes. http://www.sunfreeware.com/programlistsparc8.html#rsync > It appears to copy the whole tree on the first run through identical > src/dst trees, but nothing on a second run. That's what it should do. |
| ||||
| Tim Bradshaw wrote: > On 2007-04-05 23:15:23 +0100, ChrisQuayle <nospam@devnul.co.uk> said: > >> Took your advice and built rsync. Couldn't find a binary for sol8, so >> downloaded the source and it built (only one warning !) and was >> running in about 15 minutes. > > > http://www.sunfreeware.com/programlistsparc8.html#rsync > >> It appears to copy the whole tree on the first run through identical >> src/dst trees, but nothing on a second run. > > > That's what it should do. > There was a binary listed, but there were dependencies which looked like a hassle. Often download, then use pkgadd, but It takes so little time to do a build from source. It's easier to see what's going on and what gets put where from a Makefile. As for copy the whole tree, that's fine - some files didn't get copied. Msg was: chown failed, invalid arg 22, probably ro files, but will find out. Approx 13 gbytes rsync ran overnight at 648 K bytes per second from local drive to local A5100 on Disksuite. The speed hit is probably due to software raid, which seems to peak at around 1.5 Mbytes second flat out. Overall, good stuff & many thanks... Chris -- ---------------------- Greenfield Designs Ltd Electronic and Embedded System Design Oxford, England (44) 1865 750 681 |