Tag Info

New answers tagged

2

I don't know if what you want to do is possible with find, but you can speed up your current use of find considerably if you use find | xargs instead of find -exec.


1

In essence this is the problem; directory from which you are doing the find is symlink; so relative move .. is not moving you to where you would expect; rather to .. of $(readlink -f $PWD) moo:~$ mkdir foo bar moo:~$ cd bar/ moo:~/bar$ ln -s ../foo/ moo:~/bar$ touch w00t moo:~/bar$ ls -1 foo w00t moo:~/bar$ cd foo moo:~/bar/foo$ ls -1 ../ bar foo cool ...


2

Those files were rotated, and during the process their ctime changed. Every time you touch a file or change it contents you're going to modify it's timestamps which will overwrite old ones. This will mislead your find command. ls listing shows mtime; since this is what ls shows by default unless -c (ctime) flag is specified So in essence; your ctime ...


1

rsync --progress --files-from=<(find /src_path-mtime -3 -type f -exec basename {} \;) /src_path/ /dst_path



Top 50 recent answers are included