[Borgbackup] a couple of questions

Thomas Waldmann tw at waldmann-edv.de
Wed Jul 19 17:21:46 EDT 2017


>> Usually one deletes the checkpoints once one has a completed backup of
>> same stuff.
> Probably stupid queston, but how to do that?
> 
> borg delete is probably not the correct option?

it is the correct option.

checkpoint archives are normal, valid, but incomplete archives.

in 1.1, you will have the additional option to just wait, the next prune 
will kill most or all checkpoints.

>> Borg 1.1 will have code in borg prune that automatically deals with
>> deleting all checkpoints (except the latest one, when it is not
>> superceded by a non-checkpoint backup).
> Nice to hear that. Any plans when it is going to be released?

there soon will be a release candidate. currently you can use beta 6 for 
careful testing.

>> borg prune --prefix {hostname}-{user}- ...
> OK, as I understand, borg prune with -d 7 will keep only backups for
> last 7 days.

prune is not super easy to understand (nor to explain) in a precise way, 
so please see the prune docs and also the example in docs/misc/... to 
understand it.

> 
> OK, for instance, I put into cron a script with three commands:
> - set a variable with current time
> - rum borg create with repo name with this time

you can use {now} and you won't need the variable with the current time.

> - run borg prune with --prefix and this time

you don't need to give the time to prune at all, it will use the system 
clock.

> What if I loose connection while running borg create, but borg prune is run?

You will have a checkpoint from the interrupted create run.

In 1.0, borg prune will completely ignore all checkpoints and just work 
on the non-checkpoint archives.

In 1.1 it will keep a checkpoint archive if it is not already superceded 
by an non-checkpoint archive, but delete all other (older) checkpoints.

> And, what happens, if I do not run borg create for a month, and then run
> borg prune -d 7? Are all data lost, since all backups are older than 7 days?

Read the docs, please.

>> Yes, borg always does full backups. It never does incremental backups
>> and it also never "resumes" from something that was interrupted - it
> Ah, so when mounting a repo, I always get the last backuped version? So
> I cannot see several versions of a same file for instance for each day
> of a week?

borg mount with a repo will show you one directory per archive that is 
named like the archive and has the content of that archive.

-- 

GPG Fingerprint: 6D5B EF9A DD20 7580 5747  B70F 9F88 FB52 FAF7 B393
Encrypted E-Mail is preferred / Verschluesselte E-Mail wird bevorzugt.


More information about the Borgbackup mailing list