Questions tagged [file-copy]

Questions regarding copying files from one place to another

Filter by
Sorted by
Tagged with
0
votes
0answers
5 views

Thunar custom action “Copy to” — with rsync (speed and progress in terminal)

When I have to copy a large file (or a large amount of multiple files) I want to keep an eye on the speed and progress, which is not obvious in the Xfce desktop. For that purpose I like to use the ...
0
votes
2answers
28 views

How to use rsync to copy files between 2 remote servers based on the localhost server?

I have a case when I need to move data from an old server: host1 to a new server: host2. The problem is host1 cannot see host2, but I can use another server (localhost) to SSH to both host1 and host2. ...
0
votes
2answers
27 views

move files that contain a pattern a certain number of times

I have many files (with a .fna extension). I need to move them, if they contain the character > a certain number of times. I know which files contain > a certain number of times (9 times in this ...
1
vote
0answers
29 views

scripting: how to cp (or rsync) same files (and filenames) with autorenaming and mantaining .ext

I want to write a simple bash script (for loop). After obtaining a list of wanted files, eg:find /start/* -iname "*.txt" > txt.list I'd like to copy all of them inside an unique destination with ...
0
votes
1answer
18 views

Copy multiple files with the same file name from different locations into the same location

I want to copy multiple files with the same file name from different locations into the same location (by changing their names according to their original location). For example, I want to copy, /...
0
votes
0answers
10 views

Copy on files which are binded and mount on linux fails

I am playing around with binding individual files and perform mount on them. I am following the same steps on 2 devices, one is an embedded Linux device and another on Ubuntu 16.04 machine. Following ...
0
votes
0answers
15 views

Activating swapspace causes system to freeze during file copy. (KDE Neon)

I recently updated my kernel from 5.0 to 5.3, after the update copying files between drives freezes my pc so much so that it is barely usable. After some research I found out that the problem was ...
0
votes
0answers
21 views

Copy any kind of file to clipboard with xclip

So, I want to be able to copy any kind of file to an X clipboard with a shell script (mostly as a means to copy files in ranger, to gui applications). So far i have this script: TYPE=$(file -b --mime-...
0
votes
1answer
33 views

What is the difference between these below two program to copy content one directory to another? [closed]

Program number 1 ( Getting error ) #!/bin/bash echo "Enter source and destination directories: " read $src $dest if [ -d $src ] && [ -d $dest ] then echo "Process will start " else ...
0
votes
2answers
30 views

rsync: notify of any files that were skipped

I am using the following rsync command which includes the "update" option, meaning it will skip files at the receiver which are newer. It works, except that I need it to tell me the files which were ...
0
votes
1answer
29 views

cp / rsync - Overwrite if smaller, backup original and then overwrite if larger

I have files in Folder A than I want to copy in Folder B. Folder B contains some files by the same name. Timestamps on all files are the same and I want to overwrite and backup larger files of the ...
0
votes
0answers
22 views

Compare directory just by name and size of content

I want to compare the content of two hard drives and I'd like to verify that each and every file and folder that exists in one drive exists in the other drive as well and simply has same name and size....
0
votes
0answers
24 views

Copy between two remote servers via local server [duplicate]

I've search and tried many solutions from this page. But I wasn't able to use any of them. Here is the situation: I have linux VM (hostname = debianVM). From this VM I'm connecting to remote servers. ...
0
votes
2answers
29 views

Copy files with the same name but in different dirs into a new dir while renaming them

I have the following directory structure: top_dir |________AA |_______f1.json |_______f2.json |________BB |_______f1.json |_______f2.json |...
0
votes
0answers
23 views

Make linux ignore .nfs000* files when copying directories

If I have a file still open in a program, but delete the file on the NFS server, then NFS creates a .nfs000* file because the file cannot technically be deleted if a program is still accessing it. If ...
1
vote
1answer
33 views

File order on FAT/FAT32/VFAT file systems

I have several audio devices (car radio, portable radio, MP3 player) that take SD cards and USB sticks with a FAT file system on it. Because these devices have limited intelligence they do not sort ...
0
votes
0answers
39 views

rsync folder size discrepancy

I'm running rsync between two Synology NAS machines. However, after running, there is a huge size discrepancy between the source and destination folders - as in, the source folder reads as 6.64 TB/...
0
votes
0answers
20 views

Can an open tomb be safely copied?

I back up my tombs on Dropbox. My usual habit is to close them before pushing the changes with rclone. A couple of times I forget to close them first, but I haven't noticed any corruption. I've always ...
0
votes
1answer
69 views

Remote SSH copy files with filenames that contain certain strings

I have two remote servers. One that I am currently connected to and one that I am trying to copy a lot of files to (10.10.0.13) I have a series of files I need to copy within various directories of ...
0
votes
1answer
36 views

Copying files slows down the system, making it unusable (KDE Neon)

I regularly update my system running KDE Neon, but this time after the update something broke in the "file copy" process. The system slows down during copying to external hdd or pendrive so much so ...
2
votes
2answers
165 views

How does ZFS copy on write work for large files

Let's say I have a large file (8GB) called example.log on ZFS. I do cp example.log example.bak to make a copy. Then I add or modify a few bytes in original file. What will happen? Will ZFS copy the ...
0
votes
2answers
76 views

cp without options

sorry for my English... I normality copy a file without options, cp origin destination but sometime I to show cp -u origin destination In man cp give options as an obligation. My question can ...
0
votes
1answer
29 views

Copy all files in folder to another folder appending a . to the file name and rename it back to original file name

after searching and trying various way I couldn't get it work. I need to copy lots of files (more than 100 thousand files) to another folder with dot appended to the start of the file name. Example: ...
0
votes
1answer
18 views

Ask what to do when dragging & dropping a file in file managers other than Dolphin

Dolphin file manager is showing a list of options when dragging & dropping a file (copy/move/create link). Can the same options be made available in other file managers?
1
vote
1answer
76 views

Is it possible to copy files from a Host os to a Guest OS which is running in the virtualbox ? (Not Folder sharing)

As per my understanding there is an option called Shared Folder. But I am not referring to that. Here my Guest OS is Linux and my Host OS is windows. I am using virtualbox to run the Guest OS. I need ...
0
votes
0answers
11 views

find images with specific dimesions and copy them all into another directory

I already did various searches on google, I find this link with a similar question but I fail to integrate this: find . -iname "*.jpg" -type f -exec identify -format '%w %h %i' '{}' \; | awk '$1<...
2
votes
1answer
71 views

Linux, safest way to move a file system

I have to move my user home to another device, it occupies several gigabytes, I would like to avoid losing something, at the moment I think I will use rsync rsync --progress -avh --remove-source-files ...
2
votes
2answers
40 views

copy a file from multiple directories and add numbers in the prefix of each file?

I need to copy a particular named file from multiple directories and need to add number in the file prefix sequentially. For example I have the following directories, gene1, gene2, gene3 ..... gene100 ...
0
votes
1answer
181 views

Replacing scp with rsync

For a long time I've been wishing to replace scp in favor of rsync due to all the advantages and extra features of the latter (better performance, resuming interrupted downloads, displaying progress ...
1
vote
1answer
46 views

How to copy multiple files from one directory to another

I want to copy multiple files from one directory to another. I have a variable (files) that contains the following structure: file1 file2 File1 and file2 are in dir1 and I want to copy them to dir2 ...
0
votes
0answers
15 views

Clone partitions and content of an SD card onto another one [duplicate]

Let's assume that I have an SD card with different partitions and files or filesystems on them and I want to reproduce it on another non-partitioned SD card (the new card will be of the same size). Is ...
0
votes
0answers
26 views

How do I copy/move a directory with tons of content from EXT4?

So I have a Micro-SD card with an EXT4 file system on it. On there are a bunch of files that I used to save in this structure: /YYYY-MM/folders/files - The amount of files in the folders is usually ...
0
votes
2answers
27 views

Continue copying file

I was copying a very big file and I accidentally stopped it. Can I resume copying data without need to delete copy and copy data again? Command I used: pv original.data > copy.data
0
votes
2answers
53 views

Update merging two directories

First, note that this is not a plain 'merge two directories', this is a question about how to keep the merge of said directories updated when the sources change. Let us say that I have two ...
0
votes
1answer
48 views

Copy gives me “are the same” error

find . -type f -iname "*.jpg" -exec cp {} JPG \; I'm working on a shell script and I get an error on copying image files to a new directory: are the same
0
votes
1answer
38 views

Is this a safe way to copy filesystems?

I need to transfer the contents of my SD card (raspbian setup, so fat32 + ext4) to a new SD card because it's approaching end of life. Indeed this filesystem was created with badblocks' aid to mkfs ...
0
votes
1answer
24 views

Omitting one particular nested folder while copying a folder

I know how to use the cp command to recursively (-r) copy nested folders while preserving (-p) file meta-data such as modification times: cp -pr "/path/from" "path/to" ➥ Is there a way to omit one ...
0
votes
0answers
46 views

Move a File from Windows to Linux Server without SCP, PSCP or PSFTP

I have a file I need moved from my windows desktop to my linux server. For some reason my colleague cannot get SCP to move the file as we normally would, our servers also don't have PSCP or PSFTP ...
0
votes
2answers
58 views

Copy all files from subdirectories and subsubdirectories to main directory with modifying file names by adding prefix of all parent directories

Following these two posts: https://askubuntu.com/questions/871898/move-files-to-parent-directory-prefixing-file-name-with-former-subdirectory-nam https://askubuntu.com/questions/870844/recursively-...
0
votes
1answer
21 views

Updating without copying

Given a source and destination directory, how can I update files that have newer versions in the source, but not copy any files that do not already exist in the destination (in any version)? That is, ...
0
votes
4answers
90 views

how to create linux directories and sub directories structure without files from it

I got requirement to create mirror image of existing Linux directories and sub directories of folders as below. we have "/opt/current" directory which has another layer of 20 sub directories and one ...
0
votes
1answer
36 views

Copy and rename files adding a dynamic prefix/suffix

I need to copy some files that are like this: folder1/name1.csv folder1/name2.csv folder2/name1.csv folder2/name2.csv folder3/name1.csv folder3/name2.csv All folder* are subdirectory of a directory. ...
0
votes
1answer
22 views

Copy a directory with special character

I have directory on my External hard disk with name like this $recycle.bin which was copied from a PC running windows OS.This folder was hidden on windows PC and is still invisible on my computer . ...
1
vote
1answer
51 views

Copy files such that individual files gets copied to the folder having file name as a string within complete folder name

I am using Cygwin as Linux shell, I have following contents in my current working directory: Files : Abc.dat 123.dat 456.dat Directories: W_Abc_w W_123_w W_456_w Now I want to copy files ...
0
votes
0answers
26 views

How to copy a remote tree without hidden files?

I have a tree with 100GB of data, and I'd like to scp it to a remote machine. A large portion of the data is in hidden .files that I'd like to keep locally, but I don't need it remotely. Is it ...
0
votes
1answer
31 views

copying a symlink to a target file using cp -t

I have a symlink to a file on my Ubuntu system, and I need to copy the original file to a different directory and have a new name there. I am able to copy it to a different directory using readlink -...
1
vote
0answers
60 views

Where can I find the .desktop files for the “Copy To” and “Move To” service menus for Dolphin file browser

I am using KDE Neon. I want to create modified versions of the "Move To" and "Copy To" services in the Dolphin file browser. I want to find the built-in services, copy their .desktop files, and edit ...
0
votes
2answers
158 views

Send a binary file though serial terminal

I have a question related to the serial terminal. I have a Linux computer and I connect to an ARM mini-computer running debian with screen /dev/ttyUSB0 115200. From there, I can login and type ...
1
vote
1answer
875 views

Send a binary file through serial terminal

I have a question related to the serial terminal. It is sometimes possible to connect to a device using a command such as screen. One example would be screen /dev/ttyUSB0 115200. I can connect ...
0
votes
0answers
22 views

Copying the lastest file from local to hdfs as per MONYY mentioned in the file name

I want to take only the latest file from my local to HDFS. For ex - The file name is something like "DATA_APR19_MASKED.txt". Like wise I have 100 files. But I always want to pick up the latest file ...

1
2 3 4 5
11