Re: [SLUG] Tar over SSH

2001-10-27 Thread Michael Lake
Hi guys, This is just a follow-up so others can use this really simple shell script to backup their machines on a network using tar over ssh. I took the advice of Angus, Jan and Steve who suggested that I use a test in the .bashrc for interactive invocation of the shell by checking the value of

Re: [SLUG] Tar over SSH

2001-10-22 Thread Jamie Wilkinson
This one time, at band camp, Mike Lake wrote: >Just thought that surely someone in slug does *streaming* backup to another >machine using *tar over ssh* and must have examples of how the do it. Yeah, and it's exactly like everyone's said, the caveat is that there is no output from roots .profile,

Re: [SLUG] Tar over SSH

2001-10-22 Thread Mike Lake
On Tue, Oct 23, 2001 at 07:33:13AM +1000, Grant Parnell wrote: > Hmmm consider writing a little program to insert in the pipe that filters > all output until it gets a marker. > ssh root@martel 'echo "MARKER"; tar cvf - /home/mikel/testing' | filter.pl > | dd >/dev/rmt0 Nice idea but I am backi

Re: [SLUG] Tar over SSH

2001-10-22 Thread Grant Parnell
Hmmm consider writing a little program to insert in the pipe that filters all output until it gets a marker. ssh root@martel 'echo "MARKER"; tar cvf - /home/mikel/testing' | filter.pl | dd >/dev/rmt0 filter.pl goes something like this.. #!/usr/bin/perl $mark=0; while() # read a line from STDI

Re: [SLUG] Tar over SSH

2001-10-21 Thread Andre Pang
On Sun, Oct 21, 2001 at 04:50:40PM +1000, Michael Lake wrote: > Howard Lowndes wrote: > > Have you considered doing rsync across machines. it is considerably faster > > as it only transfers the changes. > > Ah that that would be sensible to run in between full tar backups. > Wow I am right at t

Re: [SLUG] Tar over SSH

2001-10-20 Thread Michael Lake
Howard Lowndes wrote: > Have you considered doing rsync across machines. it is considerably faster > as it only transfers the changes. Ah that that would be sensible to run in between full tar backups. Wow I am right at this moment doing an "apt-get install rsync" and will browse that info but I

Re: [SLUG] Tar over SSH

2001-10-20 Thread Michael Lake
Jamie Wilkinson wrote: > > This one time, at band camp, Mike Lake wrote: > >The problem is that when ssh logs into root .bashrc & .profile gets run > >and there is some output from the login shell. This is prepended to the > >tar file so its not a tar file anymore. I can see the lines of the logi

Re: [SLUG] Tar over SSH

2001-10-20 Thread Howard Lowndes
Have you considered doing rsync across machines. it is considerably faster as it only transfers the changes. On Sun, 21 Oct 2001, Mike Lake wrote: > Hi guys, > > Persuant to a suggestion that I should not be trying to backup machines > using tar over NFS as it can lead to probs (such as root on

Re: [SLUG] Tar over SSH

2001-10-20 Thread Jamie Wilkinson
This one time, at band camp, Mike Lake wrote: >The problem is that when ssh logs into root .bashrc & .profile gets run >and there is some output from the login shell. This is prepended to the >tar file so its not a tar file anymore. I can see the lines of the login >if I run "/test | more". 'touc

[SLUG] Tar over SSH

2001-10-20 Thread Mike Lake
Hi guys, Persuant to a suggestion that I should not be trying to backup machines using tar over NFS as it can lead to probs (such as root on the remote machine not being able to read the machine to backup) I have been trying to get tar over ssh going. This was the problem I had. Date: Sun, 7