Duplicating a thing to make two similar things.
Questions tagged [copy]
252 questions
4
votes
2 answers
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 Ansible copy:
- copy:
# note the trailing `/` at `src:…

tvl
- 369
- 3
- 4
- 10
4
votes
1 answer
Copying files from local server to remote server using powershell
Apologies if this has already answered directly or indirectly in SF.
My requirement will be as follows:
Move a deployment folder that has got files and subdirectories to a remote sever.
Pass credentials that will be required for the remote…

Ajov Crowe
- 133
- 1
- 5
- 12
4
votes
1 answer
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 absolute paths. I know that the robocopy.exe is…

deadlydog
- 388
- 1
- 5
- 10
4
votes
1 answer
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 ~/remotedir/foo ~/remotedir/some/weird/path/bar
Does…

Elton Carvalho
- 155
- 6
4
votes
2 answers
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.0 3:23.83 cp -i -r 165 178 temp
Why does…

Boaz
- 2,229
- 5
- 20
- 15
4
votes
2 answers
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 Powershell?
I am using this code:
$dir_source =…

peterk411
- 178
- 1
- 8
4
votes
7 answers
Network File Synchronization Tools
We need to keep a set of files on multiple servers synchronized. This seems like a simple problem, but I'm not a full-time system administrator, and while I've found a simple solution, it's not very robust.
We have an application that we serve to…

Bernard Dy
- 262
- 5
- 11
4
votes
2 answers
Move a Database that is in restore mode
I have a database which is the recipient of a logshipping process.
The database is in 'restoring'. Is it possible to move this database?
EDIT
Just to clarify what I meant by move. I mean to make a copy of the database and transfer it to another…

Nai
- 743
- 1
- 6
- 24
4
votes
4 answers
Windows: How to start a file copy job on a remote server without passing through the network?
I'd like to copy a large file on a remote computer, to the same remote computer, without going through the network.
The computer on which the files to be copied are is running Windows Server 2003.
Anyone knows how to do that?

leo
- 143
- 1
- 6
4
votes
1 answer
How do I copy/paste to a VM console window in the VMware ESXi HTML interface?
I have an Ubuntu VM in an instance of VMware ESXi 6.7.0. I am using Chrome to access the VM console in the HTML interface of VMware ESXi. (I do not have SSH access to the VM.)
I would like to copy/paste from my Windows PC to the VM console window. I…

pacoverflow
- 261
- 2
- 3
- 17
3
votes
0 answers
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 new server vs. going onto "new" server and then…

Volker
- 131
- 2
3
votes
1 answer
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 copy/paste between remote machine and my PC and I…

maheno
- 31
- 2
3
votes
5 answers
What is the most efficient way to push out/publish large sets files over a network?
Here's my scenario:
We have a need to push out a set of files (a 'workspace') from a source server to multiple destination servers. The files are kept under version control (SVN) so the first step is to export the latest version of the repository to…

AR.
- 165
- 1
- 2
- 6
3
votes
1 answer
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?
The Salt Mine seems to be a logical place to start,…

Richard Hansen
- 3,870
- 1
- 19
- 17
3
votes
2 answers
How to run multiple commands with psexec?
I need to run a command to uninstall forefront on some of our workstations and am having a bit of trouble formatting the command.
Here's what needs to happen (in multiple commands)
xcopy \\serverpath\Installer.exe C:\Windows
Install.exe /u /s
Del…

seffland
- 31
- 1
- 1
- 5