The tag has no usage guidance.

learn more… | top users | synonyms

2
votes
2answers
258 views

Copy entire filesystem in a folder where a raid-1 array is mounted

I am trying to migrate from a single disk drive system to a double disk drive software raid-1 system that already has a running system on it. Meaning that formatting and having a new installation of ...
1
vote
2answers
4k views

Linux Shell - How to copy directory without symlink

I would like to get everything inside one directory. How can I copy entire directory (that originally contains files and symlinks) to a new directory that should contains all files but no symlink?? ...
2
votes
2answers
668 views

What's faster, cp -R or unpacking tar.gz files?

I have some tar.gz files that total many gigabytes on a CentOS system. Most of the tar.gz files are actually pretty small, but the ones with images are large. One is 7.7G, another is about 4G, and a ...
2
votes
1answer
829 views

Robocopy copies folders but not files

I'm using robocopy on a Windows Server 2008 R2 SP2 machine with the following options: robocopy W:\ E:\old_files\daten1\ /R:1 /W:1 /MIR /COPYALL /ZB /DCOPY:T /MT 50 /LOG:E:\old_files\copy_w.txt ...
1
vote
1answer
66 views

xfs incremental backup doesn't fit new disk

I have a 1TB xfs volumne on Amazon EBS, which contains 246GB of incremental backups, created with rsync and hardlinking. I want to copy this to a new, smaller disk. The problem is it doesn't seem to ...
1
vote
3answers
792 views

copy directory including 'base' folder

I need to copy folderA into folderB via the command line: c:\temp \folderA \folderB should become c:\temp \folderA \folderB\folderA That is, exactly the same ...
2
votes
4answers
814 views

What is the efficient way to backup large files?

I have the schedule job of backing large files in Windows Server and it takes almost 2 hours to finish. For now, I only use copy command in the .bat and copy the large files to another folder. I'm ...
0
votes
2answers
449 views

copy files with folders [closed]

