Re: using rsync for backups - want to run only if changes from last backup

2025-07-11 Thread Go Canes
On Fri, Jul 11, 2025 at 5:20 PM Robert Moskowitz via users wrote: > I have downloaded, over the Internet from IETF, using their rsync > service for lots of years. I had a small hand in setting this up. > > But here I am working with a few servers on my local net, going to my > local NAS. All L

Re: using rsync for backups - want to run only if changes from last backup

2025-07-11 Thread Robert Moskowitz via users
On 7/11/25 5:09 PM, Samuel Sieb wrote: On 7/11/25 1:59 PM, Go Canes wrote: On Fri, Jul 11, 2025 at 4:29 PM Robert Moskowitz via users wrote: rsync -tvz rsync.ietf.org::id-archive/*.txt /home/common/ietf/drafts So you are rsyncing off the internet?  In that case I think your main option is

Re: using rsync for backups - want to run only if changes from last backup

2025-07-11 Thread Samuel Sieb
On 7/11/25 1:59 PM, Go Canes wrote: On Fri, Jul 11, 2025 at 4:29 PM Robert Moskowitz via users wrote: rsync -tvz rsync.ietf.org::id-archive/*.txt /home/common/ietf/drafts So you are rsyncing off the internet? In that case I think your main option is the suggestion to use rsync with --dry-run

Re: using rsync for backups - want to run only if changes from last backup

2025-07-11 Thread Patrick O'Callaghan
On Fri, 2025-07-11 at 16:29 -0400, Robert Moskowitz via users wrote: > > On 7/11/25 11:00 AM, Joe Average wrote: > > Robert Moskowitz wrote: > > ... > > > But is there some way to evaluate the source and see if any changes have > > > occurred since the last rsync (or some time) and only trigger rs

Re: using rsync for backups - want to run only if changes from last backup

2025-07-11 Thread Go Canes
On Fri, Jul 11, 2025 at 4:29 PM Robert Moskowitz via users wrote: > rsync -tvz rsync.ietf.org::id-archive/*.txt /home/common/ietf/drafts So you are rsyncing off the internet? In that case I think your main option is the suggestion to use rsync with --dry-run, but in that case if there are new fi

Re: using rsync for backups - want to run only if changes from last backup

2025-07-11 Thread Robert Moskowitz via users
On 7/11/25 11:00 AM, Joe Average wrote: Robert Moskowitz wrote: ... But is there some way to evaluate the source and see if any changes have occurred since the last rsync (or some time) and only trigger rsync accordingly? filtering/investigating the output of rsync's "--dry-run" option ? The

Re: using rsync for backups - want to run only if changes from last backup

2025-07-11 Thread Joe Average
Robert Moskowitz wrote: ... > But is there some way to evaluate the source and see if any changes have > occurred since the last rsync (or some time) and only trigger rsync > accordingly? filtering/investigating the output of rsync's "--dry-run" option ? -- _

Re: using rsync for backups - want to run only if changes from last backup

2025-07-10 Thread Go Canes
On Thu, Jul 10, 2025 at 9:56 PM Go Canes wrote: > find /source -xdev -mtime -1 you *might* be able to add "-type d" to only check directory modification times - I think it would depend on the specifics of the modification. I.e. if you only change the files modes, I'm not sure the directory conta

Re: using rsync for backups - want to run only if changes from last backup

2025-07-10 Thread Go Canes
On Thu, Jul 10, 2025 at 8:30 PM Robert Moskowitz via users wrote: > But is there some way to evaluate the source and see if any changes have > occurred since the last rsync (or some time) and only trigger rsync > accordingly? find /source -xdev -mtime -1 If no files are listed, nothing has been

using rsync for backups - want to run only if changes from last backup

2025-07-10 Thread Robert Moskowitz via users
I use rsync a lot in crontab to back up directories. with the -ah options I have never had a problem, but recently added -R. Anyway rsync is very good at figuring out if any files on the source has changed only copying those to the destination. But now I am doing source directories with thous