General :: Copy Files With Preserving The Attributes?

Jun 3, 2010

I need to copy my data from the pc to an external hard drive with keeping the attributes; so i used the command

cp -rp ~/sourceDir ~/Destination

but when i am coping it it give the error message "cp: failde to preserve ownership for 'file' : Operation not permitted and it copied the files to the destination but the attributes has changed from

-rw-r--r-- to
-rwxr-xr-x

I tried to copy it by loging as the root also but still the same thing happens. how to copy the files with preserving the attributes

View 7 Replies


ADVERTISEMENT

General :: Asking Cp To Copy Preserving The Whole Source Path

Jun 13, 2011

cp (GNU coreutils 6.9).

I have these files:
Code:

I want to copy them to /xp/borrar/ such that the result is

Code:

Can this be done with the cp command alone?

View 7 Replies View Related

General :: Copy Directory Into Another Preserving Specific Structure?

Jul 20, 2011

I would like to find the command that copy my eclipse options to another workspace code...

It doesn't work, and it could be source of error to write the path .metadata/.plugins manually. It certainly a better idea to create a complete script ?

View 1 Replies View Related

General :: Change Attributes Or Remove Files With The E Attribute Set

Jul 6, 2011

I have a bunch of files on a usb stick that have just the e attribute set. So I can't chattr them, rm -f fails and chmod fails, all whether as user or root. How can I get rid of the e attribute? Failing that, how can I get rid of the files?

View 3 Replies View Related

Server :: Copy A File Preserving Its Original Modification Time Using The Command?

Jun 8, 2010

It seems to be simple one, but couldn't figure out exactly. Say I copy a file preserving its original modification time using the command

Code:
cp -p file1 file2
Now later, I want to know when file2 was copied... How do I find it ?

View 1 Replies View Related

General :: Samba Does Not Keep Windows Attributes (read Only Files As Read Only For Example)?

Jul 16, 2011

I want my samba to keep my windows attributes exactly what the user setted in windows I mean if it has read only file in win box and copy it to samba share ,samba keep it read only and same for other attributes but it does not do it now with my configuration:Quote:

[global]
workgroup = DOMAIN
server string = File Server

[code]...

View 3 Replies View Related

General :: Creating A Script To Move Or Copy Files Into Multiple Directories Below The Files?

Aug 25, 2009

How can you create a script to move or copy files from a main directory into multiple directories below the main directory.

View 7 Replies View Related

General :: Can't Copy Files To Root Owned Files?

Feb 1, 2011

When i installed ubuntu. I made a seperate partition so that i could copy an ISO image onto it of an up-to-date version of ubuntu. I wanted to then boot the ISO up so i could install the version that way.I've already tried doing it through the update manager but it'll download, almost be done with installing and it freezes on me. so i figured this would be easier. However i do not know how to gain access to the other partition to copy the ISO image.

View 6 Replies View Related

General :: Copy Files And Folder Except Some Files And Folders?

Jun 8, 2010

I have many files and folders in my source folder. I want to copy some files and folders from that source folder to destination folder. What should be require to given with the "cp" command?

View 1 Replies View Related

General :: How List The Attributes - Difference B/w Ext2 And Ext3 ?

Mar 10, 2010

What is attribute?

How list the attributes?

What is the diff b/w ext2 and ext3?

What is the types of files?

What is the drived files?

View 3 Replies View Related

General :: Can't Change File Attributes Again Opening It As Users Above

Oct 23, 2010

I have a MP3 player which is owned by Root. I have tried the following: in terminal - chown as both my usual log-in and root operation not permitted. I ran chown as both su, root, and myself. In Nautilus - I can't change any of the file attributes again opening it as any of the users above. I used to be able to copy files over to the MP3 player but not the Sandisk but not I can't copy or do anything to the files on both.

View 1 Replies View Related

Fedora :: Disk Copy Utility - Should Be Able To Not Only Copy Files But Boot Sector And Everything

Sep 1, 2010

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.

View 11 Replies View Related

Ubuntu Networking :: Copy Files From XP Infact Folders Using TERMINAL In Netbook, Not Copy And Paste Using Mouse?

Jul 9, 2010

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?

View 1 Replies View Related

General :: What Is Tpurpose Of Preserving Timestamps?

Mar 31, 2011

I could understand the idea of security "if I haven't touched the file in 9 days, and the timestamp was changed, I know someone was in my system". But, is there any other purpose for preserving timestamps?

View 3 Replies View Related

General :: Copy Some Files To A Dvd?

May 24, 2010

I'm trying to copy some files to a dvd. and i was wondering is the tar command the correct command or is there a better way.

View 1 Replies View Related

General :: How To Backup Server For Preserving Data

Nov 10, 2010

How to backup my Linux server for preserving data in case if hard disk crashes?

