Duplicating a thing to make two similar things.
Questions tagged [copy]
252 questions
16
votes
4 answers
Copy a range of files in command line (ZSH/BASH)
I have a list of files with consecutive numbers as suffixes. I would like to copy only a range of these files. How can I specify a range as part of my cp command.
$ls
P1080272.JPG* P1080273.JPG* P1080274.JPG* P1080275.JPG* P1080276.JPG*…

Amjith
- 263
- 1
- 2
- 5
14
votes
6 answers
Unix copy command that has a progress bar, but not as heavy as rsync
I need to copy lots of files. Usually I use rsync because I pass it the -aP options and I can see (a) how many files are left to process and (b) how much of each individual file is copied.
However rsync also does lots of things with checksums to…

Amandasaurus
- 31,471
- 65
- 192
- 253
13
votes
4 answers
Is BitTorrent good for copy files between servers in the workplace?
I have 1 source server that contains about 30GB of files that I want to copy to 7 other servers. I currently SCP the files over to the first four servers and when that transfer is complete SCP to the last 3 servers.
Would using BitTorrent be faster…

Edward
- 449
- 3
- 12
12
votes
2 answers
What's the name of this windows feature?
I'm trying to find the name and documentation of an old windows feature I believe it was present in Windows Vista.
All I can remember is this. When you or an application tries to write to a file that doesn't have enough permissions to write, Windows…

MrCatacroquer
- 243
- 2
- 5
12
votes
3 answers
How can I get docker build to overwrite a file?
It seems that docker build won't overwrite a file it has previously copied. I have a dockerfile with several copy instructions, and files touched in earlier COPY directives don't get overwritten by later ones.
A simplified example (although it also…

fields
- 690
- 1
- 10
- 21
12
votes
5 answers
resume file copy linux
How do I resume a copy of a large file in linux? I have a huge file (serveral gigabyes) partially copied to a network drive, and it took a long time, and it was mostly done before the copy operation stopped due to a network problem that is now…
Andrew Johnson
11
votes
4 answers
Linux / mysql: is it safe to copy mysql db files with cp command from one db to another?
Most guides recommend mysqldump and simple SQL for copying one table to anoter db. How about linux shell cp? Can I just simply do
cp /db1/mytable.frm /db2/mytable.frm

giorgio79
- 1,837
- 9
- 26
- 36
10
votes
1 answer
Cannot cancel copy task in ESXi Web interface
I started copying a file from one datastore to another using the ESXi Web interface (version 6.5.0 Update 1 (Build 6765664)) and has been going on for half a day. I want to gracefully stop the copying process but it does not seem to let me. Any…

suleyman
- 115
- 1
- 1
- 7
10
votes
2 answers
How to share the clipboard between Windows Server 2008R2 and a guest running Ubuntu 12.04?
I use Windows Server 2008 R2 with Hyper-V and a guest running Ubuntu 12.04 LTS.
How can I share the clipboard between Windows Server 2008R2 and a guest running Ubuntu 12.04?
UPDATE
What protocols do I need to connect these machines? I'd like to…

novicegis
- 233
- 1
- 2
- 5
9
votes
4 answers
Linux to Linux, 10 TB transfer?
I've looked at all the previous similar questions, but the answers seemed to be all over the place and no one was moving a lot of data (100 GB is different from 10 TB).
I've got about 10 TB that I need to move from one RAID array to another, gigabit…

lostincode
- 193
- 1
- 4
8
votes
8 answers
Copying huge files between two remote machines - Efficiently
I have a shell script which keeps on copying huge files (2 GB to 5 GB) between remote systems.
Key based authentication is used with agent-forwarding and everything works.
For ex: Say the shell script is running on machine-A and copying files from…

Varun
- 405
- 2
- 4
- 7
8
votes
4 answers
How can I reduce resource usage when copying a large file?
I need to move a large file (corrupt MySQL table ~40GB) onto a seperate server in order to repair it. (When trying to repair on my production server, it quickly killed the server).
In order to do this, I want to rsync the .frm, .MYI and .MYD files…

Jon M
- 457
- 1
- 6
- 11
8
votes
3 answers
rsync and include / exclude. How hard can it be?
I'm trying to recursively copy a directory / file structure from one directory to another, keeping only html files. Should be a simple case of include / exclude shouldn't it?
I just want to print out the files first. When I get that right, I'll copy…

Joe
- 529
- 8
- 18
8
votes
3 answers
lftp: how to copy file on remote server
How to copy file on remote server using lftp?
Moving files is as easy as using mv command, but is there any command equivalent to cp?

takeshin
- 1,471
- 3
- 21
- 28
7
votes
2 answers
Copy (sync) timestamps only of already copied files and folders in Windows
I have problem with lost timestamps ( creation date ) on files copied using Total Commander - only modification date remained. It's hundreds thousands of files and few TB of data, so I prefer not to copy them again.
I managed to update only folders…

mike
- 251
- 2
- 7