Skip to main content

Questions tagged [file-copy]

Questions regarding copying files from one place to another

Filter by
Sorted by
Tagged with
0 votes
1 answer
59 views

How to copy file in two places at once?

I have two external HDDs with enough space to accommodate a 2TB device file. I never tried to copy a file in two places simultaneously... I have a very fast NVMe disk drive and want to make a backup ...
Vlastimil Burián's user avatar
1 vote
0 answers
66 views

Progress bar shows no progress until done copying file

I need some guidance. The progress bar does not move at all in the file managers on my Arch Linux system. It stays at zero until the copy has finished. I have tried Nautilus, Nemo, and Thunar, and ...
Joe's user avatar
  • 111
0 votes
0 answers
16 views

Why is the system file count different than the number of files uploaded by filezilla

I recently signed Google Drive's 2TB plan to put my backups. Then the process of choosing the best method to upload my files began. After many tries and errors and 3 1/2 days of uploading files (see ...
Nelson Teixeira's user avatar
0 votes
3 answers
161 views

Is there any way to upload large amounts of files to Google Drive with a decent speed besides Filezilla Pro and RClone?

I signed for Google Drive's Premium 2TB plan for my backups and needed a way to send more than 1 million+ of files there. Web interface is very problematic for this purpose as if the transfer has any ...
Nelson Teixeira's user avatar
0 votes
3 answers
65 views

Keeping owners in a folder copy

I'm trying to copy a folder (SRC) containing some files and subfolders. The content and SRC itself have setgid bit enabled (that is the s in place of the x in the group triplet). Furthermore, the ...
user9952796's user avatar
1 vote
1 answer
35 views

Retrieve large number of files from remote server with wildcards

I'm trying to download a large number of files from a remote server. Part of the path is known, but there's a folder name that's randomly generated, so I think I have to use wildcards. The path is ...
Mauricio Chavarriaga's user avatar
0 votes
1 answer
58 views

How to quickly find the largest files/dirs that differ between two directories that should be identical on Linux?

I'm trying to synchronize two hard drives. I thought most people who don't want to lose any data and don't use RAID would use such a method so that there would be a well-working GUI. That doesn't seem ...
mYnDstrEAm's user avatar
  • 4,398
0 votes
0 answers
52 views

Copying symlinks as symlinks

I’m attempting to copy a symlink of a file in one directory to another directory. I need the copy to be a symlink, not a hard link or a broken symlink. cp -A and cp -P generated broken (flashing) ...
TheorVHP's user avatar
-1 votes
1 answer
125 views

Files size changed after copying them between external hard drives

I just copied ~120G worth of data from one hard drive to another one (I have both mounted at the same time while copying the files). But what caught my attention was that some files are taking more ...
Giovanni Rescia's user avatar
0 votes
0 answers
45 views

Copy/Clone one USB stick to another with different size and format

I need to upgrade a USB stick I am using as it has become too small (16 GB) and the new stick is 64 GB which is too large, requires NTFS format. I have used this to reformat the new stick: sudo ...
RDK's user avatar
  • 23
0 votes
0 answers
34 views

copy file owned by another user to my account

I have two accounts, dnc1 and dnc2, both are not root accounts. I want to login dnc1 account and copy a file owned dnc2 to dnc1 directory. The file mode is 644 and the folder containing it is 755. So ...
alancc's user avatar
  • 213
3 votes
2 answers
176 views

How to merge contents of two directories, skipping folder names that match?

I have a portable disk with contents like this: /media/usb1/CBCradio3/1.wav /media/usb1/CBCradio3/2.wav /media/usb1/CBCradio3/3.wav /media/usb1/CBCradio3/4.wav /media/usb1/podcasts/1.wav /media/usb1/...
Village's user avatar
  • 3,717
3 votes
0 answers
94 views

Copying files from Linux to external USB hard drive - Speed reduces to almost zero

I am a user of Ubuntu, Kali and lately Parrot for approximately the past 10-15 years (notebook, private use). Every now and then there are small problems to solve, but in general, everything works as ...
Green's user avatar
  • 51
0 votes
1 answer
53 views

What backend does the Xfce file manager Thunar use when copying files?

Which utility does Thunar use when copying files? Rsync, cp? How can I find out?
PetaspeedBeaver's user avatar
0 votes
1 answer
78 views

Permission Issue - Granting access to copy files with root ownership

I have several files that are owned by root that I want to backup, using another user. I do not want to give this user access to all of root, just these particular directories and files. Like /etc/...
sroth79's user avatar
2 votes
1 answer
175 views

rsync --recursive --ignore-existing: what (if any) additional flags are needed to resume/repair/overwrite any partially copied files?

Assume an rsync --recursive --ignore-existing foo bar copy command was being run for a large directory tree named foo, but that that command got prematurely interrupted. For example, because of a ...
Will's user avatar
  • 125
2 votes
0 answers
45 views

Can rsync copy all files (including special ones like soft and hard links) from a ntfs partition to another one?

