I need to copy about 13 Tb of data from one directory and subdirectories to the other (another mount point). If I run this as a cron, say between 10 pm and 7 am, not all of the files will be copied over. Is there a way of 'resuming' the copy the following evenings until all files are copied over? (0 Replies)
Hi
when copy the files from one directory to another as like below,it is tried to copy *. as a file.
cp /home/rha/*.
My objective is to copy all the files (don't care about case sensitive),
Thanks in advance for your valuable reply. (1 Reply)
I've been able to find all the extensionless files named photos using the command:
find /usr/local/apache/htdocs -name photos -print0
I need to copy those files to the name photos.php in their same directory.
I've found a bunch of xarg examples for moving to other directories but I wasn't... (7 Replies)
Iam in the process of copying a directory with thousands of directories and files into a new directory.
I need to preserve permissions, owner, group, date and timestamps, everything.
Iam using AIX and would need help of writing the command whether it is cp-RP or cpio.
Apprecaite your... (3 Replies)
I have a folder will a lot of documents (pdf, xls, doc etc.) which users have uploaded but only 20% of them are currently linking from my html files. So my goal is to copy only the files which are linked in my html files from my Document directory into another directory.
Eg: My documents exist... (5 Replies)
Hi all,
i have 2 directory of files, the first directory(ext1directory) contain files of extension .ext1 and the second directory(allextdirectory) contains files of multiple extensions (.ext1,.ext2,.ext3,..)
so i want to copy the files from directory 2(allextdirectory) that have the same name... (8 Replies)
I can't find how to do this.
I want to take a bulk of files, and copy/move a specific number of them (say 1000) to a newly created directory. Once that directory is full, I want to create a new folder and copy/move another batch of files, and so on.
Seems like there should be an easy way to... (6 Replies)
I have directory that has some billion file inside , i tried copy some files for specific date but it's always did not respond for long time and did not give any result.. i tried everything with find command and also with xargs..
even this command find . -mtime -2 -print | xargs ls -d did not... (2 Replies)
How to copy files from one directory to another directory with the subfolders copied.
If i have folder1/sub1/sub2/* it needs to copy files to folder2/sub1/sub2/*.
I do not want to create sub folders in folder2.
Can copy command create them automatically?
I tried cp -a and cp -R but did... (4 Replies)
Discussion started by: santosh2626
4 Replies
LEARN ABOUT BSD
uucp
UUCP(1) General Commands Manual UUCP(1)NAME
uucp - unix to unix copy
SYNOPSIS
uucp [ -acCdfmr ] [ -nuser ] [ -ggrade ] [ -sspool ] [ -xdebug ] source-file.... destination-file
DESCRIPTION
Uucp copies files named by the source-file arguments to the destination-file argument. A file name may be a pathname on your machine, or
may have the form
system-name!pathname
where `system-name' is taken from a list of system names that uucp knows about. Shell metacharacters ?*[] appearing in the pathname part
will be expanded on the appropriate system.
Pathnames may be one of:(1) a full pathname;
(2) a pathname preceded by ~user; where user is a userid on the specified system and is replaced by that user's login directory;
(3) a pathname prefixed by ~, where ~ is expanded into the system's public directory (usually /usr/spool/uucppublic);
(4) a partial pathname, which is prefixed by the current directory.
If the result is an erroneous pathname for the remote system, the copy will fail. If the destination-file is a directory, the last part of
the source-file name is used.
Uucp preserves execute permissions across the transmission and gives 0666 read and write permissions (see chmod(2)).
The following options are interpreted by uucp.
-a Avoid doing a getwd to find the current directory. (This is sometimes used for efficiency.)
-c Use the source file when copying out rather than copying the file to the spool directory. (This is the default.)
-C Copy the source file to the spool directory and transmit the copy.
-d Make all necessary directories for the file copy. (This is the default.)
-f Do not make intermediate directories for the file copy.
-ggrade
Grade is a single letter/number; lower ASCII sequence characters will cause a job to be transmitted earlier during a particular con-
versation. Default is `n'. By way of comparison, uux(1C) defaults to `A'; mail is usually sent at `C'.
-m Send mail to the requester when the copy is complete.
-nuser Notify user on remote system (i.e., send user mail) that a file was sent.
-r Do not start the transfer, just queue the job.
-sspool
Use spool as the spool directory instead of the default.
-xdebug
Turn on the debugging at level debug.
FILES
/usr/spool/uucp - spool directory
/etc/uucp/* - data and configuration files
SEE ALSO uux(1C), mail(1)
D. A. Nowitz and M. E. Lesk, A Dial-Up Network of UNIX Systems.
D. A. Nowitz, Uucp Implementation Description.
WARNING
The domain of remotely accessible files can (and for obvious security reasons, usually should) be severely restricted. You will very
likely not be able to fetch files by pathname; ask a responsible person on the remote system to send them to you. For the same reasons you
will probably not be able to send files to arbitrary pathnames.
BUGS
All files received by uucp will be owned by the uucp administrator (usually UID 5).
The -m option will only work sending files or receiving a single file. (Receiving multiple files specified by special shell characters
?*[] will not activate the -m option.)
At present uucp cannot copy to a system several "hops" away, that is, a command of the form
uucp myfile system1!system2!system3!yourfile
is not permitted. Use uusend(1C) instead.
When invoking uucp from csh(1), the `!' character must be prefixed by the `' escape to inhibit csh's history mechanism. (Quotes are not
sufficient.)
Uucp refuses to copy a file that does not give read access to ``other''; that is, the file must have at least 0444 modes.
7th Edition April 24, 1986 UUCP(1)