Operating System - HP-UX
1830936 Members
1959 Online
110017 Solutions
New Discussion

Re: Backup of a filesystem on another ftp server

 
SOLVED
Go to solution
Vipin Singhal
Super Advisor

Backup of a filesystem on another ftp server

Hi friends,
i need to take a backup of my file system /opt/oracle to another server. after completion of backup, i need to extend this filesystem size.

what should i do?

Should I use NFS mount?
If i use NFS mount, then there will be no problem while extending the size of logical volume and file systems

please tell me the steps.
thanks
vipin


14 REPLIES 14
Sunil Sharma_1
Honored Contributor

Re: Backup of a filesystem on another ftp server

You can take backup to another server using NFS/FTP/SCP/rcp etc.


If you have online JFS installed you can increase FS online otherwise you need to umount file ssytema and do this.


Sunil
*** Dream as if you'll live forever. Live as if you'll die today ***
Pete Randall
Outstanding Contributor

Re: Backup of a filesystem on another ftp server

My first choice would be to back up to tape using fbackup or similar. Do you have a tape drive available?


Pete

Pete
James R. Ferguson
Acclaimed Contributor

Re: Backup of a filesystem on another ftp server

Hi Vipin:

Consider using 'rcp -pr'. It gets the task accomplished and isolates a copy of your filesystem quickly and easily.

Regards!

...JRF...
Vipin Singhal
Super Advisor

Re: Backup of a filesystem on another ftp server

I have online JFS,
But just for security, I want to take the backup of this file system to another server,

I dont have any tape drive.

I was trying with ftp.
but it works with files, and i need to backup of so many directories.
ftp > mput *
mput directory_1? y
directory_1: not a plain file.

Please suggest.

Re: Backup of a filesystem on another ftp server

Hello,
I think the best way to do this is using tar.
MAke sure you can use remsh to the other server, and that you have enough free diskspace. Follow the next scenario:
# cd /opt
# tar -cf - ./oracle | remsh "cd ; tar -xvf - "
After this you can umount and extend the lvol and filesystem.

Goodluck,
Best regards,
Addie Wevers.
Vipin Singhal
Super Advisor

Re: Backup of a filesystem on another ftp server

when I was trying with rcp. it comes connection refused.

I am able to login through ftp
James R. Ferguson
Acclaimed Contributor

Re: Backup of a filesystem on another ftp server

Hi Vipin:

In order to use 'rcp' you must setup your '/etc/hosts.equiv. or ${HOME}.rhosts files and make sure that the 'remshd' daemon is enabled in '/etc/inetd.conf'.

Regards!

...JRF...
Jeff_Traigle
Honored Contributor

Re: Backup of a filesystem on another ftp server

Or you should be able to use ssh instead of remsh.

tar -cf - ./oracle | ssh "cd ; tar -xvf -
--
Jeff Traigle
Vipin Singhal
Super Advisor

Re: Backup of a filesystem on another ftp server

ssh is also block to the remote server
Vipin Singhal
Super Advisor

Re: Backup of a filesystem on another ftp server

Should i try with these commands:

#cd /opt
#tar -cf - ./oracle | ssh "cd /home ; tar -xvf -"

is it ./oracle or /oracle ??
will it copy all the directories under oracle directory?

Solution

Re: Backup of a filesystem on another ftp server

Hi Vipin,
For enabling remsh, see the last post of James Ferguson. When you have it enabled, you must use "./oracle"
Steven E. Protter
Exalted Contributor

Re: Backup of a filesystem on another ftp server

Shalom Vipin,

If you are starting fresh, consider scp as an rcp replacement.

scp -rp * targethost:/targetdirectory

Will do the trick.

I've seen in all of these methods under certain circumstances the copy isn't good. This is not a highly reliable way to back up the files.

I would suggest this:

Online JFS snapshots.

In summary, you create a temporary logical volume about 20% the size of the lv being backed up. While the snapshot is in place all writes go tot he temporary lvol.

While this is happening, you can get a good, clean copy of the filesystem in question. You can use fbackup, its like the filesystem isn't being used.

Then close the snapshot, all writes to the temporary lvol get written to the original and there is no downtime at all.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Vipin Singhal
Super Advisor

Re: Backup of a filesystem on another ftp server

# scp -rp user@host:/
admin@170.118.8.54's password:
sh: scp: command not found
lost connection

I am able to use ftp.
but how can i copy directories using ftp?
Vipin Singhal
Super Advisor

Re: Backup of a filesystem on another ftp server

# /opt/ssh/bin/scp -rp oui admin@111.111.1.11:/Backup/dipper/dipper_opt_oracle_171105/
ssh: connect to host 111.111.1.11 port 22: Connection timed out
lost connection


please suggest what to do
thanks
vipin