0
votes
3answers
421 views

Sync directory across two servers using rsync (or alternative for syncing directories)

I have two VMs that should have identical files in this directory: /var/www/owncloud/data/admin/files/ I initially thought that I could use rsync with cron to copy the files every two minutes: On ...
0
votes
1answer
96 views

LVM2: How to copy snapshots?

I read What does an LVM2 Snapshot contain? and LVM Snapshot confusion. What I'm trying to figure out is if there is a way to create a copy of an LVM snapshot for use with different Xen VMs. I know ...
0
votes
2answers
57 views

Copy files from path to path same structure for each user

How to copy files from source /backup/cpbackup/daily/a1/public_html/index.html /backup/cpbackup/daily/b2/public_html/index.html /backup/cpbackup/daily/c3/public_html/index.html ...
0
votes
1answer
30 views

Can I copy root to the root of another computer? [closed]

On Linux, if I copy the root from linux machine #1 to a fresh install of linux on separate machine #2, will machine #2 contain the exact setup as #1? Or do I -have- to create images of the drive and ...
2
votes
3answers
285 views

Under Linux, how do I copy files from one filesystem to the other (both gpfs) and preserve hard links?

I have a directory with huge files and a number of directories, that have hardlinks on these huge files. How do I copy files from one filesystem to the other and preserve hard links?
1
vote
1answer
627 views

linux, only copy files before a certain date

Is there a command to only copy files before a certain date, say 20120901? Furthermore, I would like to do it with cp -p capability (e.g. the original timestamp is preserved).
3
votes
2answers
500 views

Remotely copying files from WebDAV server?

My iDisk is about to expire, and I can access it through the WebDAV protocol. I own my own server, and I know it's possible to access my iDisk through WebDAV. I was wondering how I would go about ...
0
votes
1answer
106 views

Copy directory to external from corrup driver

i need help critical, rifht now a HDD in my server its corrupt, need to force fsck over the partition (ext2 ubuntu 8.10), but I need to extrack files before the command for secure reasons.. I get ...
0
votes
2answers
639 views

Clone Flash Drive in Linux using DD

dd if=/dev/sda of=/dev/sdb I want to create a clone a bootable USB stick. lets say sda is 2GB sdb is 32GB. The above line will create a replica but the usable size will be 2GB. How can I use the ...
3
votes
4answers
1k views

Copy a range of files in command line (ZSH/BASH)

I have a list of files with consecutive numbers as suffixes. I would like to copy only a range of these files. How can I specify a range as part of my cp command. $ls P1080272.JPG* P1080273.JPG* ...
3
votes
4answers
8k views

Linux / mysql: is it safe to copy mysql db files with cp command from one db to another?

Most guides recommend mysqldump and simple SQL for copying one table to anoter db. How about linux shell cp? Can I just simply do cp /db1/mytable.frm /db2/mytable.frm
4
votes
2answers
664 views

Why does a CP command on linux consume CPU?

I just run a copy command for two large directories with a small number of huge files and I see my cp process is consuming around half a core in top: 51116 root 20 0 110m 876 688 D 43.9 ...
0
votes
1answer
125 views

How to use rsync to copy images and dir

I am in the middle of merging 2 directories into 1. /competitions/1 /competitions/2 /competitions/3 /gallery/1 /gallery/2 /gallery/3 I want to copy all the files in /competitions to /gallery and ...
0
votes
4answers
2k views

How to copy a file with filename “+” and rename it?

