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@lists.samba.org <mailto:rsync@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@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@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@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.               ke...@futurequest.net  (work)
        Orlando, Florida                k...@sanitarium.net (personal)
        Web page:                       https://sanitarium.net/
        PGP public key available on web site.
~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,-*~'`^`'~*-,._.,

Attachment: signature.asc
Description: OpenPGP digital signature

-- 
Please use reply-all for most replies to avoid omitting the mailing list.
To unsubscribe or change options: https://lists.samba.org/mailman/listinfo/rsync
Before posting, read: http://www.catb.org/~esr/faqs/smart-questions.html

Reply via email to