Tagged Questions

For *nix: Copy one or more files to another location Copy SOURCE to DEST, or multiple SOURCE(s) to DIRECTORY. manpage For Windows Allows the user to copy one or more files to an alternate location. More info here

learn more… | top users | synonyms

1
vote
1answer
47 views

copy and replace to folders to another fastest way - linux bash

I have a three folders: core, project and merge with many files inside. I want to delete all files and folders (including dot files) inside the merge folder, and then copy all files (including dot ...
0
votes
0answers
48 views

file copy error from system to cifs mount

When coping a file greater than 64kB from an Ubuntu server to a CIFS mounted windows share, most of the data is copied, but it seems the last chunk doesn't get copied. The size doesn't match, and the ...
1
vote
3answers
81 views

cp command, ignore unchanged files

Is there a way to do a cp but ignoring any files that may already exist at the destination that aren't any older then those files at source. Basically I want to copy the contents of one disk to ...
0
votes
2answers
50 views

preserve permission with scp

SCP does not seem to preserve ownership stamps even if used with -p option. scp -p /mysql/serv/data_summary.* some_server:/mysql/test/ The files are owned by mysql and I want the same ownership to ...
1
vote
1answer
39 views

Replacing directories that are subversion-monitored

We're trying to update an installed software which we have under control by subversion. The update instructions for the software require replacing several directories that have .svn directories in ...
2
votes
1answer
64 views

What does the message, “too many links” mean when using CP on Linux?

I am copying 25,000 folders containing hundreds of files each from one hard drive to another on the same Linux server. The destination folder already contains 25,000 different folders full of their ...
1
vote
2answers
125 views

What's faster for copying files from one drive to another? [closed]

Running linux. I have two identical drives mounted on the same machine. What is faster CP, MV, or RSYNC? Why is one faster than the other? Are there any faster alternatives?
1
vote
1answer
113 views

Does cp -p apply to the source or destination file?

When I use -p to preserve the file permissions of a file being copied, does it apply to the source or the destination file (if it already exists)? Thanks
1
vote
3answers
83 views

Estimating the time needed to copy a big file

I have to copy a relatively big file (6GB) to another server. To enforce consistency, I have to 'lock' this file and not use it during the transfer. I obviously want to minimize this downtime, but ...
0
votes
0answers
109 views

How to install CA certificate on Cisco 1841

How do you install CA certificate on Cisco 1841 using Cisco Configuration Professional or command line? On my Cisco ASA 5505 it is straightforward: Certificate > CA certificates > Add. I just upload ...
0
votes
1answer
108 views

Reverse and modify copy file to all subfolders command, xargs

i found this online it copy file to every sub folder on the current dir for full tree depth find -maxdepth 1 -type d -print0 | xargs -0 -n1 cp -v .htaccess now would be nice if it could ask if ...
0
votes
2answers
48 views

Copy all files to another location

I have a folder called "employee" and within that folder there are sub-folders with each employee name. employee >> amar >> akbar >> anthony Each of these folders contain 1 or 2 ...
0
votes
3answers
90 views

copy and rename files

Here are my access logs those I want to backup. /var/log/httpd/access_log /var/log/httpd/access_log.1 /var/log/httpd/access_log.2 /var/log/httpd/access_log.3 ... I want to copy all these files but ...
0
votes
2answers
219 views

How to clone with cat?

I want to clone an 8.1gig bootable disk to an 8.0gig disk and have the clone remain bootable. dd causes problems because the destination disk is a few mb smaller than the source. Can "cat" help me ...
0
votes
2answers
58 views

Copy data to a directory

I use the following command to copy data and it is working as expected. cp -pr --reply=yes /db-nfs/mysql3/* /db-nfs/mysql5/ 1) Is there a better way? 2) I want to copy the same data to ...
1
vote
3answers
588 views

Performance problem with QNAP TS-410 NAS

We have a QNAP TS-410 in our office. Its hardware is: 256MB DDR2 RAM CPU Marvell 6281 800MHz 4 x 1.4GB Seagate SATA disks mounted on RAID5 We thought it would be sufficient to make backups for our ...
0
votes
1answer
96 views

New external backup drives - first time backup - cp or rsync

I've just bought a clutch of external drives to start a rotating backup of my photography work, and wonder if I should just do a straight copy the first time around, or if rsync would be the better ...
3
votes
3answers
523 views

Best way to copy large amount of data between partitions

I'm looking to transfer data across 2 lv of an HP-UX server. I have a couple of those transfers to do, some of which are mostly binary (Oracle tablespace...) and some others are more text files ...
4
votes
8answers
5k views

Linux (mv or cp) specific files from a text list of files?

I have a directory of many files, something like 50,000 pdf's and other files on a server. I need to move specific ones to another directory. I can generate a list of the files that need to be moved ...
1
vote
2answers
370 views

cp from local to usb-drive affects desktop performance

Background While copying a vast number of multi-megabyte sound files, the Kubuntu desktop becomes intermittently unresponsive (the mouse pointer can move, but Firefox, Konsole, and KDE itself ...
3
votes
3answers
412 views

Ubuntu cp -p on mounted ZFS pool

On my Ubuntu server, I have several automounted zfs pools. The problem that I have, is that when I try to copy a file while preserving permissions, I get the following error: cp: preserving ...
3
votes
3answers
1k views

Linux file copy with ETA?

I'm copying a large amount of files between disks. There's approximately 16 GB of data. I'd like to see progress information, and even an estimated time of completion from the command line. Any ...
3
votes
3answers
908 views

cpio VS tar and cp

I just learned that cpio has three modes: copy-out, copy-in and pass-through. I was wondering what are the advantages and disadvantages of cpio under copy-out and copy-in modes over tar. When is it ...
2
votes
3answers
2k views

Turning off cp (copy) command's interactive mode (cp : overwrite ?)

Does anyone know how I would turn off the interactive mode when using cp? I am trying to copy a directory recursively into another and for each file that is getting overwritten I have to answer 'y'. ...
2
votes
1answer
357 views

cp -R source_dir/* dest_dir/ does overwrite files?

I am trying to copy, recursively, the content of a directory to another using: cp -Rv source_dir/* dest_dir/ It seems that everything work ok but when I list that directory with ls -l the change ...
1
vote
1answer
212 views

Server Load Spikes On File Copy — Server Goes Unresponsive

This has been a problem that we've been battling for some weeks. Whenever large files are copied on the server (both with rsync and cp) the server load initially goes up to 6 or 8 and stabilizes. At ...
1
vote
1answer
392 views

Getting Linux copy to handle failing links

I just started using the nifty rsnapshot utility for backups to our NAS. I really like the tool (which uses rsync and links unchanged files to keep the backup size down), but I'm running into ...
6
votes
5answers
2k views

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 ...
5
votes
3answers
603 views

Continue aborted cp

Is it possible to run cp again after it was aborted and make it start where it ended last time (not overwrite data that's already copied, only copy what's still left)?
10
votes
5answers
4k views

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 ...
2
votes
3answers
655 views

Creating an iso file in Linux

I have created iso files by using two commands: dd if=/dev/cdrom of=filename cp /dev/cdrom filename What's the difference between the two, both have worked for me.
5
votes
5answers
7k views

Recursively copying hidden files - Linux

Is there an easy way to recursively copy all hidden files in a directory to another directory? I would like to back up just all the settings files in a home directory, not the normal files. I tried: ...