The cp tag has no wiki summary.
1
vote
1answer
101 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
51 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
64 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
92 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
44 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
60 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
164 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
56 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
1answer
360 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
87 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
414 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
3k 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
315 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
297 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
920 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
811 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
286 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
199 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
359 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
1k 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
527 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)?
8
votes
4answers
3k 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
605 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
6k 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:
...