Borg Usage
Borg Usage
html
====
Aqui se cria um backup com progresso para o server final 36, na pasta/srv/RJ
conforme informado.
observer que os dois pontos duplicados :: representam o nome do repo/commit assim
como feito em git;
bkpDOR.01Abril.2024. por fim é referenciado o que irá pra lá, sendo todo o DIR
/mnt/veracrypt3/BKP-NEXTCLOUD/.
====
aqui, cada ID é representado por nome anteriromente dito, porem quem gerencia
automaticamente neste
caso é o pika backup.
A listagem seria a mesma com seu commit, importante automatizar se facilita e é
rotina "exemplo, dias/mes/ano/hora".
====
Na montagem é similiar ao list, porem vc seta qual repo/commit vai montar e onde
irá montar localmente.
====
Por fim, das sintaxes de uso simples, o extrair, e fica desta forma.
ficando assim:
borg check
REPOSITORY_OR_ARCHIVE
optional arguments
--repository-only
--archives-only
--verify-data
--repair (--repair is a POTENTIALLY DANGEROUS FEATURE and might lead to data loss!
This does not just include data that was previously lost anyway, but might include
more data for kinds of corruption it is not capable of dealing with. BE VERY
CAREFUL!)
--save-space
--max-duration SECONDS
do only a partial repo check for max. SECONDS seconds (Default: unlimited)
=======
positional arguments
REPOSITORY
repository to prune
optional arguments
-n, --dry-run
--force
force pruning of corrupted archives, use --force --force in case --force does not
work.
-s, --stats
--list
--keep-within INTERVAL
--keep-last, --keep-secondly
--keep-minutely
-H, --keep-hourly
-w, --keep-weekly
-m, --keep-monthly
-y, --keep-yearly
--save-space
Common options
only consider archive names matching the glob. sh: rules apply (without actually
using the sh: prefix), see “borg help patterns”.
Exemplos:
# Keep all backups in the last 10 days, 4 additional end of week archives,
# and an end of month archive for every month:
$ borg prune -v --list --keep-within=10d --keep-weekly=4 --keep-monthly=-1
/path/to/repo