I've been thinking about how I could copy files that are 0-30 days old with different file types with rsync
, find
and mtime
.
Thefind
syntax below works, but I do not get it to work with rsync
.
rsync \ --files-from=<(find . -type f \( -name "*.X" -or -name "*.x1" \) -mtime -30) [email protected]:/where/to/put/files
rsync
and--files-from
a copy/paste error? Second, what does "no success" mean — do you get an error message? Does it just not copy the files? Please edit your question to include these details.