The tag has no usage guidance.

learn more… | top users | synonyms

2
votes
3answers
683 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?
0
votes
1answer
2k views

Windows ACL during explorer copy

I need to prevent the acl subtitution during folder copy and I don't know how to do. I have two repositories, the source and the destination with different acl. Users have to copy (with windows's file ...
-1
votes
1answer
49 views

copy speed to server with multiple clients

I got a file server that is connected via an HP switch to multiple clients. The clients are mapping network drives of shared folder on the server and copy files from an external e-sata drive to the ...
0
votes
1answer
1k views

Using RoboCopy on multiple destinations with monitor option

I am trying to copy a shared folder which its content (folders and files) are created by a third party app at no specified intervals. I need to copy these files onto two different server shares. The ...
1
vote
1answer
2k 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).
0
votes
4answers
2k views

Copy files from one server to another with same permissions

Im migrating to new server and i need to move few websites but i need to have same read/write permissions to new serves as they were on old server. I don't need to keep group and owner id's same but ...
1
vote
1answer
3k views

Robocopy won't copy from root folder

I'm having trouble with robocopy. It won't copy from "X:\files\". It just kills the batch file without writing anything to log, but it WILL copy from "X:\files\other files". Where "other files" is ...
2
votes
1answer
7k views

Robocopy uses relative path for Source and Destination paths

I'm trying to use RoboCopy in my TFS Build Template to copy some files, but for some reason it inserts "C:\Windows\system32" in front of my Source and Destination paths, even though I am passing in ...
2
votes
2answers
282 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
5k 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
767 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
961 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
1k 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
839 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
463 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
3k 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/* user@...
4
votes
1answer
401 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
114 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
356 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
226 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
734 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
683 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
519 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?
7
votes
7answers
16k 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
90 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
6k 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
19k 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
48 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
256 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
563 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
4k 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
721 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
741 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 0....
22
votes
6answers
13k 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
486 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 output....
1
vote
2answers
288 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
250 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 ...