By Shell How Copy Files And Directory
Apr 25, 2007
I found that with unix's shell is possible copy all the content of a folder to oneother; I see the manual and found the command cp;
but there are many parameters;
which is that good?
I would like to replicate all that I have inner a folder to oneother;
so at the finish they must to hawe the identically content;
but I see, that some parameters can change symlink etc...
I want one clone exactly .
the originally folder have at inner directory,subdirectory, files htaccess etc..
View 1 Replies
ADVERTISEMENT
Aug 27, 2007
To automate a task, I need to create a shell script that will allow me to copy the folder blank/ to a new location and rename it to news/, same for the files inside that directory. And, if possible, change the content of one of those files as well.
For example, I need to copy this:
Code:
blank/
templates/
frontend/
index.html
Blank.php
...to a new folder and rename it to this:
Code:
news/
templates/
frontend/
index.html
News.php
View 5 Replies
View Related
Jul 9, 2009
I have a large directory which I want to copy to another account on the same server. Its 1 folder which contains 20000+ files and its around 2GB in size.
I used:
Quote:
cp -r /home/useraccount/public_html/foldername /home/useraccount2/public_html
It worked but some of the files didn't transfer correctly,
View 11 Replies
View Related
Apr 16, 2008
I want to copy one file index.html to multipal direcoties (40+ directory)how can i do it .
View 3 Replies
View Related
Sep 15, 2007
Can anyone tell me a simple way in Bash to copy all of the contents of a directory (and only the contents), including hidden files, into another, existing directory?
E.g.
Code:
# I have this directory structure
- directory_A
--- existing_file
-
- directory_B
--- some_file
--- some_subdirectory
--- .some_hidden_file
# I want to end up with this
- directory_A
--- existing_file
--- some_file
--- some_subdirectory
--- .some_hidden_file
-
- directory_B
--- some_file
--- some_subdirectory
--- .some_hidden_file
# I *don't* want this
- directory_A
--- existing_file
--- directory_B
----- some_file
----- some_subdirectory
----- .some_hidden_file
-
- directory_B
--- some_file
--- some_subdirectory
--- .some_hidden_file
So far I've been stymied in finding a simple way to do this from the command prompt.
View 1 Replies
View Related
Feb 23, 2007
How do I copy all files and directories recursively to another folder?
I did:
cp --preserve -r /sourcefolder/* /destinationfolder/
However, it missed the dot files
View 2 Replies
View Related
May 1, 2008
I have about 1.80GB of flash games and I want to copy this flash games to another server, I only want to copy the flash games not the entire account.
FYI I have shell access on both server.
View 5 Replies
View Related
Apr 17, 2007
I am trying to copy files from one account to another through SSH, files copy with old account permissions and ownership.
Is this possible when I copy, ownership autometically changed to new account.
I am using CPanel and have root access.
View 2 Replies
View Related
Jul 2, 2009
Is there someway to disable shell files from working? Because even if you disable shell, shell files still seem to work...
View 2 Replies
View Related
May 30, 2007
how can I configurate Clamv for delete any infected shell file or trojan?
View 2 Replies
View Related
May 28, 2009
I have tried copy files from Linux server to Windows Server using WinSCP3 and it was so fast.
I am not sure who to copy files as well from Windows to Windows with same speed. I tried to use RDC between the Windows Servers and share one drive. But it wasn't fast as WinSCP3.
View 9 Replies
View Related
Jun 28, 2009
I want to my friend's files from /home/admin/dc
to /home/ as I am planning to rebuild kloxo for him, this could kill all the files so, I would like to know the code so tht I could copy few files from the above location to the home directory
View 4 Replies
View Related
Jul 30, 2009
to move the httpdocs folders of multiple sites on my plesk server to another server (share on other serv is already mounted so thats not an issue) but their is 31 different domains i need to copy. wondering if anyone knows any way to batch automate a cp process to copy each domains files to a new folder on remote server (this is for backup purposes not live sites so i cant use plesk migration etc
View 3 Replies
View Related
Nov 22, 2008
What tool is there for me to copy a lots of file from one webhost (FTP site) to another webhost? Like in for migrating to another host.
I'm thinking of a tool where I can specify the FTP access information for both sites, and it would perform the copy without needing to store the files on my local hard disk first.
View 6 Replies
View Related
May 31, 2009
I rent windows dedicated server for just about a month, but I never had problem.
When I copy files on my home computer and then paste them onto server's drive, files begin copying, but after some time they stop copying and I hear double beep sound.
Time after which they stop copying is random.
View 5 Replies
View Related
Mar 26, 2009
I'm trying to use the "mysqldump" command to get a copy of all databases on the server...
but I need each database to go into a "databaseXYZ.tar.gz" file.
Does anyone know how to do this? So far, I can only get all the databases into a single file. But I need each database to have its own file.
View 4 Replies
View Related
Feb 8, 2008
transfer a client's site files (over 220 MB) to my server. The client does not use cPanel or have SSH access.
FTP is horribly tedious. I have created the account on my server and have SSH enabled. I have a feeling I can use wget to download the files to the account's home directory, but I am not sure of the correct syntax to recursively download all the directories and the files.
View 6 Replies
View Related
Feb 5, 2008
how to setup a cron job to copy files & directories from one folder to the root folder. I have CPanel X.
My root directory is public_html/
I have another directory public_html/uploads containing both files and directories.
I need a cron job that will copy all the files & directories from public_html/uploads to the root public_html/
If it helps, here is some system info
General server information:
Operating system Linux
Service Status Click to View
Kernel version 2.6.22_hg_grsec_pax
Apache version 1.3.39 (Unix)
PERL version 5.8.8
Path to PERL /usr/bin/perl
Path to sendmail /usr/sbin/sendmail
PHP version 4.4.4
MySQL version 4.1.22-standard
cPanel Build 11.17.0-STABLE 19434
Theme cPanel X v2.6.0
View 1 Replies
View Related
Sep 4, 2008
i have a Dedicated server and i installed firewall and i fixed all cpanel option and i disable shell access for all users and ......
but my users can upload shell hack files (Like:c99 ) then they can access to another website ,,,, they can`t Write ,,, they can Read files only
but there is a problem because the hacker will read the config files so my Database websites will hack soon
View 14 Replies
View Related
Mar 3, 2015
I am having problems with two accounts, I get the following errors:
Code:
Failed to copy files storage to destination path. stderr: filemng: Cannot open destination file '/var/www/vhosts/domain.tld/httpdocs/index.html.Chn3rn' System error 122: Disk quota exceeded stdout: filemng: Cannot open destination file '/var/www/vhosts/domain.tld/httpdocs/index.html.Chn3rn' System error 122: Disk quota exceeded
I have run the command
Code:
quotacheck -avugfm
And the output from the command
Code:
df -i
is:
Code:
Filesystem Inodes IUsed IFree IUse% Mounted on
/dev/vzfs 20000000 1542375 18457625 8% /
/dev/simfs 20000000 1542375 18457625 8% /tmp
/dev/simfs 20000000 1542375 18457625 8% /var/tmp
none 1415577 113 1415464 1% /dev
I am at a loss, I don't know what else to try.
View 1 Replies
View Related
Feb 24, 2008
I'll mention this is a cPanel/WHM server with about 15 accounts on it.
I get an e-mail everyday from my server's backup script telling me what new or changed files it found. Yesterday this summary was massive, and it showed new or changed files in these directories:
/proc
and
/home/virtfs
The type of files it contains:
"/home/virtfs/[username]/proc/140/task/140/exe"
"/home/virtfs/[username]/proc/139/exe"
"/home/virtfs/[username]/proc/139/task/139/exe"
"/home/virtfs/[username]/proc/227/exe"
"/home/virtfs/[username]/proc/227/task/227/exe"
"/home/virtfs/[username]/proc/374/exe"
The /home/virtfs directory is something I haven't seen before, and it contained two directories belonging to two accounts on the server.
Does anyone know why these directories would be created or what they are for? The bit of reading I've done on this so far mentions that these directories will be created as a result of jailed SSH, but neither of those two accounts have ever had jailed SSH enabled.
View 2 Replies
View Related
Sep 14, 2008
Command: CWD /public_html
Response: 550 Can't change directory to /public_html: Permission denied
Error: Failed to retrieve directory listing
That's what I see in FTP, but in File Manager in cPanel I don't see any files.
What do I do?
The permissions is set to 750 for /public_html and I cannot change them
View 14 Replies
View Related
Dec 7, 2007
What is the command to change the permissions for all files contained within the same directory? I have about 100k files
located here:
/mysite.com/files/
I need to chmod all files located within the /files/ directory to 666.
What is the command for this via ssh?
View 8 Replies
View Related
Oct 19, 2007
if it is possible to allow only one ip downloading files from a directory at a time.web server is apache , may be with some apache module or if there is some build in configuration can be applied to .htaccess .
View 1 Replies
View Related
Nov 9, 2007
How to Change php files permissions in directory and subdirectory at once ?
I want to change the permissions of php permissions to be 644 in /home/user/public_html/forum and all forum subdirectory using SSH.
View 2 Replies
View Related
Aug 23, 2007
We used Red Hat with ext2 as our file system on an old server with 100k+ of image files in a single directory. This seemed to preform ok until we switched to FreeBSD using UFS. Now images load very slow. I have read that Ext2 uses and internal hash to speed lookups, while UFS does linear searches for lookups.
View 2 Replies
View Related