To make backups for my computer, I installed Xubuntu on an external hard disk to boot from and create images in another partition on the external hard disk. This also ensures that the file systems of ...
Adalbert Hanßen's user avatar
0 votes
0 answers
25 views

Unable to force copy multiple files using single command non-interactively

I wish to force copy a set of files having either the same or different names to a single destination on the same host with a single command onn Solaris. Note: the copy should be forced overrite and ...
Ashar's user avatar
  • 511
0 votes
0 answers
123 views

cp command not copying file content?

I'm trying to copy a folder with files from a mounted volume to another mounted volume with a simple cp command. The source folder Test only contains one 20MB .mp4 file. cp -v -r -a /media/Online/...
jotamam's user avatar
1 vote
1 answer
37 views

Would the `install` command help me merge a build directory into the root filesystem?

I have successfully built a project from source and would like to use it. For various reasons I do not have a simple make install command available but I noticed that the sufficient portion of the ...
natevw's user avatar
  • 184
0 votes
1 answer
32 views

fixing metadata if destination file is younger than source file

I guess the question first has to learn from your comments, before it grows into a grown-up question. Here is the tricky situation: I have a folder destination with many files (pdfs), that, ...
ingli's user avatar
  • 1,889
0 votes
0 answers
21 views

How to copy terminal output to a file without using mouse [duplicate]

Say I have a bunch of text in the terminal. I can use my mouse/cursor to copy to clipboard but is there a way to copy the last X lines from the terminal to a separate file using a terminal command?
Alexander Mills's user avatar
0 votes
0 answers
40 views

Copy new files (or their hard links) to new location with other folder structure and with new name

I hope someone can advise me on a very tedious, repeating task. My university uses Moodle as its eLearning and file exchanging platform. So every now and then our tutors upload new files, that I have ...
lumanet's user avatar
0 votes
1 answer
116 views

find & cp command doesn't copy 1st level directory

I have a directory structure like this: test folders ├── 1 │   ├── 1-1 │   ├── 1-2 │   └── 1-3 ├── 2 │   ├── 2-1 │   ├── 2-2 │   └── 2-3 ├── 3 │   ├── 3-1 │   ├── 3-2 │   └── 3-3 └── 4 ├── 4-1 ...
anmac1789's user avatar
3 votes
1 answer
119 views

Hard link as destination of cp and rsync

Where do I find documentation of behavior of cp and rsync commands when the destination path shares the inode with another path? In other words, when I do $ cp [options] src dest $ rsync [options] src ...
norio's user avatar
  • 225
2 votes
0 answers
78 views

How to make copied files respect ACL settings?

Say I open in a PDF file with permissions 600 in a graphical application. I want to "save as" it in a folder with ACL settings as follows: $ getfacl . # file: . # owner: doron # group: ...
Doron Behar's user avatar
0 votes
0 answers
115 views

Periodic 10 second pauses/freezes every 15 seconds when copying files on all(!) LUKS encrypted ext4 hard drives (NVMe not affected)

I copied a 10TB file from a LVM on LUKS encrypted ext4 drive to another identically set up drive and noticed that the copy process goes for 15 seconds at full speed (~220MB/s), then pauses for 10 ...
tanja94's user avatar
  • 33
-2 votes
3 answers
2k views

Transfer files from windows to Kali linux

hello there I have set up a Linux virtual machine installed on my pc from Microsoft store up and running with windows also installed on the same pc. I cannot access files in the windows directory and ...
Kiruthick's user avatar
0 votes
1 answer
97 views

cp AND rsync exclude all files of all types from all subdirectories, only keep directories [duplicate]

when using find . -type d it excludes all files whether in parent directory or in subfolders from the search. I want to extend this into a -exec cp -p or rsync "{}" destination \; so that ...
anmac1789's user avatar
1 vote
2 answers
508 views

How to break syslog into smaller files without losing data

Here we try to break syslog file into smaller chunks. For that we use following script. #!/bin/bash date=$(date +%Y%m%d_%H%M) cp /path/to/sys.log /path/to/chuck/file.log cat /dev/null > /path/to/...
Sachith Muhandiram's user avatar
-4 votes
1 answer
95 views

copy multiple directories in multiple directories without loop [duplicate]

I want to copy directories from one variable to directories from another one but without loop. from="fromdir1 fromdir2" to="todir1 todir2" I mean fromdir1 to todir1, fromdir2 to ...
trilisser's user avatar
  • 103
0 votes
1 answer
184 views

Copy new files from NAS to External Hard Drive with rsync

I want to copy new files from my NAS to my external hard drive. I did copy the new files manually up to this point. Now I want to use a script to automate this for me. However everything I tried so ...
dehlen's user avatar
  • 103
10 votes
5 answers
1k views

Copy file along with creating directory

I have a file in a directory as /a/b/c/xxxxx.sql I have another directory, /a/b/d, having no further subdirectories. How should I copy xxxxx.sql into /a/b/d, to have the new file with directory as /a/...
Siddharth Somani's user avatar
0 votes
0 answers
5k views

How to solve the error "cp: cannot create regular file : No such file or directory" in centos7

I tried to copy my WRF output files to the /run/media/maslab-3/exthdd/ directory where my 8 TB external HDD is mounted. But, it is not copying; rather, the following error is throwing: cp: cannot ...
Ankan's user avatar
  • 1
0 votes
1 answer
1k views

How to recursively create .sha256 hash files for every file in a folder?

Example I have these files /sdcard/testfolder/file1 /sdcard/testfolder/file2 /sdcard/testfolder/file3 /sdcard/testfolder/file4.ext I would like to create .sha256 files for each /sdcard/testfolder/...
Shodan's user avatar
  • 101
0 votes
0 answers
78 views

Slow copy speeds from SD card to SSD?

I have a Debian (with kernel 5.10.110 #178) on aarch64 architecture. I'm trying to copy an SD card (SanDisk Extreme, microSD XC UHS-I V30, 64GB) to an SSD (Intel Optane, 16GB). Based on the Sandisk's ...
Daniel's user avatar
  • 339
0 votes
0 answers
437 views

Copying all files and folders of a directory using tar

I am trying to copy my files from ssd to external hdd using linux live boot. The command I'm writing is: root@ubuntu:/media/ubuntu/4bd92f4b-6b48-4f4a-83ad-9d82d3be488b/home/pegasus# tar cf - Downloads ...
Zeshan Ahmed Nobin's user avatar
0 votes
2 answers
76 views

Methodology to copy data from one machine to many others in a fast way

I found some bottleneck on my workflow which is as follows. I do have one master computer which needs to send data to other node machines. This is done in a for loop such as: for all nodes: rsync <...
Tobi's user avatar
  • 155
0 votes
1 answer
104 views

How to Tranfser huge amount of Files to slow USB Drive (dd, cp, rsync, 7z, tar)

I have like 5GB of data and a very slow USB-Drive. Should I use dd, cp or rsync? Should I compress them first into for example 7z / tar or not? In short: What is the best way and the best practices ...
Bog's user avatar
  • 1,034
0 votes
2 answers
217 views

Does Unix SCP command continues to copy files althouth the response code is > 0

There was a case where an scp command returned response code > 0 but the files where successfully copied and finally loaded in a db which means that they were not corrupted. Does Unix SCP command ...
isin's user avatar
  • 1
-1 votes
1 answer
53 views

REQUEST: Appending {number} to end of file upon transfer

I have thousands of directories, within each directory is a subdirectory with a file called file.jpg. Since each subdirectory has a file called file.jpg I cannot transfer all those files into the same ...
linuxuser24569's user avatar
1 vote
1 answer
849 views

How to enabling big_writes option during mounting of ntfs drives in kubuntu 22.10

During copying of big files i am suffering from high cpu usage. I read multiple linux forums saying adding big_writes flag during mount of ntfs drives results is less cpu usage. Below is my ...
michael101's user avatar
1 vote
1 answer
540 views

SCP not working with RegEx

I've been trying to copy some remote files to localhost using regex expression, but it reads the regex as if it would be a regular string and does not find any files matching that. Any ideas why? file-...
Florin200217's user avatar
2 votes
1 answer
2k views

why is NFS copy speed half that of SSH scp?

RHEL 7.9 x86-64 high end dell servers with Xeon cpu's, 512gb ram, intel nic card I am the only user on the server(s), and there is no other work load on them cisco 1gbps wired LAN data.tar is ~ 50 gb /...
ron's user avatar
  • 7,264
2 votes
0 answers
1k views

Diagnosing slow sshfs transfer speeds (as compared to http)

I've been trying to set up a way to transfer a reasonable amount of data between two servers (remote and local, both running ubuntu server), including some backups (zipped), pictures, home movies, ...
daniel's user avatar
  • 21
0 votes
1 answer
102 views

File bytes was increased after copying files from centos to centos server

I copied files from one server to another server using rsync. The folder file byte size, as measured with du -sb <folder>, increased from 31,755,289,904 bytes to 31,755,505,579. I'm not sure how ...
Hari's user avatar
  • 1
0 votes
1 answer
648 views

Change owning user and group on file creation

I have an issue where I want to connect a very old system (UNIX) to a new machine. This old machine logs in by scp using a hardcoded oldsystemaccess user and copies a file into a subdirectory of the ...
siryx's user avatar
  • 95
0 votes
2 answers
21 views

Device name changes without any indication resulted of massive data copying

I have Linux machine with two external ntfs-formatted hard drives. One of the drives contains data, the other one is supposed to be a back-up. I run Rsync to copy data from the first drive to the ...
S. N.'s user avatar
  • 297
1 vote
1 answer
217 views

Instantly copy files from one location to the other

I have a situation where there are few autosys jobs monitoring the files and then based on the file availability its triggering the dependent jobs. What I am looking for: As soon as a file arrives ...
Sachin khot's user avatar
0 votes
1 answer
61 views

Why did rsync hose my root file system when trying to merge in drivers?

On a computer I've been working on trying to get going for a LONG time now and still have not completely managed to do so, I tried the following, based on a suggestion from here: How to copy-merge two ...
The_Sympathizer's user avatar

1
2 3 4 5
14