<div>Correct, the --backup is almost never discussed.  Have never used it, but as I have been</div><div>looking at the documentation, I have started to wonder about its usefulness.<br> </div><br><br><blockquote type="cite" style="margin:0 0 0 0.5em;border-left:1px #00f solid;padding-left:1em;">From: Robin Lee Powell <robinleepowell@gmail.com><br>
To: lisa-asket@perso.be<br>
Subject: Re: Utility of --backup<br>
Date: 19/07/2021 08:33:45 Europe/Paris<br>
Cc: rsync@lists.samba.org<br>
<br>
While this doesn't directly answer your question, you might find<br>
<a href="https://linuxconfig.org/how-to-create-incremental-backups-using-rsync-on-linux" rel="noreferrer noopener">https://linuxconfig.org/how-to-create-incremental-backups-using-rsync-on-linux</a><br>
useful, depending on your actual goals.<br>
<br>
On Mon, Jul 19, 2021 at 07:50:34AM +0200, Lisa via rsync wrote:<br>
> I would like some feedback about the --backup option in rsync. Is<br>
> it worth using it for backups, or should I just use rsync<br>
> commands that just transfer files without the use of --backup<br>
> option?<br>
> <br>
> -b, --backup      make backups (see --suffix & --backup-dir)<br>
> --backup-dir=DIR  make backups into hierarchy based in DIR<br>
> --suffix=SUFFIX   backup suffix (default ~ w/o --backup-dir)<br>
> <br>
> I am somewhat hesitant to use it because with the backup option,<br>
> preexisting destination files are renamed as each file is<br>
> transferred or deleted. It also says that previously backed-up<br>
> files could get deleted.  Thusly I need some assistance<br>
> understanding all the pros and cons.<br>
> <br>
> <br>
<br>
> -- <br>
> Please use reply-all for most replies to avoid omitting the mailing list.<br>
> To unsubscribe or change options: <a href="https://lists.samba.org/mailman/listinfo/rsync" rel="noreferrer noopener">https://lists.samba.org/mailman/listinfo/rsync</a><br>
> Before posting, read: <a href="http://www.catb.org/~esr/faqs/smart-questions.html" rel="noreferrer noopener">http://www.catb.org/~esr/faqs/smart-questions.html</a><br>
<br></blockquote>