link-dest and batch-file

Kevin Korb kmk at sanitarium.net
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 lists.samba.org <mailto:rsync at lists.samba.org>> 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 192.168.1.103:/home/
>     /home/backuper/.BACKUP/0000009/2018-06-26
> 
>     Day 2
>     /usr/bin/rsync -aH --link-dest
>     /home/backuper/.BACKUP/0000009/2018-06-26 root at 192.168.1.103:/home/
>     /home/backuper/.BACKUP/0000009/2018-06-27
> 
>     Day 3
>     /usr/bin/rsync -aH --link-dest
>     /home/backuper/.BACKUP/0000009/2018-06-27 root at 192.168.1.103:/home/
>     /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 FutureQuest.net  (work)
	Orlando, Florida		kmk at sanitarium.net (personal)
	Web page:			https://sanitarium.net/
	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: <http://lists.samba.org/pipermail/rsync/attachments/20180626/0067d84a/signature.sig>


More information about the rsync mailing list