Skip to main content

All Questions

Tagged with
1 vote
1 answer
8k views

Rsync files by date

I have this file structure: ...folders/to/copy ...folders/to/mirror I've been doing: rsync --ignore-existing -raz --progress $source $destination This is serving well for the purpose of keeping ...
Acidorr's user avatar
  • 13
2 votes
3 answers
468 views

Copying all files from a directory but not a specific file from a sub directory

I have a directory structure as below: source-dir--- |----- file-1 |----- file-2 |----- file-3 |----- folder-1 |---- file-4 ...
Ankit Raj's user avatar
  • 173
0 votes
2 answers
83 views

copying specific files to different directory

I am trying to find files with specific extensions and copy or rsync it to another hard drive / directory sudo find . \( -type f \( -iname '*.jpg' -o -iname "*png" -o -iname "*mov" -o -iname "*mp3" -...
xXxAirSnifferxXx's user avatar
0 votes
1 answer
1k views

rsync command in bash script using --from-files giving rsync: link_stat errors

I been getting a lot of rsync:link stat error saying the directory does not exist then afterwards it would end up copying all the files in the remote server folder instead of files less than the time ...
Frontier_Brain's user avatar
2 votes
2 answers
4k views

How to recursively copy only the files from folders and subfolders?

Under /home folder we have many subfolders, as the following: /home/user1 /home/user2/user_sub_2 /home/user3/user_sub_3/info_sub /home/user4/INFO_FOLDER We want to copy all the files under /home, ...
yael's user avatar
  • 13.9k
0 votes
2 answers
124 views

Determine how many files from a sorted list will fill up a disk

This has me puzzled. I think it should be easy, but I must be missing something, as the results are not consistent. I am backing up a long list of files to multiple disks, using rsync, using a list ...
u628898's user avatar
  • 33
1 vote
4 answers
1k views

Bash command to "search and replace" file in changing directory tree

I've built a collection of files for research in a central repository on my server. I'm continually curating the repo changing the directory's tree structure by renaming and moving directories. And I'...
xtian's user avatar
  • 593
36 votes
1 answer
42k views

find and rsync?

I want to be able to search for files over 14 days and over 10k and than rsync those found files to a destination. Is there a way to combine these two commands? find ./ -mtime +14 -size +10k rsync -...
mkrouse's user avatar
  • 949
7 votes
2 answers
3k views

sync files recursively between two folders where files are less than 24 hours old

I want to find all the files under a directory which are within 24 hours then rsync those files with another server. There are some old files that I do not want to transfer, however if those old ...
Quaternion's user avatar