Sponsored Content
Top Forums UNIX for Advanced & Expert Users scp a partition to another server Post 302380053 by vbe on Monday 14th of December 2009 04:47:35 AM
Old 12-14-2009
Its a "classic"...
I havent yet tried a variant to use in ssh mode (since you were using scp...) or style, perhaps you will give me a good solution (while Im busy at other things... but I know it will be handy for me beginning next year...)
I till now used for such purpose (copying filsystem content from on host to another) 2 things:
1)the use of .rhosts file
2) tar
command on source host:
go the the source directory and type
Code:
tar -cf - * | remsh <remotehost> "(cd <dest_dir>;tar -xvf -)"

 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

SCP logfiles from one server to another server

Hi, I want to copy all the logs except current date logs from one server to another server every day, so i want to write a script for it and put it in crontab. Can anyone help how to write the script. Regards, Srini (1 Reply)
Discussion started by: srinivasvandana
1 Replies

2. UNIX for Dummies Questions & Answers

scp or sftp to Window server

Dear Unix Gurus, I have a question to confirm before I proceed to script my program. I'm currently running on IBM AIX Ver 5.3. I just like to know if it's compatible to use scp or sftp between AIX and Wintel server? I'm trying to scp or sftp a file from AIX to Window server and I was... (1 Reply)
Discussion started by: lweegp
1 Replies

3. Shell Programming and Scripting

scp file to another server without asking for password

hi I tried reading some of the threads w.r.t scp/sftp file to another server in the same network without asking for password while copying files.....but couldnot succeed. i have generated the public key for the system using "ssh-keygen -t " and kept it in the .ssh/authorized_keys file. ... (8 Replies)
Discussion started by: aemunathan
8 Replies

4. Shell Programming and Scripting

scp files from other server with check

Hi all, I am new to this forum,and it has been really a great pleasure to be a part of this forum:) well,i m trying to write a shell script where i m transfering a set of files from other server to my own server. for this i m using scp... (1 Reply)
Discussion started by: prasson_ibm
1 Replies

5. Shell Programming and Scripting

scp to same server

Suppose I am in server A . I have a file at one location in server A and I want to do scp of the file to same server A but to different location without asking password ( passwordless login to same server) .Pls help (1 Reply)
Discussion started by: maitree
1 Replies

6. Shell Programming and Scripting

Check the partition size on server

Dear All, I need notification mail from server while device size crossed 80% approximately.I tried following shell .its working fine when the device name like /dev/sdc1 etc.Its not working in LVM name.For example Script: #!/bin/sh echo "Storage server space details"; df -H | grep -vE... (4 Replies)
Discussion started by: kpoobathi
4 Replies

7. Cybersecurity

How to go about partition encryption on remote server?

Hi, im having an linux webserver located in another country and i have just SSH access. My aim is to protect (by encryption) /home partition on which are located website files and mysql database data. So i found "LUKS" SW which can encrypt partition, but the thing i dont understand is how... (2 Replies)
Discussion started by: postcd
2 Replies

8. Shell Programming and Scripting

How to scp File from root user in one server to say crt user in another server and avoid password?

Can someone help in writing some script through which I can transfer file (scp) from root user in abc server to crt user in hfg server and can give the crt user password in script itself so that it doesn't prompt me every time for password (4 Replies)
Discussion started by: Moon1234
4 Replies

9. Shell Programming and Scripting

scp without password for destination server

I am using the below command to scp the file to destination server ($server). The ssh keys have been created between the source and destination servers. Still I am getting password authentication after executing the below scp command: scp $Local_dir/$file_pattern* $username@$server:/$ftp_dir/... (1 Reply)
Discussion started by: Ganesh L
1 Replies

10. Shell Programming and Scripting

I want to scp file from one server to another, both server have different user name and

i want to scp file from one server to another. both server have different user name and it needs to give password to transfer file.how can we mention password in the script itself so that we need not mention password while running the script. Say from servers cpli with user abc and file path /opt... (7 Replies)
Discussion started by: Moon1234
7 Replies
SALVAGELOG(5)							AFS File Reference						     SALVAGELOG(5)

NAME
SalvageLog - Traces Salvager operations DESCRIPTION
The SalvageLog file records a trace of Salvager (salvager process) operations on the local machine and describes any error conditions it encounters. If the SalvageLog file does not already exist in the /var/log/openafs directory when the Salvager starts, the process creates it and writes initial start-up messages to it. If there is an existing file, the Salvager renames is to SalvageLog.old, overwriting the existing SalvageLog.old file if it exists. When the Salvager is salvaging an entire file server, it creates a separate log file for each partition it starts salvaging. That file will be named SalvageLog.job where job is a job number that will normally (but is not guaranteed to) correspond to the index of the partition being salvaged. Once salvaging of all partitions is complete, the Salvager will accumulate all the partition-specific log files, append them to SalvageLog, and then remove the partition-specific files. The file is in ASCII format. Administrators listed in the /etc/openafs/server/UserList file can use the bos getlog command to display its contents. Alternatively, log onto the file server machine and use a text editor or a file display command such as the UNIX cat command. By default, the mode bits on the SalvageLog file grant the required "r" (read) permission to all users. The Salvager records operations only as it completes them, and cannot recover from failures by reviewing the file. The log contents are useful for administrative evaluation of process failures and other problems. SEE ALSO
UserList(5), bos_getlog(8), salvager(8) COPYRIGHT
IBM Corporation 2000. <http://www.ibm.com/> All Rights Reserved. This documentation is covered by the IBM Public License Version 1.0. It was converted from HTML to POD by software written by Chas Williams and Russ Allbery, based on work by Alf Wachsmann and Elizabeth Cassell. OpenAFS 2012-03-26 SALVAGELOG(5)
All times are GMT -4. The time now is 05:06 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy