Questions tagged [file-copy]
Questions regarding copying files from one place to another
701 questions
0
votes
2
answers
59
views
True USB Thumb Drive Write Progress (Beyond Cache Lies) for Immediate Safe Ejection After Completion
In Debian 12, is there a method to see true progress indication when writing large files (e.g., ISOs >4GB) to a slow ventoy USB thumb drive, instead of a lying progress bar (rsync --progress/Nemo) ...
5
votes
4
answers
516
views
Creating n folders with equal number of files from a large folder with all files
I have a large folder of data files, which I want to copy into subfolders to make a specified number of batches.
Right now I count how many files there are and use that to make ranges, like so:
cd /...
0
votes
2
answers
73
views
how to copy a HD to another if the CPU is freezing after a few GB?
how to copy a HD to another if the CPU is freezing after a few GB ?
I had to copy w11 of a friend notebook from a 128GB nvme to a 1TB nvme.
I put nvne128gb in a usb adapter and the nvme1TB inside the ...
0
votes
0
answers
51
views
Does nautilus warn before starting copy/move of files into ext4 partition which is too small?
As a user with non root privileges, when copy/moving a bounch of folders and files, in one batch, from some device into another different partition which is ext4 and too small (space allocated to user)...
1
vote
1
answer
73
views
Is there a built-in way to copy a file from current directory to previous directory? [duplicate]
My pwd is /long_path/lots/of/subs/waydeep/. If I cd -, it will return me to /lastdirectory/long_pathway/very_deep/.
Is there a shortcut terminal/cli command to copy file1.ex from the current working ...
0
votes
0
answers
71
views
How can I combine multiple files into a single larger file on a non-virtual filesystem?
Is there any filesystem where I can say map file1, file2, file3 and file4 together to file1234?
file1 is 100M
file2 is 100M
file3 is 100M
file4 is 100M
... and file1234 will then be 400M, and it is ...
0
votes
1
answer
1k
views
Resolving "Invalid argument (22)" error in Rsync when syncing large datasets
I am using rsync to sync around ~2TB of data.
I get the following errors in the log file:
rsync: [receiver] mkstemp "/mnt/sd25-4tb-bkp4-mnt4/tns-maindatads-smb/tns-maindatads-smb/main-data-subds-...
0
votes
2
answers
163
views
Preserving file extensions when renaming duplicate files with rsync
I have multiple directories whose contents overlap. Sometimes the files are exactly the same, sometimes the names are the same and the contents differ and sometimes files with the same name have ...
0
votes
1
answer
123
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 ...
0
votes
3
answers
893
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 ...
1
vote
1
answer
103
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 ...
0
votes
0
answers
80
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) ...
0
votes
0
answers
119
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 ...
3
votes
2
answers
202
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/...
0
votes
1
answer
112
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?
2
votes
1
answer
510
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 ...
0
votes
0
answers
483
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/...
0
votes
1
answer
46
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, ...
0
votes
1
answer
254
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
...
2
votes
0
answers
115
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: ...
-2
votes
3
answers
4k
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 ...
1
vote
2
answers
851
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/...
0
votes
1
answer
363
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 ...
0
votes
0
answers
8k
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 ...
0
votes
0
answers
120
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 ...