Using sudo scp -r – can't get everything copied though


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Using sudo scp -r – can't get everything copied though
# 1  
Old 12-19-2009
Using sudo scp -r – can't get everything copied though

I want to copy a folder and all its contents of ~700GB from a computer to another. I've tried sudo scp -r directory/ admin@host:directory but the result is that the copied folder is about 2GBs smaller than the original.

I checked the shell for errors and found some "file doesn't exist" errors. So what to do?

I'm trying to copy from a OSX server 10.5.7 to OSX server 10.5.8

---------- Post updated at 12:48 PM ---------- Previous update was at 12:10 PM ----------

I've listed the contents of the origina folder and the new one with sudo ls -R directory/>list.txt and compared them with MS Word's track changes command; some files differ, but they aren't certainly that big files.
# 2  
Old 12-19-2009
scp is supposed to copy all the files as same size.


What is the type of files it is missing to copy ? Are you able to make out some information from the kind of file it is missing ?

You may also be interested in this question i have asked earlier: https://www.unix.com/unix-advanced-ex...er-server.html
# 3  
Old 12-22-2009
Just a quick few;
- do you definately have access to all of the files, with regards to permissions etc.
- If copying over a network, is it stable?

Alternatives may be Rsync or creating a tar stream?
A neat little guide on this can be found here; CrucialP - Copying across a network.
This User Gave Thanks to dalgibbard For This Post:
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

sudo: sorry, you must have a tty to run sudo

Hi, Have a need to run the below command as a "karuser" from a java class which will is running as "root" user. When we are trying to run the below command from java code getting the below error. Command: sudo -u karuser -s /bin/bash /bank/karunix/bin/build_cycles.sh Error: sudo: sorry,... (8 Replies)
Discussion started by: Satyak
8 Replies

2. Shell Programming and Scripting

sudo: sorry, you must have a tty to run sudo

Hi All, I running a unix command using sudo option inside shell script. Its working well. But in crontab the same command is not working and its throwing "sudo: sorry, you must have a tty to run sudo". I do not have root permission to add or change settings for my userid. I can not even ask... (9 Replies)
Discussion started by: Apple1221
9 Replies

3. Red Hat

Difference in file sizes being copied by scp. HELP!

Hello All, I am transfering a gzipped file from LINUX to LINUX using scp -C comand. It is a nightly job, called by crontab. After copy finishes, the file sizes are different between source and destination. Say .gz file is 14782805941 bytes on source and 13496172544 bytes on destination. When I... (20 Replies)
Discussion started by: NotALinuxGirl
20 Replies

4. Shell Programming and Scripting

no of files copied by scp command

hi, I have a script which copy files by using scp command. when i run that script, i can see the process meter but I want to know how many files have been copied. suppose, by using scp 10 files is being copied and I can see process meter for all 10 files. but i also want to see ... that 10... (0 Replies)
Discussion started by: anshu ranjan
0 Replies

5. Shell Programming and Scripting

ssh foo.com sudo command - Prompts for sudo password as visible text. Help?

I am writing a BASH script to update a webserver and then restart Apache. It looks basically like this: #!/bin/bash rsync /path/on/local/machine/ foo.com:path/on/remote/machine/ ssh foo.com sudo /etc/init.d/apache2 reloadrsync and ssh don't prompt for a password, because I have DSA encryption... (9 Replies)
Discussion started by: fluoborate
9 Replies

6. UNIX for Dummies Questions & Answers

scp + sudo

There are two servers, server A and B. User alpha has read/write permission for server A but can only logon to server B . For read write permission on server B user alpha has to use Sudo -u beta command I want to copy a file from server A to server B. How can I combine sudo and... (2 Replies)
Discussion started by: chrisjones
2 Replies

7. AIX

sudo log and sudo auditing

Sudo In AIX, how to find out what commands have been run after a user sudo to another user? for example, user sam run 'sudo -u robert ksh' then run some commands, how can I (as root) find what commands have been run? sudo.log only contains sudo event, no activity logging. (3 Replies)
Discussion started by: jalite19
3 Replies

8. UNIX for Dummies Questions & Answers

Unable to use the Sudo command. "0509-130 Symbol resolution failed for sudo because:"

Hi! I'm very new to unix, so please keep that in mind with the level of language used if you choose to help :D Thanks! When attempting to use sudo on and AIX machine with oslevel 5.1.0.0, I get the following error: exec(): 0509-036 Cannot load program sudo because of the following errors:... (1 Reply)
Discussion started by: Chloe123
1 Replies

9. UNIX for Dummies Questions & Answers

scp with a sudo user

Morning guys, I'm hoping you can advise me as to whether or not the following is possible. Is there a way of firing off an scp command with a sudo user as the user? e.g. I am logged onto server1 as smith, but want to pull files from server2 that I can only read as sudo jones. In my mind it... (3 Replies)
Discussion started by: dlam
3 Replies

10. UNIX for Advanced & Expert Users

scp and sudo?

I'm using AIX and I have the following issue: I need to copy configuration files from one server to another but I don't have root rights. All I can do is use sudo to change to the application owner. Permissions are such that I can't copy these files from my home, not even via /tmp to the... (3 Replies)
Discussion started by: rein
3 Replies
Login or Register to Ask a Question