Re: --link-dest but only if rsync detects differences

2008-11-15 Thread Daniel Jarboe
> > But with link-dest you are not creating a new backup; you are only creating > new LINKS to the same backup. > > If the new backup has no changes from the last backup, it takes up no > space, so why does it matter? You simply expire your old backup off > automatically with a rotate script. > >

Re: --link-dest but only if rsync detects differences

2008-11-14 Thread Daniel Jarboe
> > > I don't believe there is any better way than the two you have suggested: > run and delete if there were no changes, or check first with -n. Note > that with the first approach, you don't need a separate diff command; > you can just use -i and check whether the itemize output is nonempty. > >

--link-dest but only if rsync detects differences

2008-11-13 Thread Daniel Jarboe
I'm currently using rsync and --link-dest to give me something like a poor-man's incremental snapshot to disk. But I really only want to generate a new backup if rsync detects differences, otherwise I don't need a new backup. Currently I do something like this: rsync -a --delete --link-dest=../b