The file-copy tag has no wiki summary.
1
vote
1answer
56 views
How to clone a read-only portion of /proc file system
The problem with reading /proc file system is that it is not atomic. I tried using a library (procfs in Python) that wishes to read it, but it has glitches about 5% of the time because the process ...
5
votes
2answers
29 views
Modifying zsh globbing patterns to use with cp
I'm trying to write a script to copy files recursively from a particular folder except files A.extn, B/*.extn and C/* where B and C are directories and extn is just some generic extension. This is ...
-1
votes
2answers
50 views
Copyed mysql files from previous system now error while connect, what to do?
Fist of all I have the files but the old system is gone.
I took the folders in /var/lib/mysql/ and gave then the permissions the mysql folder that was in there had. user mysql group root only ...
0
votes
1answer
31 views
USB copy hangs for a while when reach the 100%
When I copy files of a considerable size (for example right now one of 689MB) to a USB stick, the copy hangs at 100% for 5 min or more.
I have tried both Nautilus and rsync --progress. With the ...
1
vote
2answers
162 views
SELinux: Can I disable copying of certain files?
Please excuse me if this is too basic and you're tempted to throw an RTFM at me.
I want to prevent users from copying certain files while granting them read access to the same files. I thought this ...
1
vote
5answers
119 views
How do I disable copy permissions?
Can we set permissions, on a Linux box OR for a particular directory (Scientific Linux in my case) that, one can read files but cannot copy, move or delete them?
Update: My Scenario is,
We developed ...
1
vote
2answers
192 views
faster alternative to cp -a
For a simple transfer of /home to another disk i use cp -a that seems to me an extremely slow way. Should like know a more efficient way to complete the task. I have /home mounted as logical volume, ...
2
votes
1answer
44 views
Find Directory and copy another directory to found directory?
I'm attempting to find a directory A that could be in a variable location and copy another directory B into the found directory. So, I'd like to find directory A, and copy Directory B into Directory ...
2
votes
3answers
69 views
How to copy a list of files and adjust destination filenames on the fly?
When I don't need to adjust destination filenames I can do something like this:
$ find -type f -name '*.pat' -print0 | xargs -O cp -t /path/to/dest
It is safe because the filenames may even ...
-1
votes
2answers
43 views
Using .. and . to copy files from dirctories
I'm trying to copy a file from the home directory to the current directory( which is a subdirectory of a directory in home) using .. and . instead of path names or ~
This is what I tried, but it ...
1
vote
1answer
75 views
rsync all directories that start with a specific digit
I have directory loaded with thousands of sub directories:
/home/tmp/
1
12
123
1234
2345
234
3456
345
34
...
0
votes
3answers
862 views
how to copy files from windows to linux witout password using a script or program?
I did this to copy files between Windows and Linux.
C:\Documents and Settings\668340\My Documents\putty>pscp "C:\Documents and Settings\563456\abc.txt" "[email protected]:/home/auto/"
But it ...
1
vote
2answers
362 views
Copy file from Windows shared folder to Unix
I am totally new to Unix. I am writting a script which will copy files from a Windows shared folder to Unix.
In Windows, when I type \\Servername.com\testfolder in Run command I am able to see ...
2
votes
1answer
180 views
How to copy a partition over network
I want to copy a Windows 7 partition that came installed on my laptop to my desktop computer.
I've tried:
# bzip2 -c /dev/sda5 | nc 192.168.1.1 2222 # on laptop
# nc -l 2222 | bzip2 -d > ...
3
votes
3answers
296 views
How can I automate the process of copying files from one folder to another in Centos
I have a statistical application which runs every minute and creates charts accordingly.
In order to make these charts available to other users, I need to copy the whole folder containing the charts ...