Utility of --backup

lisa-asket at perso.be lisa-asket at perso.be
Mon Jul 19 06:41:02 UTC 2021


Correct, the --backup is almost never discussed.  Have never used it, but as I have been

looking at the documentation, I have started to wonder about its usefulness.



From: Robin Lee Powell <robinleepowell at gmail.com>
To: lisa-asket at perso.be
Subject: Re: Utility of --backup
Date: 19/07/2021 08:33:45 Europe/Paris
Cc: rsync at lists.samba.org

While this doesn't directly answer your question, you might find
https://linuxconfig.org/how-to-create-incremental-backups-using-rsync-on-linux
useful, depending on your actual goals.

On Mon, Jul 19, 2021 at 07:50:34AM +0200, Lisa via rsync wrote:
> I would like some feedback about the --backup option in rsync. Is
> it worth using it for backups, or should I just use rsync
> commands that just transfer files without the use of --backup
> option?
> 
> -b, --backup      make backups (see --suffix & --backup-dir)
> --backup-dir=DIR  make backups into hierarchy based in DIR
> --suffix=SUFFIX   backup suffix (default ~ w/o --backup-dir)
> 
> I am somewhat hesitant to use it because with the backup option,
> preexisting destination files are renamed as each file is
> transferred or deleted. It also says that previously backed-up
> files could get deleted.  Thusly I need some assistance
> understanding all the pros and cons.
> 
> 

> -- 
> 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


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.samba.org/pipermail/rsync/attachments/20210719/28ba18dc/attachment.htm>


More information about the rsync mailing list