All Questions

Tagged with
Filter by
Sorted by
Tagged with
0
votes
1answer
37 views

crontab and scp file transfer via script

I have a script that exports logs from log management server and send those exports to the archiver server. When I run this script manually, it complete it's task without any problem. It download ...
0
votes
0answers
31 views

Folder transfer with scp command

I want to transfer my folder from my computer to server by using scp command. Folder structure like these : FOLDER/SubFolders/*.json. There are more than 1 SubFolders. Each of them has different JSON ...
2
votes
0answers
62 views

Copying contents of a folder via SCP results in `scp: error: unexpected filename: .`

I was using a script to copy the contents of a folder via SCP, without copying the folder itself. Something like this: scp -i id_rsa -P "$PORT" -r "$HOST:/folder1/folder2/." "backup" (I'm not able ...
0
votes
0answers
25 views

Backup interruption using scp. How to exclude files just downloaded?

I need to backup a huge folder (more than 100 GB) from an external server. I use scp command in a linux terminal but connection issues happen sometimes. So I need to restart the procedure every time. ...
0
votes
2answers
215 views

Download data from DropBox to remote server (via scp)

I'm trying to transfer some large, gzipped files from a collaborator's DropBox to a remote server. Is there a way to do this with scp? Or is there a preferred method? Thank you in advance!
0
votes
1answer
487 views

Resume Rsync after being interrupted, and data might be changed

I used the command "Rsync" to transfer large amount of data, from file system to nfs(about 1Tera). After a while, the computer shut off, and the transfered canceled (it took about 10 hours for 600G ...
0
votes
1answer
96 views

Continuously transfer files to the server

I have linux client and linux server. Both are Ubuntu 16.04. On the client I generated .txt files almost every second, and I want to transfer them to the server, so my question is: what is the best ...
0
votes
1answer
1k views

Script to copy a file to a remote host and rename it

I am trying to come up with a Shell script that can tar a file and copy (scp?) it from Host A to a remote host B at a particular destination /foo, and rename it to a particular time format we use let'...
5
votes
4answers
16k views

scp files from multiple directories on local to multiple directories on remote in one command

I need to copy some files from multiple local directories to multiple remote directories. The command: scp -v /file/source1/* username@host_server:/file/destination1 scp -v /file/source2/* username@...
0
votes
1answer
3k views

Copy files from Linux Server to Windows - bash script

i am trying to automate a simple process, but i m new and stuck. I have a number of bash scripts that when ran, zip and move files to specific directories on the linux box. I want to create a bash ...
4
votes
4answers
478 views

Transferring files to someone else via sftp

Someone else is giving me a dataset that is too large to send via email, Dropbox, etc., so I'm thinking we can use sftp or scp. But how will she be able to do this without my giving her the password ...
29
votes
3answers
22k views

What does the `-C` flag exactly do in `scp`?

I always use either rsync or scp in order to copy file from/to a remote machine. Recently, I discovered in the manual of scp (man scp) the flag -C -C Compression enable. Passes the -C flag to ...
1
vote
3answers
2k views

Why does my scp cap at 8MB over local network transfers?

Is there a reason scp caps at around 8MB when transferring files from one computer to another, over a local network? I'm transferring a couple hundred GB of data (movies and such), and have ran the ...
16
votes
5answers
71k views

Sending files over Samba with command line

I was wondering if there is a way to use Samba to send items to a client machine via the command line (I need to send the files from the Samba server). I know I could always use scp but first I was ...
9
votes
3answers
9k views

SCP command with selected file and directories for download ask's for password for each new file or directory

On my Fedora 20 system I use scp a lot, and this is the second time I encounter this, when I run this command: scp -r -P PORT user@host:/home/user/something/{file1,folder1,folder2,folder3,folder4} ...
3
votes
3answers
2k views

Copying a file using SSH over a tunnel with cert forwarding

I need to find a way to copy files from mymachine to a server priv-server sitting on a private NATted network via a server pub-server with a public IP. The behind-NAT machine priv-server only has ...
15
votes
4answers
13k views

Transferring millions of files from one server to another

I have two servers. One of them has 15 million text files (about 40 GB). I am trying to transfer them to another server. I considered zipping them and transferring the archive, but I realized that ...
3
votes
2answers
2k views

transfer a file to remote dir only if doesn't exist without replacing

I'm using CentOS linux. In one line cmd, that returns 0 if success, non-0 if failure, I need: Transfer a file to a remote server. Don't transfer the file if filename exists in remote server (...
2
votes
1answer
6k views

Using scp to transfer files to an android device

I have a file on a remote server that I want to transfer to my android device over ssh, only using the android device in the process. Using this setup, I tried an scp from the android device scp ...
0
votes
1answer
135 views

Loss of .eps file quality after using scp to transfer from remote server

When I scp (secure copy protocol) a .eps image file (generated using IDL) from a remote server to my desktop, the image seems to be of a lowered resolution and "choppy". Strangely, when I transfer ...
1
vote
1answer
7k views

Why does scp say “No such file”?

I have a bash script that uses scp to copy a file from my machine to another. The script keeps on exiting after I enter the SSH password with the error: <filename>: No such file or directory ...
2
votes
4answers
7k views

using scp command to transfer files keeping the same names intact?

Using scp command I want to move files from local system to a remote system. I'm doing something like this: $ scp file1 root@abc:root /root/tmp With this command I'm able to upload file1 to abc:/...
1
vote
2answers
383 views

How to specify where files are transferred to using ssh

I know how I can send files to a specific directory on a remote server using ssh, but I don't know how to specify it.