Re: [CentOS] remote tar via ssh

2007-10-02 Thread Indunil Jayasooriya
Thank you so much for helping me Now I am trying to use the following command to backup all files in hda to sda3 (mount on seconddrive folder) in the same machine and also excludes /usr/bin/rsync -avz --exclude=/boot1 --exclude=/seconddrive --exclude=/proc /* /seconddrive try below . it

Re: [CentOS] remote tar via ssh

2007-10-01 Thread ann kok
Hi Indunil and all Thank you so much for helping me Now I am trying to use the following command to backup all files in hda to sda3 (mount on seconddrive folder) in the same machine and also excludes /usr/bin/rsync -avz --exclude=/boot1 --exclude=/seconddrive --exclude=/proc /* /seconddrive

Re: [CentOS] remote tar via ssh

2007-09-28 Thread ann kok
Hi Les I am trying to use rsync 1/ Are both machine to have rsync installed? 2/ machine A#rsync -essh machineB:/ . I try this command but what wrong I am rsync -essh [EMAIL PROTECTED]:/ . skipping directory /. client: nothing to do: perhaps you need to specify some filenames or the --recursive

Re: [CentOS] remote tar via ssh

2007-09-28 Thread Les Mikesell
ann kok wrote: Hi Les I am trying to use rsync 1/ Are both machine to have rsync installed? Yes, and the remote side needs ssh access. 2/ machine A#rsync -essh machineB:/ . I try this command but what wrong I am rsync -essh [EMAIL PROTECTED]:/ . skipping directory /. client: nothing to

Re: [CentOS] remote tar via ssh

2007-09-28 Thread Indunil Jayasooriya
try this, /usr/bin/rsync -avz [EMAIL PROTECTED]/var/spool/mail/ /var/spool/mail/ this says you rsync to machien 192.168.0.22 from your loacl box and copy /var/spool/mail of remote box(192.168.0.22) to /var/spool/mail/ of local box. On 9/29/07, Les Mikesell [EMAIL PROTECTED] wrote: ann kok

Re: [CentOS] remote tar via ssh

2007-09-28 Thread Matthew Miller
On Sat, Sep 29, 2007 at 10:02:38AM +0530, Indunil Jayasooriya wrote: /usr/bin/rsync -avz [EMAIL PROTECTED]/var/spool/mail/ /var/spool/mail/ Depending on the speed of your connection and the compressibility of your content, -z might not be a good option. Also, if you have large files and are

[CentOS] remote tar via ssh

2007-09-26 Thread ann kok
Hi all Can I use ssh to have remote tar files from machine A to machine B? ssh from machine A to machine B tar all files in machine B to exact to machine A Thank you Got a little couch potato?

Re: [CentOS] remote tar via ssh

2007-09-26 Thread Matthew Miller
On Wed, Sep 26, 2007 at 12:15:06PM -0700, ann kok wrote: Can I use ssh to have remote tar files from machine A to machine B? Yes you can. -- Matthew Miller [EMAIL PROTECTED] http://mattdm.org/ Boston University Linux -- http://linux.bu.edu/

Re: [CentOS] remote tar via ssh

2007-09-26 Thread Von Landfried
I copied this from http://happygiraffe.net/copy-net which is a nice little tutorial for remote copying of files. tar is normally an archiving program for backups. But with the use of ssh, it can be coerced into copying large directory trees with ease. It has the advantage that it copies

Re: [CentOS] remote tar via ssh

2007-09-26 Thread ann kok
can you tell me what is the exactly command? machineA# ssh [EMAIL PROTECTED]:tar cvf / ; tar xvf * --- Matthew Miller [EMAIL PROTECTED] wrote: On Wed, Sep 26, 2007 at 12:15:06PM -0700, ann kok wrote: Can I use ssh to have remote tar files from machine A to machine B? Yes you can.

Re: [CentOS] remote tar via ssh

2007-09-26 Thread Stephen Harris
On Wed, Sep 26, 2007 at 03:22:02PM -0400, Von Landfried wrote: I copied this from http://happygiraffe.net/copy-net which is a nice tar -cf - /some/file | ssh host.name tar -xf - -C /some/place/cool Do not use /some/file - Although GNUtar (the version on CentOS) will strip off the leading /

Re: [CentOS] remote tar via ssh

2007-09-26 Thread Les Mikesell
ann kok wrote: can you tell me what is the exactly command? machineA# ssh [EMAIL PROTECTED]:tar cvf / ; tar xvf * You need a - after the f options to represent stdin/stdout and some appropriate quoting. ssh [EMAIL PROTECTED] 'tar cvf - /' |tar xvf - (and you probably want to use

Re: [CentOS] remote tar via ssh

2007-09-26 Thread David Mackintosh
On Wed, Sep 26, 2007 at 12:22:27PM -0700, ann kok wrote: can you tell me what is the exactly command? machineA# ssh [EMAIL PROTECTED]:tar cvf / ; tar xvf * machineA# cd $WHERE-MACHINE-B-FILES-WILL-LIVE machineA# ssh [EMAIL PROTECTED] cd / ; tar cfp - . | tar xfp - Beware of following

Re: [CentOS] remote tar via ssh

2007-09-26 Thread ann kok
Hi Thank you for all After I untar those files from machine B to machineA eg: in second harddrive /dev/hdb1 I put this hardrive in another computer /dev/hda how can I boot properly as same as machineB I did it before use the bootable CD, mount it chroot and then grub-install /dev/hda but

Re: [CentOS] remote tar via ssh

2007-09-26 Thread Les Mikesell
ann kok wrote: Hi Thank you for all After I untar those files from machine B to machineA eg: in second harddrive /dev/hdb1 I put this hardrive in another computer /dev/hda how can I boot properly as same as machineB I did it before use the bootable CD, mount it chroot and then

Re: [CentOS] remote tar via ssh

2007-09-26 Thread umair shakil
Salam, Through ssh (from A to B) you can TAR the files, but from sftp or scp command you can copy those files to machine B and then extract. like sftp -oPort=22 [EMAIL PROTECTED] Regards, Umair Shakil ETD On 9/27/07, ann kok [EMAIL PROTECTED] wrote: Hi all Can I use ssh to have remote