View 2 Replies View Related

General :: Preserving Last Read Value In Shell Script?

Feb 16, 2011

Here are the contents of the file

1600
1900
2200
2800

I want to read file content using shell script and check if the difference between the two line count is 300

View 5 Replies View Related

General :: Ubuntu - How To Copy Files To /var/www

Aug 24, 2010

I'm trying to copy files to the /var/www folder on Ubuntu 10.04. But I think I don't hava the permission. How can I do this? Maybe I have to set the rights permissions.

View 3 Replies View Related

General :: How To Copy Only Modified Files

Sep 2, 2010

Possible Duplicate: Linux equivalent to robocopy? I have two websites - one is basically a development version and the other is a production version of the same site. So I'd like to be able to merge the changes made to the development site based on the modified date of the files. Is this possible with the 'cp' command?

View 2 Replies View Related

General :: Copy All Files Except From Some Certain Folders?

Jan 19, 2010

At the moment I'm using:"cp -ap . /destination-folder"to copy everything from the folder I'm in to another folder.That works.Is it possible to cp everything except:folder1/folder2/in the current folder I'm in?

View 2 Replies View Related

General :: Copy Files Less Than 7 Days Old?

May 6, 2011

I have searched for a way to copy file less than X days old and I found this:http://www.howtogeek.com/howto/ubunt...days-on-linux/ The syntax for deleting files less than 7 days old would be like this:find /path/to/files* -mtime -7 -exec rm {} ;I would like to copy the files to mntas, and I'm not sure what the syntax should be.ould this work?find /path/to/files* -mtime -7 -exec cp {} mnt
as ;

View 3 Replies View Related

General :: Copy Files From A Partition To Another?

Dec 10, 2010

Now I have learned creating partition in linux (ubuntu), well that's an achievement for a newbie. The next thing that I want to know is, how can I copy the contents of a partition to another partition. Like if I want to backup its content to a new partition that Im going to create.

View 11 Replies View Related

General :: Copy Files From Directory ?

Dec 22, 2009

I have four directories and i want to copy only the files in the directory to a single directory, how can i do it with the cp command.

The directories names are dir1, dir2, dir3 and dir4 and i want only the files from these directories to a single directory called mainDir.

View 3 Replies View Related

General :: Copy Files From Vmware To Pc?

Jun 20, 2011

iam using vmware on windows xp how can i copy files from vmware to pc.

View 8 Replies View Related

General :: Encrypt An Existing Partition While Preserving Its Data?

Nov 30, 2010

If I have a partition like /dev/hd1 that is unencrypted and want it to be encrypted, but want to keep everything currently in that partition, how can I do that?

View 2 Replies View Related

General :: Which Format Should Be Used To Archive Videos While Preserving Quality?

Feb 11, 2011

I'm searching for a tutorial on how to convert my videos (AVI, WMV and MKV formats) to a format that offers both good quality and small size.The audio part should be 128 kbit/s mp3 lame.I'm using Fedora 14 with an rpmfusion repo. It would be especially nice to be able to batch-convert the AVIs.

View 1 Replies View Related

General :: Copy Files Using Xargs From A Folder To Another?

Jun 10, 2009

I'm trying to copy a list of files except the files which has ".log" in the filename to another folder.I can run it correctly when I am located in the Source folder, but not when I am in any other location.cd /home/me/Sourcels /home/me/Source -1|grep -v "^.*log$" |xargs -n 1 -iHERE cp -r HERE /home/me/DestinationHow can I indicate both Source and Destination Folder?

View 2 Replies View Related

General :: Copy Mutiple Files Over Scp In One Command?

Mar 4, 2010

I have to transport a lot of files from one pc to another (both Linux). I would like to use scp for that, but scp only allows for transferring one file at a time. How can I do this?

I have No possibility to use rsync or any other protocol No possibility to use passphrase free certificates (but have a certificate with a passphrase) A list of files to transfer and a list with the destination path of the files on the other server The files are spread out over a lot of directories, and not all the files in the directories I want to copy If possible I would like to gzip and ungzip transparently to save bandwidth!

View 3 Replies View Related

General :: How To Only Copy Executable Files (or Without Extension)

May 9, 2011

Suppose there is a directory named mydir containing ...
aaa.cpp
aaa.h
bbb.cpp
bbb.h
Makefile
a
b
Where a,b are executable files. What I want to is to only copy a and b to another location. Is it possible? (other than by manually issuing copy a,b another_dir).

View 2 Replies View Related

General :: Copy All Files Matching Pattern From SRC To DST

Jul 19, 2011

If I wanted to copy all *.so files from src to dst I'd do:
cp src/*.so dst
However, I want to copy all *.so files from src and it's subdirs into dst.

View 2 Replies View Related







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