sync based on filename

2023-08-21 Thread Fourhundred Thecat via rsync
Hello, I need to sync SRC to DST, but: - not based on file modification times - and not based on filesize + but on filename. Ie if this is current state, then sync: /SRC/2023-08-21 /DST/2023-08-19 but not if /DST contains newer directory (by name, not by modification time) so, imagine

Re: print only first level directory name when copying files

2023-08-04 Thread Fourhundred Thecat via rsync
> On 2023-08-04 06:13, Perry Hutchison wrote: Perry Hutchison via rsync wrote: On second thought, that grep will match any directory name having 3 *or more* levels. This: rsync --info=name1,del2 -rl /mnt/foo /mnt/bar/ | egrep '^/[^/]*/[^/]*/[^/]*/$' should match only those with exactly

print only first level directory name when copying files

2023-08-03 Thread Fourhundred Thecat via rsync
Hello, I am copying /mnt/foo to /mnt/bar/ rsync --info=name1,del2 -rl /mnt/foo /mnt/bar/ /mnt/foo contains deep directory structure, ie: /mnt/foo/aaa/ /mnt/foo/aaa/somestuff/ /mnt/foo/aaa/somestuff/file1 /mnt/foo/bbb/ /mnt/foo/bbb/someotherstuff/

quick question: --rsh="ssh -l root"

2022-08-06 Thread Fourhundred Thecat via rsync
Hello, is there any difference/advantage between these two commands? rsync --rsh="ssh -l root" my-host.com rsync r...@my-host.com thank you, -- Please use reply-all for most replies to avoid omitting the mailing list. To unsubscribe or change options:

do I always have to use either --checksum or --times ?

2022-07-14 Thread Fourhundred Thecat via rsync
Hello, I want to sync local folder to remote server. When I run follwing command repeatedly, it always transfers everything each time again and again: rsync --rsh='ssh' foo/ server:/foo/ does it mean I have to always use either --checksum or --times, to prevent repeated transfer of files

Re: use absolute paths in transfer list

2022-02-20 Thread Fourhundred Thecat via rsync
> On 2022-02-18 03:07, Wayne Davison wrote: On Wed, Feb 16, 2022 at 2:57 AM Fourhundred Thecat via rsync mailto:rsync@lists.samba.org>> wrote: rsync -a --del --out-format='/%f%L' /path/one/ /path/two/ /dest/path/ that works perfectly. thank you ! -- Please use reply-all for mos

use absolute paths in transfer list

2022-02-16 Thread Fourhundred Thecat via rsync
Hello I have files in /source/A/B/C and I am syncing them to /dest/A/ rsync --info=name1,del2 -r /source/A/ /dest/A/ the transfer list is printed as relative paths: B/C instead of full path: /source/A/B/C how can I print the full paths? -- Please use reply-all for most replies to avoid

using "--checksum" for local sync

2021-08-27 Thread Fourhundred Thecat via rsync
Hello, I am using the "--checksum" option, when syncing files over the network. But when syncing large files locally, does it make sense to use --checksum, or would it slow things down? I mean, if it needs to calculate the checksum first, it could just have synced the file anyway. right?

Re: suppress message: is uptodate

2021-08-16 Thread Fourhundred Thecat via rsync
> On 2021-08-15 07:09, Robin Lee Powell wrote: So, yeah, rsync is giving you that message because you added an extra flag to specifically tell it to do so. :) Try "name1" and see if that fixes it. thank you. I think that solved it. -- Please use reply-all for most replies to avoid

suppress message: is uptodate

2021-08-14 Thread Fourhundred Thecat via rsync
Hello, is there a way to suppress this message when syncing files? is uptodate I would like to see only files that have been synced. The internet forums are full of people asking how to get rid of this, even as far back as 10 years, and only hack I could find is to pipe it to grep.