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


ADVERTISEMENT

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

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

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

Server :: How To Control Windows System Under System Like Active Directory Authentication

Jul 18, 2010

How to control a windows system by using linux server i know linux is a cross flatfarm. But how to Authenticate windows system like in windows we use AD for user authentication.

View 3 Replies View Related

Ubuntu :: When Drag The File To Install It Again It Says Something Along The Lines Of It Cannot Copy A Directory Over A Directory?

Feb 19, 2010

I downloaded a mouse theme form gnome look and installed it in the themes. But it has not appeared in the pointer themes section in custimation even though it said that it is installed correctly.When I drag the file to install it again it says something along the lines of it cannot copy a directory over a directory.Where can I find where the mouse/pointer theme is located and delete it. I have searched filesystem, google and these forums and not had any luck yet.

View 1 Replies View Related

Fedora :: Copy A Few Files From Windows Directory Into The Wine Directory

Aug 1, 2009

i want to copy a few files from my windows directory into the wine directory - its no big deal, just a few preference files so i dont have to set something up all over again. trouble is, i had the files copied, but i cant find the wine/ c: drive directory anywhere, anyone know where this can be found??

View 8 Replies View Related

Programming :: Copy Files After Search In Array From This Directory To Another Directory?

Jan 3, 2009

After i try to find logfiles follow date/month/year. i want copy this files to another directory with name's directory is time you find(date/month/year).

View 4 Replies View Related

Ubuntu :: Recursively Copy From Directory To Another Directory

Mar 23, 2010

I'm facing a little trouble with copying a .txt file(only) from a directory and subdirectory to another directory. -R command don't work I think if I want to do this, since I don't want to copy subdirectory.

View 6 Replies View Related

General :: Using Cp Properly - Copy A Directory Somewhere Else Into This Current Directory ?

May 13, 2011

I am in my current directory. I want to copy a directory somewhere else into this current directory. Lets say I want to take it from direc1/direc2 and the directory I want to take is called demo.

Code:

That is what it shows in the man pages, but when I do that, it says cp: no match

View 5 Replies View Related

Server :: Error: Message Reported From The File System: FTP Copy Not Supported

Feb 24, 2010

There is a centralized FTP server which are accessed by clients to develop some web development project and to achieve this the clients are using ftp service. The problem is when they are trying to copy any files and directories they are getting the following error: "Message reported from the file system: FTP copy not supported,use move instead"
I've checked all the permissions and they are all OK. I don't know why this is happening. they can create and move files and folders but can't copy files and folders.

View 8 Replies View Related

Server :: Migrating Old NIS System To 389 Directory Setup

May 17, 2011

I want to migrate our old NIS system to 389 Directory Server.

What I have done:
* Installed Redhat 5 x86_64
* Installed 389 from EPEL
* Imported NIS Data into 389 with LdapImport from Babel
* Authentification over LDAP is working. (POSIX Accounts)
* Installed slapi-nis

I configured slapi-nis module (dse.ldif) from the readme --> nis-getting-started.txt. And ypserver is running. But what should I do next? I don't know how to " Configuring a Domain and a Map". Where should I configure it? Commandline ? 389-console?

View 1 Replies View Related

Server :: Set A Real System User In ProFTP To Set To A Specific Directory?

Nov 30, 2010

I have a real system user say 'test', created in a number of system groups, up to 3 additional groups (including ftp of course). Its set to the usual standard directory /home/test. But what if I wanted to use /home/test as their home directory but login to what would be unknown to them to be ProFTP to make them go in say [URL] or something random like that, how is this done? Just been through things like this:

Quote:

<VirtualHost 192.168.0.255>
ServerName "ftp.mydomain.com"
ServerAdmin "me@localhost"

[code]....

But nothing seems to work.

View 23 Replies View Related

Server :: Login Windows Active Directory Users In System?

Jan 22, 2010

I have running windows 2008 active directory. need to login ad users to linux system, which is inside the windows domain

View 3 Replies View Related

General :: Can't Copy Files From Directory With "&" Symbol In Directory Name

Mar 18, 2010

I am using my media server as my podcast collector. I am in the process of learning the ins and outs of NFS so i can mount a NFS directory and transfer my podcasts from server to player. For now i am using scp to transfer podcasts from server to desktop then to player. The problem is the path to the directory of one of the podcasts is /home/user/gpodder-downloads/The BILL&TIMMY Show Podcast.

whenever i try and run my scp command it fails because it thinks that TIMMY is a script i want to run in the background. I have tried to back-slash escape the character, i've tried single quoting and double quoting the character and i still get the same problem. as it sits now i have to move all podcasts to another directory and then transfer them to my desktop...but i would like to transfer the podcasts without un-necessary steps.

View 8 Replies View Related

Software :: Get First File Of Directory Then Copy To Other Directory Andd Rename The File?

Jan 30, 2011

I want to do the following.

1. have a directory full of subdirectory

2. Pick the first file from every sub and copy that to the main directory and also rename that file to the same name as the subdirectory's name

3. need to work in commandline best is a simple script.

View 4 Replies View Related

Ubuntu :: Copy To Different Directory Script?

