Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [copy]

Duplicating a thing to make two similar things.

-1
votes
0answers
24 views

How to full copy an Windows folder [on hold]

I have a question about cmd - robocopy, on my server. Is it possible to use that command as a way to emergency backup all files from C:\Windows? I am going to do some Windows Server Updates, and I ...
2
votes
0answers
34 views

Copy large amount of file - better to “pull” or to “push”?

I need to copy a large amount from "old" server to "new" server. Both servers are Windows Servers Is there a difference if I go onto old server, access new server by unc path and "push" files onto ...
2
votes
1answer
39 views

ROBOCOPY: Copy all subfolders+content without the content of the root directory

I'm trying to copy all subfolders with their content of a specific folder but I don't want to copy the files in the root folder. For example, if my folder look like: - root - file.txt - sub1 -...
5
votes
2answers
251 views

any issues with file-copy Git Repo to another machine (and keep working from both)?

I want to copy all my git repos from my old machine to my new machine (both Ubuntu). I will keep using both machines... I am doing this primarily out of laziness (well: there are for some local ...
0
votes
0answers
85 views

Performance Issues Copying Files Over Network - Command Line/C#

We've been having some issues lately copying files from one Windows server to another (I'll refer to them as Server A and Server B) where the copy speeds are extremely slow when using any copy methods ...
1
vote
0answers
21 views

Duplicate user with all applications and settings - Windows Server 2012 R2

