Server :: Possible To Copy Directory Contents For Data Transfer

May 2, 2010

I have a server that I wanted to transfer it to a newer one both of them have CentOS but the newer one kernel is more up to date I wanted to know is it possible just to copy some directory contents exactly to another for transferring the server data (for example /var /usr /bin /home /etc). I have one website on my server with its mysql database

View 4 Replies


ADVERTISEMENT

General :: Copy Contents Of One Directory Into Another

Jul 7, 2011

I would like to copy the contents of a directory into another. I don't want to copy the directory and all files and directories under it, but just the contents of the directory just as if it were a regular file. Doing cp -r target dest copies the directory and the entire hierarchy rooted in it. I get error if I do not include the -r option. (I am calling cp from within a C program.)

View 3 Replies View Related

General :: Copy A Directory Without It's Contents?

Nov 5, 2009

Is there a way to copy a directory (retaining the permissions and owners) without copying the contents of the directory?

If there is no such thing... then I need a way to determine if a target path is a file or a directory, and if it is a directory I need to make a new directory elsewhere that has the same name, owner and permissions.

Basically, I'm trying write a script to copy 200 GB of files over a network to a new server, and I'd like to do it by generating a list with the find command. That way, I can migrate large chunks of the files over the course of a week, and on the day of the migration generate a new list of files that changed in the last week and then copy just the chagned files over minimizing the down time. However, the list will contain directories that I can't just use the 'cp' command on because it will copy all the contents of the directory.

View 5 Replies View Related

Software :: Copy A Directory Without Contents

Apr 28, 2009

Is there a way to copy a directory without copying the contents, but preserving ownership, timestamp etc of that directory?

I've looked at the cp man page, but I don't think it supports it. I'm thinking one would have to write a script to gather the info, and then mkdir, chown and touch. Does this seam right?

View 2 Replies View Related

Software :: Copy The Contents Of One Directory To Another?

Mar 10, 2010

I am trying to copy the contents of one directory to another

rsync -av /old /new

when I do this /old is being copied into new

/new/old/files from old

but what I want is the files from old to be moved to new

/new/files from old

how can I do this?

View 2 Replies View Related

General :: Copy Contents Of Home Directory To Other Users?

May 3, 2011

I've created other users in my machine. now I want to add all my home directory contents and settings to the home directory of other users. how can i do that? Can I do it from /etc/skel directory?

View 1 Replies View Related

Applications :: Scp Copy A Directory And Its Contents From A Remote Machine To Local Host

Oct 8, 2010

For the life of me I can not figure out what I am doing wrong with scp to copy a directory and its contents from a remote machine to my local host. I have no issues with getting a single file but would like to just save time and get the whole folder in one command.

Here is what I have tried:

scp user AT remoteMachine:/home/username/folderIwant user AT localMachine:/folderIwant this gives me a permission denied error and try again and received disconnect from localHost to many authentication failures

scp user AT remoteMachine:home/username/folderIwant . says can not find file or folder

I am sure this is something easy that I cant remember, and searches gives me local to remote not remote to local and trying to make the local to remote suggestions I read to work remote to local have not worked.

View 2 Replies View Related

General :: BASH Script To Copy Contents Of Directory So Long As Average System Load Low?

May 26, 2010

For reasons I won't get into, I need to copy directories so long as the average system load is low. Can someone help me write a BASH script that will copy the contents of a directory, but check to make sure the average system load is below X before copying each file, and if not, wait Y seconds and try again?

View 3 Replies View Related

General :: Copy Folder Hierarchy / Recreate All Folders From One Directory Without Copying Over Contents Of Folder?

Jul 2, 2010

Is there a way to recreate all the folders from one directory to another without copying over the contents of the folder? I've been trying to do something like this,

Code:for i in `ls $X`; do mkdir $PATH/$i; doneUnfortunately $i is deliminated by whitespaces in the filenames and not the actual folders.

$X contains only other folders so I dont have to worry about regular files but any kind of more "advanced" solution would work.

View 1 Replies View Related

General :: Execute Scp To Copy Mysql Data Directory?

Aug 31, 2010

We have a test server in which we have not taken backup. Contents under /etc is entirely lost.

I need to execute scp to copy mysql data directory.

Also it is in remote location. Can I recover the data by scp by creating some /etc/passwd , /etc/shadow files ?

View 6 Replies View Related

General :: Use File Globbing To Copy All The Files In The /labs/data Directory?

Sep 13, 2010