May 12, 2010

i just started using an ubuntu 9.10 distro, installed a bunch of software to make it a file server, now i am using an excel sheet on it, i want to make a script to back it up at a certian time,template of a script to do this and how to use it.

View 4 Replies View Related

General :: Copy Files From Directory Of One User To Directory Of Another User?

Apr 15, 2011

Is it possible to copy files from directory of one user to directory of another user in linux?

View 7 Replies View Related

General :: Copy And Paste Between Local System And The Remote System When Using Rdesktop?

Dec 22, 2010

On Linux I do:

rdesktop remotepc

How do I copy and paste between my local system and the remote system?

View 1 Replies View Related

Ubuntu :: Enable Copy - Paste To Www Directory?

Mar 28, 2010

How to enable copy/paste to www directory or how to copy files to www directory?

View 7 Replies View Related

Ubuntu :: Copy Only Most Recent Files From A Directory?

Mar 4, 2011

I am using Gpodder for the moment and would like to copy the 3 most recent podcast episodes of every podcast to a second directory (in fact the second directory resides on my android phone, mounted via usb)The setup is as followsGpodder downloads the episodes in

/home/PODCASTS/podcast 1/
/home/PODCASTS/podcast 2/
/home/PODCASTS/podcast 3/

[code]....

View 9 Replies View Related

General :: Can't Copy A Directory Without Using -R ?

May 26, 2010

Why can't I copy a directory without using -R ? It shows "cp: omitting directory" .

View 3 Replies View Related

Ubuntu :: Copy / Move Random Files From One Directory To Another

May 7, 2011

We have two folders: source folder and destination folder. In source folder we have many sub folders and many files of different type!Script that would copy or move defined number of files from source to destination folder. Files must be selected randomly and sub folder in source folders must be selected randomly and we don't copy or move defined number of files just form one sub folder in source folder. In destination folder sub directory structure of source folder should not be preserved. Solution should be robust and as simple as possible.

View 9 Replies View Related

Ubuntu :: Use Rsync To Copy ONLY Home Directory And No Files?

Jun 1, 2011

How can I use rsync to copy ONLY the my home folder (and nothing inside of it, just the folder name) to another machine. I've tried things like

Code:

rsync -av /path/to/src /path/to/dest/

or

Code:

rsync -av -f"+ */" -f"- *" /path/to/src /path/to/dest/

This last option recursively (through the -a switch) copies only folders, including all subfolders. If I try

Code:

rsync -v -f"+ */" -f"- *" /path/to/src /path/to/dest/

nothing is copied (not even my home folder.

View 9 Replies View Related

Ubuntu Installation :: Copy Entire /home Directory To 11.04?

Jun 8, 2011

I installed a new 11.04 on my Thinkpad in place of the old 10.10 system, so it replaced the old /home with a new empty one. But I had previously done a partition copy of the original 10.10, complete with /home to a spare HDD so now I can copy that /home in place of the new empty /home. What's the best way to do that? Should I use 'dd'? Should I use Nautilus? Or should I partition-copy that copy of the 10.10 onto available space on the thinkpad 11.04, then manipulate the partitions to consolidate? Maybe create a separate /home partition?

View 4 Replies View Related

Fedora :: Copy A RPM Package Into A Directory?

Sep 16, 2010

I am trying to copy the RPM alsa-lib-1.0.23-1.fc13.rpm package into a directory i created called /var/www/html/updates. I can copy the file onto the desktop and in home but when i try to move it to the created directory it tells me permission denied. I even tried to change the mode and i get a message saying I'm not in the sudoers file

View 1 Replies View Related

Fedora Installation :: Copy From One Directory To Another?

Feb 2, 2011

How to copy from one directory to another? For example, i have my "drupal" files in Anto(my home) need to copied to /var/www/html/ ! How to do this? I tried of doing "cp" command but it doesnt work..

View 7 Replies View Related

General :: How To Recursively Copy Directory Into Another One

Apr 25, 2011

I moved to Mac OS X recently and bumped into the "feature" of Mac where copying files from an external drive resets the file modification/update date/timestamp to the current date (which Windows does not), causing a disaster for my 10+ years of backup work files where date is important. So, before I learned how to avoid that (e.g. using the -p "preserve" flag in the "cp" copy command) I have in the meantime added to my new Mac hard drive many more files as well as updating existing old files.

I have a backup external hard drive with all my old data and proper modification dates. I have a Mac hard drive with reset modification file dates (a single or two particular days). The Mac hard drive has all the "true" and "current" file contents with files modified and added. I need to Copy all the original files from the external harddrive, preserving file metadata (really only modified date), but ONLY overriding the new internal Mac hard drive IF

The file contents (md5 or whatever) is the same or The file was updated after the day (which of course I can see on all files) on which the original disasterous cope was performed (implying the file is new or modified) Ensure the copy leaves all the new and modified files completely intact on the Mac internal hard drive. "No prompting/stopping of the copy of any kind (i.e., not verbose) is required but is o.k". "Recursive copy - obviously I would like to copy all* files folders and subfolders found in export".

View 1 Replies View Related

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







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