0
votes
1answer
35 views

sparse file moving/copying over NFS

I created a sparse file with truncate -s 4T image.img on an ext4 file system which I mount over NFS. The following test shows that the system has trouble with the recognition of sparse files: both ...
3
votes
3answers
434 views

How to copy a file with a $ (dollar sign) in the name from one folder to another in Linux?

I have a file which I want to copy from one directory to another directory. Suppose that's the file some.txt to copy from folder1 to folder2 cp -r some.txt /folder2 I am able to copy this file but ...
0
votes
1answer
38 views

How can I create a “copy on change” copy of a folder in linux?

I have a set of tools for building a very large project. At several high level stages my tools create copies of the build environment (a directory) to allow the user to roll back to that point. I ...
0
votes
3answers
48 views

Extract identical files from two directories

I am looking for a linux solution for the following problem: Given two directories with a large number of files. All file names are random and different in both directories. The contents of some of ...
1
vote
2answers
99 views

how to compare two large folders (>2G, 196,000 files)

I have to transfer >2G folders with 196K files from one external hard drive to another. The older drive has some problems and so I get an error while transferring. I skip the files which have the ...
1
vote
2answers
635 views

Linux: What is the best way to copy from a damaged HD, only the files that can be completely read?

I am copying from a damaged HDD (not SDD) where about 15% files would cause I/O error. I only want the rest of the 85% complete files, and get a list of damanged files. How to do that? cp stops on ...
2
votes
2answers
448 views

Copy new files from a monitored folder to another in debian

I have directory a and directory b. Directory a has new files and folders copied to it periodically. I would like to monitor folder a for those new files and automatically copy them to folder b. ...
-2
votes
2answers
4k views

Copying USB files to local Linux folder

How do I copy files from a USB flash drive in Ubuntu Linux from command line? When I copy these files from USB to a local folder I get "permissions denied" using the GUI. On the command line I can ...
0
votes
0answers
59 views

Is is possible to copy files over the network using an software installer?

Basically, I need a software installer to overwrite files which reside on a few PCs that are in the same network. Example: I have PC A. I run this installer and it will copy and overwrite files to ...
2
votes
1answer
732 views

rsync between to local directories

I am trying to do rsync between two directories I have in two filesystems connected to the same computer. I want to do it without deleting the extra files in b. I though a simple rsync -a a/dir b/dir ...
0
votes
1answer
1k views

Advanced merge directory tree with cp in Linux

I need to: Copy all of a tree's folders (with all files, including hidden) under /sourcefolder/* preserving user privileges to /destfolder/ If there is a conflict with a file (a file with the same ...
1
vote
1answer
772 views

How can I download a copy of an S3 public data set?

i was naively assuming I could do something like s3cmd sync s3://snap-d203feb5 /var/tmp/copy but I seem to have the wrong idea of how to go about this. I cannot even get a simple thing to work; ...
2
votes
2answers
405 views

Copy all files from a directory tree into one directory

I'm running on Windows but have Cygwin so Windows or simple Linux versions are both OK. My camera-phone stores images in a directory tree based on date, but still appears to name each file uniquely. ...
0
votes
2answers
808 views

rsync: copy tree including only one file on each level

I want to copy all files "pom.xml" from a big tree to a new tree: On each level of the src tree I have this file. I want to get the same tree structure, but ignore empty directories. sounds like a ...
4
votes
3answers
1k views

Multi-core and copy speed

What i want to do is to copy 500K of files. I want to copy within server from one destination to another.It includes emails mostly so many small files. Its over 23 GB only but takes so long (over ...
2
votes
1answer
914 views

How to copy directory into another preserving specific directory structure?

I would like to find the command that copy my eclipse options to another workspace: /home/me/myWorkspace/.metadata/.plugins/org.eclipse.core.runtime/* There is only one directory ...
2
votes
1answer
514 views

How can I copy file recursively ignoring destination directory structure?

I have the following content on the source directory: source/foo.txt source/bar/another_file.txt source/bar2/and_another.txt I want copy those files to a destination directory which, after copy, ...
4
votes
2answers
1k views

In what order are files and directories copied when using Linux cp -R?

If I execute the following command: cp -R /myfiles /mydestination If myfiles contains several sub-directories and files, in what order will they be copied? For example, directories might be named ...
1
vote
5answers
2k views

How to take a snapshot of a directory on Linux as it was at a particular point in time?

I have a directory containing a lot of result log files (directory size ~ 4GB), and a set of processes running that keep on writing to these files. To be able to correctly analyze the results at a ...
7
votes
5answers
7k views

How can I copy a (big) directory over another changing only the files that differ?

I have directory a and directory b. They are big. b is almost identical to a. "almost" means that 4-5 files differ, and I don't know which they are. I want to copy b over a, but only the files that ...
2
votes
2answers
188 views

cp copying more than what is asked

I go with the following in bash cp -r "/wordpress/3.0.1/" "/mySite/" and the result is /mySite/3.0.1/ but I don't want nor understand why the 3.0.1/ appears in the target destination. What am I ...
1
vote
1answer
979 views

How do I copy specific set of files in one directory structure to another?

Say I've got a directory structure somewhat like this: view | +--- 0001 | +--- 231 | +--- e2341 | ... and so on My problem is that I want to copy a set of files that have the same name ...