Use file globbing to copy all the files in the /labs/data directory that end with a .out to the lab05 directory.

Use file globbing to copy all the files in the /labs/data directory that start with a c, d, or n into the lab05 directory.

View 5 Replies View Related

CentOS 5 Server :: Openssh 5.8p2 - Transfer Data From Other Server Through Scp It Gives Connection Refused?

Aug 1, 2011

I have configured openssh 5.8p2 with centos 5.6. My sftp is working fine with chroot environment but i am having problem with SCP. I am dealing with muliti Redhat servers. When i try to transfer data from other linux server through scp it gives connection refused. For e.g ssh 5.8 is configured on new server and i want to transfer files from old server which is using openssh 4.3 version.i created same username and password on new server as on old server.My sftp users on new server has no shell access but only sftp access. When i try to scp from old server to new server it gives error connection refused. Is the below configuration only for sftp and can't scp? According to google the configurations i found are for scp and sftp. Do i need to generate ssh keys by giving users on new server shell access, once created then stop shell access again, as i dont want to give shell access permanent for security reasons? but i want to use ssh keys for more security as well.

Port 22
PermitRootLogin no
1.override default of no subsystems[code].....

View 5 Replies View Related

Security :: Connect To Another Server (B) To Transfer Data Everyday?

Apr 13, 2010

I have a server A that needs to connect to another server (B) to transfer data everyday.[A] ==SFTP==> [B]

I am using SFTP for the data transfert between A and B. I configured B to allow authentication only with a key, not with password. However, anybody who acccess the filesystem of A, could steal the password.

So I thought I could password protect the private key from A. But in such a case, I need to store the password somewhere on A, so the server A can access the private key to connect to B. Finally, it is endless: i always have to store somewhere a secret on A. Is there another solution that allow to have an authentication between A and B without storing plain text secret on the server A ?

View 12 Replies View Related

Server :: Transfer The Profile Directory From Another CentOS Box?

Jul 14, 2011

I've tried to follow online tutorials about Samba PDC, I don't think I finished it well in CentOS 5.6 because when I tried to browse the profiles folder of the users in the home directory, the files doesnt appear. Actually the windows xp pc needs to restart before I can see the files, why is that? One more question, how can I transfer the profile directory from another CentOS box that will act as the storage of the roaming profile of the users? I use this in configuration smb.conf

workgroup = POGI.work
server string = Samba PDC Server
netbios name = samba
local master = yes

[code]....

View 1 Replies View Related

Server :: Unable To Copy Data To Remote Server Using Ncftp Command

Jul 16, 2011

I am unable to use ncftp command I have defined all variables used. i have to copy the data to another server FTPS. When i am executing this command it is throwing error

ncftp -u : option unknown

I am copying total script what i am executing in my server. Please some one tell me is there any pistake in using the ncftp command , or tell me some other commands to copy data to remote server

BAK="/opt/DBbackups"
NOW=$(date +"%d-%m-%Y")
FTPU="username"
FTPP="password"

[code]....

View 6 Replies View Related

Security :: Secure Solution To Transfer Data Using Rsync Over Internet Between 2 System Server?

Jan 2, 2010

I'm looking for a most possible, secure solution to transfer data using rsync over Internet between 2 linux server.
I have 3 option: SSH, IPSEC and Kerberos.
Which one in your opinion should be most secure solution?

View 3 Replies View Related

General :: How To Mount HDD And Copy Data To Server

Apr 12, 2010

