Mailinglist Archive: opensuse (911 mails)

< Previous Next >
Re: [opensuse] Backup Suggestions?
On 12/11/2015 06:40 PM, Lew Wolfgang wrote:
I know
about rsync, but it doesn't do the history thing, as far as I know.

What do you mean by that "history thing"?

Yes, rsync can save "generations" of a file.

From the man page
-b, --backup
With this option, preexisting destination files are renamed as
each file is transferred or deleted. You can control where the
backup file goes and what (if any) suffix gets appended using the
--backup-dir and --suffix options.

I would suggest that the suffix be altered on each run so that it is
different for each run. The date/time is probably the best.

Something like

date +"%Y%m%d%H%M%S"

or perhaps

date +"%Y%m%d%H%M%S%s"

A: Yes.
> Q: Are you sure?
>> A: Because it reverses the logical flow of conversation.
>>> Q: Why is top posting frowned upon?

To unsubscribe, e-mail: opensuse+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse+owner@xxxxxxxxxxxx

< Previous Next >
Follow Ups