We are logging in to our Server with Remote Desktop (don't ask me why...we have our reasons...;-). Each time a new employee starts I have been re-installing applications and setting etc for them on ...
0
votes
1answer
56 views

Migrate over 1 million file with ~150 GB from 1 server to another

Tell me Guys, how would you transfer more than one million files, witch have a summarized size of about 150 GB from A servers (KVM) VM to another (let's call it B, XenCenter) servers other VM in ...
6
votes
4answers
453 views

Rsync huge dataset of small files 5TB, +M small files

I encountered a situation where an app server misconfig led to creation of around 5TB datasets where each dir contains huge number of small files. We are in the process of transferring the files and ...
1
vote
6answers
117 views

What is fastest way to regularly backup large data files on weekly basis

We have automated script to backup a 200 GB data files to a local disk. the script shutdown the database , tar and compress the entire directory locally on the disk, then start the database tar -...
4
votes
0answers
162 views

Copy nginx cache between two servers

I have a nginx caching server with at least 2tb of cache files at any moment, i need to migrate this server to another hosting provider but none of my clients can handle that traffic without cache. ...
0
votes
0answers
629 views

powershell copy-item public desktop access denied

Below is the powershell script I am running, I am a local administrator on the workstations in the PClist.txt and I have the modify right on the share location. When I run it I get the following error:...
0
votes
1answer
263 views

Copy-paste heredocument into Bash converts tabs into dots

I use Windows 10 home (build 16299.248) and I'm SSHing into a remote Ubuntu 16.04 machine with various SSH clients (like Putty/MobaXterm). I copy-paste the following code from my personal GitHub ...
2
votes
1answer
772 views

Copy/paste disabled after running remote desktop in windows7

I have 64bit windows 7. When I run remote desktop to another server or computer, copy/paste disabled on whole of my PC! I enabled copy/paste option on remote desktop, but it is not working. I can not ...
3
votes
1answer
3k views

Cannot cancel copy task in ESXi Web interface

I started copying a file from one datastore to another using the ESXi Web interface (version 6.5.0 Update 1 (Build 6765664)) and has been going on for half a day. I want to gracefully stop the copying ...
0
votes
0answers
67 views

Data Transfer Pauses on LSI 9271 RAID Controller

I have a server equipped with a LSI 9271-8i RAID controller, with 4 x 4TB organized as RAID-5 and 1 x 8TB as JBOD (which is called RAID-0 in the controller). When I copy bigger amounts of data (~1 TB)...
0
votes
2answers
231 views

what is the best approach to copy /var content

we have linux redhar 7 we want to keep the /var on other volume so the plan is to: mkdir /var_copy cp -rp /var/* /var_copy umount /dev/mapper/vg-a-var /var rm -rf /var mkdir /var mount /dev/mapper/...
1
vote
4answers
998 views

copy large number of files over ssh

I mount a remote server over ssh (using sshfs). I want to copy a large number of files from the remote server to local: cp -rnv /mounted_path/source/* /local_path/destination The command runs ...
0
votes
1answer
345 views

Prevent users copy files to C drive

I'm working on a VM-based desktop solution, and one of the requirements is to restrict normal users from running specific programmes, such as putty. I've explored the GPO methods -- "blacklist" mode ...
0
votes
2answers
940 views

GPO copy file task does not work into roaming folder

We created a GPO task to copy a file from our share(\\SRV01\Datastore\Team\Shared\TEST_Addin.xlam) to the user's roaming folder (%AppData%\Microsoft\AddIns\TEST_Addin.xlam). On this shared location ...
0
votes
1answer
340 views

Copy files from /var/www/html while they are used by nginx

I have a lot of data in /var/www/html. It's more than 2GB. Now I have the possibility to host the website on the host (nginx is using /var/www/html) or I can use docker. For the user of docker I am ...
0
votes
1answer
64 views

Migrate dedicated Windows server byte to byte

I have remote dedicated Windows Server hosted on Hetzner Online. I need to migrate the box as-is to the new dedicated server, while I will have access to both. I do not have BIOS access, but I can ...
1
vote
1answer
93 views

Need to copy files where source files are in directories but want target files to land in single directory

I have been asked to see if I can copy many files from a source that has directories and sub directories and for the taget to be a single directory. All files to one directory. If there happens to be ...
1
vote
2answers
1k views

Copy file to different name in same directory in all subdirectories

As different apps require different file names, I have been trying to copy Folder.jpg to cover.jpg in all subfolders but couldn't get my shellscript to work. get-childItem -recurse | Where {$_....
0
votes
1answer
1k views

forfiles how to move a directory to another directory

I'm trying to move a directory which certain date parameter to another directory.. This is the command I'm using: FORFILES -p C:\test1\ /S /D -3 /C "cmd /c if @isdir == TRUE move C:\test2\" I want ...
1
vote
1answer
2k views

Robocopy Delta Copy over network

We manage a client site that has a file & print server on-site and our intention is to move their files / data to a centralised server at our data center. As the client has a very slow internet ...
0
votes
1answer
156 views

Active Directory User Copy within the same domain/forest

we have set up Active Directory Replication within the same domain/forest between two Windows Servers 2012. The Master Server, copies its contents to the secondary server. Unfortunately, for a number ...
3
votes
2answers
10k views

Copy directory contents with Ansible (without replace destination files)

There is a directory under /var/test1 with content: . .. .git .gitignore file1 file2 and I want to copy it on an other location /var/test2 with pre-existing content: . .. file1 If I use the ...
-1
votes
3answers
581 views

Copy a file with SCP on Ubuntu 14 with PEM key on both servers

I have 2 servers on Amazon AWS. I need to pass a file from A to B. Both servers have pem keys (different). I put the pem file of B on A (Is that correct?) Then tried to do from A: scp -i /tmp/B.pem ...
0
votes
1answer
1k views

Why robocopy with multi-treading copies faster

I have been using robocopy with the switch MT and really makes a difference in coping time. I would like to know why the CPU treads act as a bottle-neck while copying files or what makes robocopy ...
0
votes
1answer
98 views

rsync -a and -L conflict?

I'm working on multiple servers and need to copy a large amount of data from one (production) to another (staging). The source server (production) has a NAS for shared files, that are accessed via ...
0
votes
2answers
204 views

What is the most efficient way to transfer files from AWS S3 to S3?

I have a large number of files stored in an AWS S3 bucket. I need to get those files to another S3 bucket owned by another user and in a different region. The files are stored in different locations ...
1
vote
0answers
101 views

Can't import using COPY in cassandra [protocol error]

I am trying to import 209GB csv file into cassandra. But, I am getting below error, ErrorMessage code=000a [Protocol error] message="Cannot decode string as UTF8: '...
0
votes
0answers
927 views

Windows Server: file system limitation

We are developing an app for tablet which uploads and saves photos taken by the user. The problem we are suddenly meeting is that photos are not saved anymore in our directory in our Windows server ...
1
vote
3answers
591 views

Backing up MySQL MyISAM databases by copying the physical folders

I have a Windows Server 2008 R2 machine and on it I have 2 MySQL MyISAM databases. These databases are quite large as they are over 20GB in combined size. I update these databases once a week. (I ...
3
votes
1answer
2k views

Securely copy file from one Salt minion to another

How do I use Salt to securely copy a sensitive file (a cryptographic key) from one specific minion to another specific minion? I don't want any other minion to be able to read the file. Salt Mine? ...
1
vote
1answer
42 views

Log backup clashes with log rotation

On my servers I have log rotation and a backup script which, besides all, backs up the entire log directory. For log rotation I use logroatate on Linux and newsyslog is used on BSD. For log backup I ...
1
vote
1answer
130 views

Is it possible to run the Cisco NX-OS 6.x copy command without the prompt to select a VRF?

I am currently working with a network scanning tool that logs into Cisco routers and runs commands on those routers. The problem I'm encountering has to do with what the copy command expects. The copy ...
0
votes
2answers
411 views

Inotify/iwatch cannot see when more files created at the same time

I would need a script that can check files when they are getting uploaded/created on the server. I wrote the script that checks, but I would like to make it run when a create event happens. I tried ...
2
votes
2answers
5k views

VMware NIC Teaming - How to gain more than 1Gbit/s copy speed between two VMs?

I have a question about VMware and NIC Teaming. Here is my easy test scenario. I have two VMs. VM1 and VM2. I want to copy 1 big file from VM1 to VM2 because I want to see that I can gain more copy ...
0
votes
1answer
48 views

Backup old disk to external disk (new)

One of the 2 x 500GB drives on server is crashed can read but not write the data, which both are on Hardware RAID 0. So I connected an external 1TB new drive to backup the data and replace those 2 x ...
0
votes
1answer
381 views

Find the latest modified *.csv file and copy it into a different folder

My goal is to copy the latest file (based on modified date) in Windows to a different folder, and then rename the file to something different. My last line that is commented out was just a test to ...
0
votes
1answer
2k views

Copy multiple files from different folders to 1 folder

i'm looking for a sollution to copy multiple files from different folders to 1 folder. What I have is that I need to copy files from c:\Customers\folderA\folderB\files copy to e:\FolderB\files The ...
0
votes
1answer
745 views

Migrating bareos storage to another

We have a host A with bareos SD and the storage "backups". We want to migrate the data from host A to another storage (host B) temporarily. We have to reinstall the host A for performance reasons. ...
2
votes
1answer
4k views

Robocopy Overwite IDENTICAL files but Rename Similar Files

Run-down 1: We need to copy files from one folder into another folder - Folder A -> Folder B (while preserving subfolder structure) 2: Some of the files in Folder A are IDENTICAL to files in ...
1
vote
1answer
342 views

NetApp - Copy volume data to LUN on same filer

I'm trying to copy a volume /vol/Archive_chi to a LUN (LUN volume = /vol/ArchiveLUN_chi ; LUN = ArchiveLUN ; LUN PATH = /vol/ArchiveLUN_chi/ArchiveLUN). I tried ndmpcopy /vol/Archive_chi /vol/...
12
votes
6answers
35k views

How to fetch multiple files from remote machine to local with Ansible

I would like to copy files from remote directory to local directory with Ansible but fetch module allows me to copy only one file. I have many servers from which I need files (same directory each ...
0
votes
0answers
2k views

Active Directory Copy User and his password on another domain (and forest)

Is there a way (PowerShell would be nice) to copy a user (I need sAMAccountName) and his password, from one domainA (forestA) to domainB (forestB). All Active Directory servers are on LAN and this is ...
9
votes
1answer
8k views

What is fastest way to copy a sparse file? What method results in the smallest file?

BACKGROUND: I'm copying a sparse qcow2 VM image that is 200GB in size, but has 16GB of allocated blocks. I've tried various methods to copy this sparse file within the same server and have some ...
0
votes
1answer
129 views

Apache: Copy all mp3 files from subfolders into another folder [closed]

I have a files folder with many subfolders (MediaWiki). Some of these contain mp3 files. I want them all copied into another folder (without subfolders). How could I do that? Apache 2, Ubuntu 12
-1
votes
1answer
149 views

Bash shell copy files on the hidden directory [closed]

Need help with Unix script. how do you use /bin/cp to copy files from /somepath/somedir/somewhere/.temp_folder to /somepath/somedir/somewhere/ my line /bin/cp -r somepath/somedir/somewhere/.[!.]* ...