I have a HDD that cannot be bootup (should be the boot file problem, I want to get back the data in it, so I plug it to another server and trying to copy the data from the failure HDD to this server. Now, the server is re-boot and in maintenance mode as the HDD cannot do the system check. when I try to copy data, it pops the server is read-only system.
1. How to let me write data to the server ; or
2. Let me boot up the server, then I will mount the HDD to it and copy the data to the server.

View 1 Replies View Related

Server :: Data Copy From Mysql To Samba?

Jul 18, 2011

how i can copy data from mysql server to local system or samba server. I want to know the command.

View 5 Replies View Related

Ubuntu :: Merge Directories - Transfer Contents Of All Folders Into One

May 4, 2010

I recently had to rescue files from a dying hard drive using Photorec. However, it dumped the files randomly in many different directories. Is there a way I can transfer the contents of these directories into one master directory without the file structure. For example, I have folders 1 through 10 as subdirectories in folder X. How can I transfer the contents of all those folders into folder Y while getting rid of the subdirectories 1 - 10?

View 3 Replies View Related

Red Hat / Fedora :: RAID And Disk Transfer For Copying Contents

May 5, 2011

I had used DELL 1950 with 300 GB raid disk. Now, I purchased Dell 2950 with 450 GB (6 disk - 3 pairs of raid). I wanted to pull out old 300 GB from 1950 and put it in 2950 (temporarily) to copy all contents to the new system. How do I know which HDDs I need to pull out from 2950 so that I can replace them with 300 GB HDD to mount. I do not know how raid setup (I know unix alone - not raid commands). Is this possible? How to do it?

View 5 Replies View Related

Software :: List Files/directory Names Without Directory Contents?

May 3, 2011

When I run "ls -al somedir*" (I use the "ll" shortcut, actually), Linux not only list files that match, but also the contents of directories whose name also happens to match.Is there a way to limit "ls" so that it will only show names (files and directories) and ignore the contents of the directories?

View 2 Replies View Related

General :: Copy Whole Directory To Ftp Server

Oct 28, 2010

I have this scripts that is meant to create certain files and a directory by date and once its finished its meant to copy that direcory an the example ftp server.

View 1 Replies View Related

Ubuntu :: Copy / Var Directory In A Server To Another System Using Scp

Jul 1, 2011

I am trying to copy /var directory in a server to another sysem using scp. Although the total size is around 6GB, the copied folder's size exceeds 80 GB or so. I am not sure what's going wrong, but I am suspecting that the directory contains some shortcut or symbolic link, and while using scp that directory is also getting copied. Also it would help if i can see the complete path of files getting copied instead of just file name that's getting copied. Is there any option in scp to do so (Display complete path of files).

View 7 Replies View Related

General :: Copy Data Files From One Server To Another Online, Automatically, Daily, Using A Script?

Jun 22, 2011

How to move a data files from one Linux server to another in an online Internet environment, automatically daily, using a script?

View 1 Replies View Related

General :: Copy 3 Dir's Contents To 1 Dir By Crontab?

Jun 7, 2010

how to copy 3 dir's content to 1 dir by crontab?suppose i want to copy /home/ftp1/* /home/ftp2/* /home/ftp3/* to /ftpdatathree ftp user data to one folder after every one minute by crontab methodso it goes like*/1 * * * * /bin/cp -rf ??? /ftpdata

View 14 Replies View Related

Ubuntu :: Excel Data Shrinks To The Small Scale - Unreadable When Copy Data From Another Spreadsheet Onto The New One

Jan 17, 2011

I've been using Excel from OpenOffice with moderate success for the last year. Now I've just tried to open a new spreadsheet and I'm suddenly getting a highly condensed view. The cells are about 1mm X 4mm. If I expand them by selecting and dragging, then try to copy data from another spreadsheet onto the new one, the data shrinks to the small scale -- unreadable.

View 4 Replies View Related

CentOS 5 :: Using Mouse & Vim To Copy Contents Of One File Onto Another

Aug 4, 2010

I am using CentOS 5.5 and openSUSE 11.0. I use vim editor but do not know more than 1 - 2% of its functionality. In openSUSE if i open 2 text files in 2 separate terminals, i can copy the contents of one file onto another by just left-clicking and dragging the mouse over the required text. But i am unable to do this in CentOS.

View 6 Replies View Related

Fedora :: Input/output Error When Trying To Copy DVD Contents With DD

Mar 3, 2010

I even threw some video DVDs at it to make sure it wasn't the disc.

Code:

[pickens@acer1 Videos]$ dd if=/dev/sr0 of=POTC.iso
dd: reading `/dev/sr0': Input/output error
5088+0 records in

[code]....

I am getting the same thing on my laptop running Mandriva, oddly enough. Two different drives, two different computers, two different distros and multiple DVDs.

View 9 Replies View Related

General :: Copy Entire Folder Contents To Another Using PUTTY?

May 2, 2011

How to Copy the entire folder contents (including sub-folders and their contents) to another folder using PUTTY? Is there any command for that?

View 3 Replies View Related

Ubuntu :: Partition The New Drive & Just Copy The Contents Using Rsync?

Jan 26, 2011

I just installed a new HD on my system with multiple HD's already. I have a drive with two versions of Ubuntu & would like to copy the complete drive to the new drive along with all the contents & partitions of the Ubuntu drive.

1 - Could I partition the new drive & just copy the contents using rsync?

2 -If I copy all the contents over could I just reinstall Grub & edit fstab & be good to go?

View 3 Replies View Related







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