The following scp is working as expected. scp /home/admin/* root@ec2-50-112-212-73:/ But I need a command that will create the required folder structure on destination server if it does not already ...
1
vote
2answers
2k views

RSYNC from remote to local excluding folders

How can I download from a remote server to local excluding folders or files? I have used something like this but the exclude doesn't work... rsync -avr -P -e ssh --exclude=/path/to/exclude/* ...
4
votes
1answer
379 views

How do remote filesystems (nfs ssfhs) handle remote-to-remote copies?

After working with a few large files over sshfs, one question started dwelling in my mind. Suppose I have a sshfs (or NFS for that matter) mount on ~/remodetir and I want to do something like cp ...
3
votes
2answers
1k 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
113 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
324 views

How create ghost images and copy to many drives [closed]

I am looking for the cleanest and most reliable solution to create ghost images of a windows 7 based machine and copy these images to multiple hard drives. I am looking for the software needed to ...
0
votes
2answers
220 views

Moving Large Files Between Servers

I NEVER have to do this. But I know its a common problem. Yet, I'm not sure how to tackle it. I have a server (Windows Server 2008) that I access remotely. This server is NOT on the same domain as my ...
5
votes
2answers
673 views

Best way to transfer files from one server to another using a third server

Here's the scenario: ssh +------------+ +---->| Server 2 | +------------+ | +------------+ | Server 1 +---+ +------------+ | +------------+ ...
-1
votes
2answers
611 views

copy file: Not a directory

I have a NAS mount, and I can copy file to this, but I can't copy files similar to this cp /home2/user/WRF/WRFV3/run/*_2 . -v `/home2/user/WRF/WRFV3/run/wrfout_d04_2007-11-21_00:00:00_2' -> ...
2
votes
1answer
2k views

rsync not working - want to copy only certain subdirectories and files

Hi let's say I have a directory like this: / my_work /dir1 keepdir1.ddd keepdir2.ddd file.cfg (lots ...
0
votes
2answers
467 views

Copying Centos to another server

I just did a fresh install of centos and spent ages adding all my standard libraries. Is there a way I can easily take a copy of this build and deploy to another new server?
6
votes
7answers
15k views

Copying huge files between two remote machines - Efficiently

I have a shell script which keeps on copying huge files (2 GB to 5 GB) between remote systems. Key based authentication is used with agent-forwarding and everything works. For ex: Say the shell script ...
0
votes
2answers
1k 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 ...
1
vote
1answer
89 views

Windows secure file copy

I'd like to setup a secure file copy to some of my servers. A particular login (not Active Directory or Windows login) would have access to a starting point (e.g. c:\a\www) and then that login would ...
5
votes
4answers
5k 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* ...
5
votes
4answers
16k 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
0
votes
2answers
47 views

Database not browsable during COPY on PostgreSQL

When using COPY to restore a CSV file, phppgadmin shows that the real database size(4GB) but when I choose to browse the table it shows Estimated row count to 0. I did a VACUUM ANALYZE. simple SELECT ...
0
votes
1answer
240 views

ssl handshake failure with COPY on PostgreSQL

I'm restoring a CSV file to database with COPY command. The csv file is bziped. I use this command: bunzip2 -c -d online-20110923000001.csv.bz2 | psql -U user -h 127.0.0.1 -d testdb -c "COPY data ...
3
votes
2answers
1k views

Copy files from SVN server to external server via FTP

Currently I have about 5 servers, one I would like to use as a SVN server for development reasons, but I want it to be able to update the external server such as copying committed files to the ...
2
votes
2answers
529 views

Microsoft Terminal Server clipboard corruption

I've got a client running Terminal Server 2008 R2, connecting from Windows XP terminal services client (not sure of the local RDP version, I think they've got all their service packs though) and ...
6
votes
2answers
3k views

Fastest way to copy folder that contains many files via SSH

What is the best way to duplicate files on server via ssh? In my case: I'm talking about duplicating magento shop. (15000 files ~ 50MB) cp -a source destination Is taking hours... (in my case ...
0
votes
1answer
686 views

USB stick unmounts itself, becomes unavailable ?!

On Centos 6, I am trying to copy some files from a Fat32 stick. I do a "fdisk -l" then take that name and mount it with this command: mount /dev/sdb1 /mnt/usb I see the files there (I didnt count ...
3
votes
2answers
681 views

Copy whole files only

Is there any way to copy directory from one filesystem to another but remove the partial file in case we run out of disk space on target filesystem? I searched cp and rsync manuals but did not find ...
4
votes
2answers
1k 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 ...
16
votes
5answers
11k views

Rsync : copying over timestamps only

Currently I have two directories A/ and B/ which are identical in every respect, with the exception of the timestamps. Therefore if I run the command : rsync --dry-run -crvv A/ B/ then all files ...
0
votes
1answer
137 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
3k 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 ...
0
votes
2answers
2k views

Powershell Copy-Item fails silently

I have a PowerShell 2.0 script running on Windows Server 2008 R2 64bit that copies some Hyper-V .vhd files to another server as a 'backup solution'. The script gets a list of the .vhd's to copy then ...
1
vote
3answers
392 views

Best Practice: Copy a file at a certain time?

I've been wrangled into the world of Windows system administration. Coming from a Linux sysadmin background, I am looking for the best way to copy a file to a directory at a specific time. (Change ...
6
votes
2answers
2k 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 ...
3
votes
2answers
1k views

Raw copy with sector precision on windows

Is there some program for windows that is able to do what dd does in linux out of the box? I need to copy from a file to a physical disk in raw mode where I need to define offsets for input and ...
1
vote
2answers
272 views

Which is the most reliable means of copying archives using binary deltas across Windows SMB shares?

I've been searching for the quickest way to copy some WAR and JAR files for huge software deployments between Windows systems. Clearly, multithreaded robocopy or any rsync protocol implementation will ...
0
votes
5answers
237 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 ...
2
votes
1answer
1k views

Copying File into hidden folder

I'm attempting to copy a URL link for our companies library system onto all users workstation desktops. I've tried creating a shortcut via Group policy: User Configuration > Preferences > Windows ...
4
votes
2answers
4k views

Why does the .NET Folder.CopyHere Method not allow dialog suppression for .ZIP files when run within a SQL Server Agent PowerShell job step?

I am using PowerShell in a SQL Server Agent job step to automate the extraction of .ZIP file contents to a directory. Based upon highest-voted answer on this question: How to zip/unzip files in ...
0
votes
1answer
160 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
2k 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 ...
1
vote
2answers
568 views

ssh tar copying - missing files

On copying directory "home" (from remote machine) to local machine using the following command: ssh root@remote.machine 'tar -cz -C /home/*' | tar -zxv The number of files after the transaction ...
0
votes
3answers
3k views

copy and rename files

Here are my access logs those I want to backup. /var/log/httpd/access_log /var/log/httpd/access_log.1 /var/log/httpd/access_log.2 /var/log/httpd/access_log.3 ... I want to copy all these files but ...
1
vote
2answers
78 views

Batch file problems

I have created a batch file to copy and zip up an entire drive of data on my server. I have selected the D:\ drive to be copied and zipped. However, I have one problem. When I run the batch file, only ...
2
votes
4answers
2k views

Copy a SQL Server DB to an external HD

I found a lot of similar questions in the archives, but none quite answered this. I need to copy a database from one server (SQL Server 2008) to another. Each server is in its own system, and no ...
1
vote
1answer
540 views

ntfsclone reports “Can't read sector at 470585344, lost data”. How can I determine what file that is?

I used ntfsclone from ubuntu to copy a bad windows hard drive to a new one using: sudo ntfsclone --rescue -f --overwrite /dev/sda1 /dev/sdb1 which produces the following: WARNING: Can't read ...
3
votes
2answers
475 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 ...