Score:0

How to copy ONLY large files?

cn flag

I'm backing up (manually) a computer on some usb keys. I got several splicing errors, probably because the usb keys were formatted as fat32. These errors seem to occur on large files, such as database backups.

I found how to list them :

sudo find / -size +1G -ls > LargeFiles.txt

And I found how to format a usb key in ext4, so that it will accept large files :

sudo mkfs -t ext4 /dev/sdc1

But I didn' find a way to say "Copy only the files larger than (whatever the fat32 limit is) to /media/usb".

It would be nice to have all the database backups on the same usb key.

Please advise.

nobody avatar
gh flag
you can use rsync. it has an option `--include-from=FILE` I needed it the other way around. https://askubuntu.com/questions/1384582/rsync-exclude-file-what-given-from-a-find-command
I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.