link-dest and batch-file

Kevin Korb kmk at
Tue Jun 26 20:54:34 UTC 2018

I don't know how the OP manages their backups.  I write out a
backupname.current symlink pointing to the new backup once it is
completed.  That is what I use as the --link-dest parameter and what I
would restore from.  If a backup is aborted in the middle, doesn't
happen at all, or fails the symlink isn't changed and the last one that
worked is still tagged current.

I also name the rsync target dir backupname.incomplete and rename it to
backup.$Date when the backup completes so that there won't be any extra
date stamped dirs in the list to affect when it is time to delete old
backups and so I won't ever try to restore an incomplete (at lest not
without knowing that I am doing so).

On 06/26/2018 04:36 PM, Dan Stromberg via rsync wrote:
> On Tue, Jun 26, 2018 at 12:02 PM, Дугин Сергей via rsync
> <rsync at <mailto:rsync at>> wrote:
>     I am launching a cron bash script that does the following:
>     Day 1
>     /usr/bin/rsync -aH --link-dest
>     /home/backuper/.BACKUP/0000009/2018-06-25 root at
>     /home/backuper/.BACKUP/0000009/2018-06-26
>     Day 2
>     /usr/bin/rsync -aH --link-dest
>     /home/backuper/.BACKUP/0000009/2018-06-26 root at
>     /home/backuper/.BACKUP/0000009/2018-06-27
>     Day 3
>     /usr/bin/rsync -aH --link-dest
>     /home/backuper/.BACKUP/0000009/2018-06-27 root at
>     /home/backuper/.BACKUP/0000009/2018-06-28
>     and etc.
> 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?

	Kevin Korb			Phone:    (407) 252-6853
	Systems Administrator		Internet:
	FutureQuest, Inc.		Kevin at  (work)
	Orlando, Florida		kmk at (personal)
	Web page:
	PGP public key available on web site.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the rsync mailing list