<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
You have to have a script that places a "successful" file in the
root of the completed rsync...<br>
And use that to figure out what to do for link-dest at the top of
the script...<br>
I use something more like daily.0-daily.7 and monthly.0-monthly.3
for the folders and rotate them daily -if- the "successful" file
exists.<br>
If it does not rotate, then the failed rsync from the day before is
reused...<br>
(i.e. I always backup to daily.0 using daily.1 as the link-dest...)<br>
I make a hard-link replica of daily.1 into monthly.0 on the first of
each month.<br>
That leaves me with 7 days of successful daily backups and 4 months
of depth backups.<br>
<pre class="moz-signature" cols="72">--
Larry Irwin
Email: <a class="moz-txt-link-abbreviated" href="mailto:lrirwin@alum.wustl.edu">lrirwin@alum.wustl.edu</a></pre>
<div class="moz-cite-prefix">On 06/26/2018 04:36 PM, Dan Stromberg
via rsync wrote:<br>
</div>
<blockquote type="cite"
cite="mid:CAGGBd_rHSqOU5W4=M5PC81arObH14xDwcwEjYjZV-np+14sYnA@mail.gmail.com">
<div dir="ltr"><br>
<div class="gmail_extra"><br>
<div class="gmail_quote">On Tue, Jun 26, 2018 at 12:02 PM,
Дугин Сергей via rsync <span dir="ltr"><<a
href="mailto:rsync@lists.samba.org" target="_blank"
moz-do-not-send="true">rsync@lists.samba.org</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0
.8ex;border-left:1px #ccc solid;padding-left:1ex">
I am launching a cron bash script that does the following:<br>
<br>
Day 1<br>
/usr/bin/rsync -aH --link-dest /home/backuper/.BACKUP/<wbr>0000009/2018-06-25
<a class="moz-txt-link-abbreviated" href="mailto:root@192.168.1.103:/home/">root@192.168.1.103:/home/</a> /home/backuper/.BACKUP/<wbr>0000009/2018-06-26<br>
<br>
Day 2<br>
/usr/bin/rsync -aH --link-dest /home/backuper/.BACKUP/<wbr>0000009/2018-06-26
<a class="moz-txt-link-abbreviated" href="mailto:root@192.168.1.103:/home/">root@192.168.1.103:/home/</a> /home/backuper/.BACKUP/<wbr>0000009/2018-06-27<br>
<br>
Day 3<br>
/usr/bin/rsync -aH --link-dest /home/backuper/.BACKUP/<wbr>0000009/2018-06-27
<a class="moz-txt-link-abbreviated" href="mailto:root@192.168.1.103:/home/">root@192.168.1.103:/home/</a> /home/backuper/.BACKUP/<wbr>0000009/2018-06-28<br>
<br>
and etc.<br>
</blockquote>
<div>This isn't really what you were asking, but with the
"dated directories" scheme, what happens if one or your
machines crashes during a backup? Don't you end up
storing a lot more data in the next successful backup?</div>
<div> <br>
</div>
</div>
<br>
</div>
</div>
<!--'"--><br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
</blockquote>
<br>
</body>
</html>