How To Copy Large Directory Via SSH

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


ADVERTISEMENT

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 View Related

Copy File To Multipal Directory

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

Simple Bash Command To Copy Only Directory Contents

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

Copy An Account From Another Server Via WHM - Cannot Copy Mysql Database

Oct 7, 2008

In previous thread we made few manual transfer of our domains.

We also made some automated migration of few domains/sites using Web Host Manager's Copy an account from another server feature.

All the files and other settings were properly transferred from old server to new server, but only the mysql database is not visible on new server. I am unsure if the same got copied to new server.

View 4 Replies View Related

CPanel Directory / Sub-Directory Protection (Linux Shared Hosting)

May 31, 2007

I have a situation like this:

There is a directory say, "Master" and inside, "Master" there is sub-directory, "Slave". A user who has access to, "Master" should be able to access, "Slave" automatically. However, a user who has access to, "Slave" should not have access to, "Master". Inside cPanel this type of protection is not possible.

View 3 Replies View Related

Httpd Directory Alias (public_html) Virtual Directory

Dec 11, 2008

How do I direct my httpd file to point to:

home/USER/public_html
instead of:
C:Users estetc...

I want to do this to make my test server just like the remote server.

View 5 Replies View Related

Move The Entire Contents Of A Directory Tree To Another Directory

Sep 18, 2008

I want to move the entire contents of a directory tree to another directory.

So for example we may have a directory with 15 directories inside, each directory contains files itself. I want to copy all the files from the directory tree into another directory located somewhere else one the file system. I want only the "files" to end up in the other directory and not the file structure too.

Im running CENTOS latest version.

View 4 Replies View Related

Copy Sql

Jan 11, 2008

How do I copy an entire mysql sql database file via ssh?

Inside /var/lib/mysql the sql are per table, not one single sql. The db is over 300mb in size too.

Using mysql 5/centos 4.6

View 2 Replies View Related

To Copy Dns To New Server

Mar 27, 2009

I have around 40 domains and I'm trying to avoid copying each one over manually. I can't remember what files need to be copied and the best command to do that.

View 7 Replies View Related

Rsync Copy

Apr 7, 2009

I have wrote a small script which copies file names which has name as *default* from backup to users main folder. It works fine with one folder but doesn't copy files from sub-folders.

it works with all the sub-folders as well?

HTML Code:
#!/bin/bash

for i in $(ls /var/cpanel/users)

do
rsync -vrplogDtH /backup/cpbackup/weekly/$i/homedir/public_html/*default* /home/$i/public_html

chown -R $i.$i /home/$i/public_html/*default*

done

View 2 Replies View Related

DD Copy Mount

Jan 29, 2008

I want to use DD to fully duplicate a HD, however, the HD is 120GB and also have a mount folder that is 2TB. If I use DD, will it also trying to copy that 2TB onto my 2nd HD?

View 3 Replies View Related

Copy Dot Files

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

Copy Server To A New HD

May 18, 2007

It turns out my 250GB hard drive was no match for my data... I need to upgrade the HD.

I'm currently using ClarkConnect Community Edition.

Is it fine to make a duplicate of an existing hard drive and just plug the new one in?

Is there any further configuring or is it all sweet?

Also, what software do you recommend to make the copy?

View 1 Replies View Related

How To Copy Accounts

Jan 21, 2007

I have 2 cpanel servers with root access.

I want to copy all the accounts from 1 server to another.

View 2 Replies View Related

How Do Install A Local Copy Of TAR ?

Jul 30, 2006

wasn't sure if this should go into "technical" or "programming" but I figure someone here will instantly be able to tell me...

(details: I'm on a shared host with cpanel and centos 3)

My hosting service techs refuse to update gnu TAR on the server even though it's several years old at 1.13 and has some know bugs that are annoying for complex calls - (basically the techs use any request like this to try to upsell me to dedicated or VPS which I don't need at my low level)

So I'd like to install a "local" copy of the newer gnu 1.14 or 1.15 TAR (which I *think* is possible?) into my account and have it run instead of the shared copy?

Unfortunately this is beyond my knowledge so thanks for any help in the right direction...

View 3 Replies View Related

How To Copy Files From One Server To Another

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

Failed To Copy Packages

Apr 20, 2008

I was trying to copy packages from one cPanel server to other using Copy function in WHM
accounts were moved easily but packages failed , Tried 4-5 times but still failed.

View 2 Replies View Related

Copy MYSQL To Another Server.

Sep 4, 2007

I would like to copy all MYSQL databases, users, etc.. to another server.

One server is RHEL 4 and the other is RHEL5.

What do I need to copy to insure everything is moved over,

View 14 Replies View Related

Copy Accounts Wiht WHM

May 18, 2007

What's the biggest site you've copied using Copy Account function in WHM? I have a site about 5GB, containing a forum with a gallery. The database is ~600MB. Do you think it'll timeout during the copying process?

View 13 Replies View Related

CPanel Copy Php Errors

Aug 26, 2007

i have a site at [url]

i tried todo a cPanel move to my server here.
[url]

on the new server above i keep getting the errors below. i just dont know what any of this means. can anyone help?

Warning: fopen(/usr/local/apache/htdocs/online.txt) [function.fopen]: failed to open stream: Permission denied in /home/cometora/public_html/onlineold.php on line 14

Warning: fclose(): supplied argument is not a valid stream resource in /home/cometora/public_html/onlineold.php on line 15

Warning: chmod() [function.chmod]: No such file or directory in /home/cometora/public_html/onlineold.php on line 16

Warning: fopen(/usr/local/apache/htdocs/online.txt) [function.fopen]: failed to open stream: No such file or directory in /home/cometora/public_html/onlineold.php on line 19

Warning: flock(): supplied argument is not a valid stream resource in /home/cometora/public_html/onlineold.php on line 20

Warning: feof(): supplied argument is not a valid stream resource in /home/cometora/public_html/onlineold.php on line 22

Warning: fgets(): supplied argument is not a valid stream resource in /home/cometora/public_html/onlineold.php on line 24

View 6 Replies View Related

Copy Files/dir Without Permissions

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

SQL Too Large

Apr 5, 2007

I'm having a lengthy issue where my databases are to large to import in phpmyadmin using plesk. Unfortunately I dont have direct access to phpmyadmin and can only access it by DB user through plesk.

I have tried to edit php.ini in the following locations:

upload_max_filesize = changed this to 64M

post_max_size = changed this to 32M

maximum_execution_time = changed this to 300

maximum_input_time = changed this to 300

Why am I still not able to import my DB's which are about 8MB each?

View 4 Replies View Related

Cron Job To Send Backup Copy

Jun 3, 2009

Is it possible to get [Crone job] that sends a backup copy for single user in the server to another hosting via FTP which has [Domain name/ User /Password] either weekly or 3 times a week

View 10 Replies View Related

Copy Files Between Windows Servers

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

Ssh Code To Copy Files In Same Server

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

Batch Remove Files And Copy

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

Tool To Copy Files From One Webhost To Another

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

How Do I Create A Daily Copy Of Just One File

Jul 3, 2008

I seem to be having a problem where periodically the data in one file is getting corrupted. I haven't been able to figure out a pattern to it, so I wanted to run command by crontab that would create a copy of the file each day. To avoid overwriting previous backups the filename of each day's copy would have to be unique like...

cp filename filename-2008-07-03

Is there a way to include this year, this month, and this day variables in a linux command?

View 6 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved