Skip to main content
The 2025 Developer Survey results are in. Explore insights into technology and tools, careers, community and more. View results.

Questions tagged [file-copy]

Questions regarding copying files from one place to another

Filter by
Sorted by
Tagged with
2 votes
4 answers
308 views

Creating n folders with equal number of files from a large folder with all files

I am not super fluent in bash yet. I have a large folder will all my data files. I just need to copy them into subfolders to make batches. I want to specify the number of batches. Right now I count ...
rubberduck's user avatar
1 vote
0 answers
66 views

How can I find multiple duplicates of media files,sort, backup them and delete the rest?

I have a 4 TB hard drive containing pictures, sounds, and videos from the last 15 years. These files were copied onto this drive from various sources, including hard drives, cameras, phones, CD-ROMs, ...
Bernd Kunze's user avatar
0 votes
2 answers
44 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 ...
VeganEye's user avatar
  • 101
0 votes
1 answer
60 views

Is there a tool to "recursively" move/rename a directory (with conflicts/merging)?

Imagine I want to move (rename) a directory tree /var/lib/postgres/data to /var/lib/postgres/data.old: /var/lib/postgres └── data ├── base │   ├── 16390 │   │   └── <...> │   └── ...
intelfx's user avatar
  • 5,699
0 votes
0 answers
39 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)...
user avatar
0 votes
2 answers
121 views

"File too large" when copying 8GB file onto 30GB Apple device (USB stick unlabeled)

I have this file on disk: $ ls -lh /path/to/some.mkv -rwxr-xr-x 1 enrico enrico 7.4G Dec 17 18:54 /path/to/some.mkv so it's less than 8 gigabytes, but when I try to copy it on a 30GiB flash drive, I ...
Enlico's user avatar
  • 2,258
1 vote
1 answer
51 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 ...
Old Uncle Ho's user avatar
0 votes
0 answers
23 views

Backup files only that are newer than a specific date? [duplicate]

I have made a backup B1 on my external hard drive on date D. This hard drive is now in a different location (not at my house). Now I want to make a backup B2 on another external drive, but only of ...
Make42's user avatar
  • 739
0 votes
0 answers
52 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 ...
user447274's user avatar
1 vote
1 answer
131 views

How to copy/rsync? old home folder from a full timeshift snapshot with original dates? possible? how?

I have done one (whole disk, including home folder, even root folder) timeshift snapshot yesterday quickly, expecting an SSD failure soon. Well I did not expect it so soon, it happened today, SSD ...
Vlastimil Burián's user avatar
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-...
atkuzmanov's user avatar
-1 votes
1 answer
710 views

How to reach optimal speeds with rsync?

I am using rsync to sync around ~2TB of data to a mechanical HDD-5400RPM. It's taking way too long. How can I improve the sync and check speeds to get as close as possible to maximum/optimal? Here is ...
atkuzmanov's user avatar
0 votes
2 answers
120 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 ...
user11718766's user avatar
0 votes
1 answer
78 views

How to automatedly delete broken sym links with "too many levels"?

I got myself in a state where I have thousands of sym links in a directory that have "too many levels". I've found that find will not return them since it gets the error while searching. I ...
Mastiff's user avatar
  • 101
0 votes
1 answer
90 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

15 30 50 per page
1
2 3 4 5
47