General :: Copy Setup From One Box To Another (Different IPs)
Apr 21, 2010
I've been asked to look into moving the contents of 1 linux server which has samba, php, mysql, apache and some other bits installed, to a brand new server which currently only has the os. Is there an easy way of doing this by copying the files/directories straight over or would we need to build all the software from fresh again on the new box? They are both on different IPs so I'm guessing I'd need to update some configs and if I can avoid taking the current box offline then that would also be useful. I'm fairly limited in my linux knowledge.
copy my existing hdd to a new one that has lvm and for whatever reason(inexperience) I cant figure out a good way to do it. This is what Im working with old drive =160GB, new drive 500GB.
new drive fdisk Disk /dev/sdb: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes
At my workplace, Ubuntu connects to the wireless internet with no problem at all. When I log into openSUSE or PClinuxOS (the other two distros I use) I can't connect. Is there a way to copy the network files from Ubuntu to at least, not replace, but use as a reference for trying to trouble shoot my other two distro networking issues?
At my workplace, Ubuntu connects to the wireless internet with no problem at all. When I log into openSUSE or PClinuxOS (the other two distros I use) I can't connect. Is there a way to copy the network files from Ubuntu to at least, not replace, but use as a reference for trying to trouble shoot my other two distro networking issues?
I am running Suse 11.1 on a netbook that I would like to free up for work. Since I would like to keep the existing setup on the new machine, I was wondering if there was a process for copying an exisiting installation to new hardware. This will be a desktop system ( Cheapie PIV most likely )
How to copy a Read-Only file in Linux and make the copy writable with a single cp command in Linux (Ubuntu 10.04)? The --no-preserve and --preserve seemed to be good candidates, except that they should "and" the mode flags, while what I am looking for is something that will "or" them (add +w mode).
More details: I have to import a repository from GIT to Perforce. I want that all Perforce depot files are Read-Only (that is how Perforce was designed), while all other files that were derived/copied from depot files are writable. Currently if a Makefile tries to copy a Read-Only file then the derived file will also be Read-only. This leads to build-errors when cp tries to overwrite Read-Only file second time. Of course the --force is a workaround here but then the derived file is also Read-Only. Also I do not want to mess with "chmod" after each "cp" command - I will do that only as the last resort.
I have a copy of AutoCAD, and tried installing it, but the setup.exe file is apparently unexecutable in ubuntu. I tried changing it to executable, but the disc is closed and is in read-only. Does this mean that I can only use CAD on my windows laptop?
I've been all afternoon trying to install Ubuntu Lucid on my fakeRAID 0 configured (2) HDDs and am unable to set GRUB up. The fake RAID setup is provided by Intel Matrix Storage Manager, it is correctly enabled and the BIOS is also correctly set up -- in fact, I've managed to install Windows 7 with no significant hitch. After struggling with partioning the drives (had to follow advice I found on a very helpful guide online [0]), creating the filesystems AND getting Ubuntu's installer to actually do what it is supposed to do, I now cannot seem to set GRUB up. My system, as it stands, is unbootable at all; via live CD only.
This is how the RAID0 dev is partitioned: Code: # fdisk -l /dev/mapper/isw_ecdeiihbfi_Volume0 Disk /dev/mapper/isw_ecdeiihbfi_Volume0: 1000.2 GB, 1000210694144 bytes 255 heads, 63 sectors/track, 121602 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 131072 bytes / 262144 bytes Disk identifier: 0x6634b2b5 .....
I have a 160GB harddrive which I installed a F12, would like to upgrade to a bigger drive, but I hate to have to re-install everything.
Recommend a good disk copy utility? The utility should be able to not only copy files, but boot sector and everything. So I just need to make a copy, change my BIOS to boot from the new drive and run everything as before.
just installed ubuntu couple of days back on my netbook. I am still a beginner, enjoying my adventure exploring ubuntu. I have another desktop which runs on XP. I am able to access XP shared folders through my netbook(linux). However, i wanted to copy files from XP infact folders using TERMINAL in my netbook, not copy and paste using my mouse. Are there any commands for it?
I am using windows xp and debian linux.In windows xp I am having around 25 gb offree memory but in linux if i copy anything it says enough space memory to copy
When i do cp filename destinationfolder it isn't happening. I don't get any error messages or any indication that the file copy didn't happen. But when I go to the destination folder and do ls; the file(s) not there. I tried it with sudo also and i get the same results. When I first did the copy it actually copied it somwhere but not where i wanted it. It copied it to folder name Desktop. So i tried copying it from Desktop and again same results.
why scp command not copy links from local copmuter to other ( how to copy the links)as scp -rp dir linux:/dir_targetremark in dir I have files and links
Does anyone know if this is possible? I am attempting to copy one "master" hard drive to two or more "destination" drives. I hope to use the DD command because the master drive is encrypted and I need to make exact copies to "destination" drives.
I have used dd if=/dev/sda of=/dev/sda and it works for one-to-one operations. I tried dd if=/dev/sda of=/dev/sdb of=/dev/sdc but the command skips the of=/dev/sdb and copies to sdc....I knew that was going to be too easy
I ordered a new laptop which has a conventional hd with the pre-intalled os on it. I would like to make an image of all the software that is installed on this conventional hd and move it to an ssd which I will use to replace the hd. Problem is that the conventional hd is 320GB and the ssd is only 240GB. All solutions I've found require the target partition to be at least as large as the source.Is there any way of doing this using linux?
I installed Kubuntu 9.1 and then I downloaded Xampp of Linux to the desktop, however I have to extract it to /Opt/lampp. And that's the problem. I don't seem to have access or permissions to ?? I tried right-click | properties | permissions but the fields are greyed-out to make any changes.I am logged-in using the same user id/password I created when installing K9.1.
I m trying to take backup of a file using ssh.I have written a command like following.Which will take backup of vm.cfg as backup.cfg...How would i modify my query?
I'm using ubuntu and I'm trying to copy a .iso file to a dvd. I have k3b at my disposal. My problem is that the dvd is not empty, and I'd like to overwrite it or wipe it before copying the new .iso, but k3b displays an error if I try to overwrite it, it says it doesn't have the necessary rights and proposes me to use k3bsetup. I have it too, but I don't know how to use it.
I looked in the man cp pages to find an option that allows me to copy files without overwriting and without having to answer no every time prompted (huge number of files) but i didn't find any.
I am trying to copy a particular type of file from one mounted drive to another, but I am having difficulties.I would like to copy all of my pdf files from my mounted drive to my USB drive.I am currently in my /mnt/sda2 (sda2 is a Windows XP) directory and want to copy all of the *.pdf files to /mnt/sdf4 (sdf4 is a USB drive).I have tried:copy . *.pdf /mnt/sdf4 (this only copies a couple of files)copy -R . *.pdf /mnt/sdf4 (this starts copying the directories instead of the files)o I want to copy only the *.pdf files contained in the entire sda2 mount over to sdf4.
I am developing a Web-based application and have some folders that will generally reside outside of the Web accessible area of the server. However, since some people will not be able to store those folders outside of the "public_html" folder, I am looking to put a blank "index.php" inside of every folder within that section of the application. To make things easier, I would like to know if there might be a way to recursively copy one file into every folder in a certain location.
In other words, is there a command that might do something like: Code: > cp -R index.php /home/user/public_html/source-files/* Basically, I want every directory inside of "source-files" to get a copy of "index.php". The directory hierarchy within "source-files" can go at least three or four levels deep, so the command would need to be recursive. I am looking for a command-line statement that I can type to perform this action.
I have directory that contains some symbolic links:
user@host:include$ find .. -type l -ls 4737414 0 lrwxrwxrwx 1 user group 13 Dec 9 13:47 ../k0607-lsi6/camac -> ../../include 4737415 0 lrwxrwxrwx 1 user group 14 Dec 9 13:49 ../k0607-lsi6/linux -> ../../../linux