I have a file named +13x18_DSC_0800.JPG on a linux server (Please don't ask me how it got there as I have no idea how it got there). I wish to rename it to 13x18_DSC_0800.JPG. However I have not ...
6
votes
2answers
1k views

How to stop users from running CPU heavy programs on a server?

I have a 24 core server, which users connect to through SSH. It is not meant for them to run CPU heavy programs like MATLAB, R or their own scripts that perform simulations or things like that. Are ...
0
votes
5answers
179 views

search files based on text file containing list of files

I have a text file containing file names only (it does not contain their paths). I need to find these files which may lie in any of the subfolders and then copy or move them to other location. To find ...
0
votes
1answer
124 views

How to copy only a specific amount of file?

I have a directory with almost 100,000 files inside. I want to copy 20,000 of them to another directory. Is it possible to do this with the cp command or is there any other way?
2
votes
4answers
929 views

fastest way to mirror a directory containing millions of small files

I need to copy a 700G ISCSI mounted folder to a folder on the local hard drive, while maintaining the existing permissions and ownership. The data in the folder consists of about a million mostly ...
3
votes
2answers
400 views

Linux Server user copy

Is there a way to copy user list (with data and passwords) from one server to another. We have two servers and one of those is new. I need to create same users (that exist in /home/) and set same ...
2
votes
2answers
335 views

How to effeciently copy large amount of data dvd's to disk? [closed]

Anyone have an ideas on how to copy many dvd's to disk effeciently? Currently we are inserting each disk individually and copying them then un-mounting them, inserting the next disk and so on. ...
6
votes
4answers
3k views

How can I reduce resource usage when copying a large file?

I need to move a large file (corrupt MySQL table ~40GB) onto a seperate server in order to repair it. (When trying to repair on my production server, it quickly killed the server). In order to do ...
2
votes
3answers
1k views

How to make a byte for byte copy of a drive? [duplicate]

Possible Duplicate: Using DD for disk cloning What's the easiest and most reliable, risk free, way of making an exact copy of a hard drive? We have a drive that's been messed up by someone ...
0
votes
2answers
324 views

copy files created in one folder to multiple other folders on linux

I'm looking for a way to copy photos that are uploaded to one folder to many other folders and visa versa. Example: a photo is uploaded to folder 1, it is then copied to folders 2-5. And if a photo ...
2
votes
5answers
2k views

How do I copy a directory tree but not the files in Linux?

I want to copy about 200 directories & subdirectories from one location to another but I don't want to copy the thousands of files within those directories. I am on Linux. Note: I don't have ...
0
votes
3answers
3k views

SUDO permissions, file copy/chmod question?

So, I'm logged in as sudo, and seeing this... why? $ cd /var/www/drupal-6.19/sites/default $ ls default.settings.php $ sudo -v [sudo] password for sudo_username: $ cp default.settings.php ...
12
votes
4answers
12k views

How to copy file preserving directory path in Linux?

I have Eclipse projects and ".project" file in them, the directory structure looks like 'myProject/.project'. I want to copy these '.project' files to another directory, but I want the enclosing ...
0
votes
2answers
479 views

SMB extremely slow when rsync from NAS? [duplicate]

Possible Duplicate: Speeding up rsync over smb I started to rsync a mount smb share to a local raid partition yesterday evening. After 12 hours it has copied like 30% of 400 GB... the ...
1
vote
2answers
1k views

How to copy a LDAP entry and all the subtree on a Linux/openldap server?

I want to duplicate an LDAP subtree : my software uses ou=software,o=company,c=fr and I want to have version 2 of the software to use ou=software_v2,o=company,c=fr I tried JXplore to copy ...
2
votes
1answer
253 views

Short Image Copying USB drives on Linux

Is there an application that will do a short image copy of a USB drive to another USB drive? I need something that doesn't run off a live cd
7
votes
3answers
863 views

linux to linux, 10TB transfer?

I've looked at all the previous similar questions, but the answers seemed to be all over the place and no one was moving a lot of data (100GB != 10TB). I've got about 10TB that I need to move from ...
6
votes
2answers
11k views

Turning off cp (copy) command's interactive mode (cp : overwrite ?)

Does anyone know how I would turn off the interactive mode when using cp? I am trying to copy a directory recursively into another and for each file that is getting overwritten I have to answer 'y'. ...
0
votes
1answer
2k views

Copying directories with subdirectories from QNAP NAS to Synology NAS

I have a QNAP TS-239 Pro NAS server, from which I need to copy a large number of files (>2 TB) to a Synology 409 NAS. I could do it with a Windows computer, but would prefer to do it directly from ...
1
vote
1answer
549 views

Getting Linux copy to handle failing links

I just started using the nifty rsnapshot utility for backups to our NAS. I really like the tool (which uses rsync and links unchanged files to keep the backup size down), but I'm running into ...
8
votes
5answers
3k views

resume file copy linux

How do I resume a copy of a large file in linux? I have a huge file (serveral gigabyes) partially copied to a network drive, and it took a long time, and it was mostly done before the copy operation ...
0
votes
2answers
98 views

copying a file 2 connections away?

I dislike calling scp twice. I need to connect to box1 via ssh the again to boxNAME. How do i copy a file from boxNAME to my local drive? also how do i copy a file from my local drive back to ...
14
votes
7answers
37k views

How to cp file and create directory if not exists?

I want to copy modified files in a svn repository to another directory, while keep their directory structure. After reading awk and xargs manpage I find a way to get changed filenames like this: $ ...
1
vote
2answers
941 views

diff folders and copy results over

We use a third party newsletter system which updates frequently, usually around 100 files. Each time all the developers release is the whole application again with a changelog but there's usually too ...
9
votes
5answers
12k views

Recursively copying hidden files - Linux

Is there an easy way to recursively copy all hidden files in a directory to another directory? I would like to back up just all the settings files in a home directory, not the normal files. I tried: ...