Commit graph

75 commits

Author SHA1 Message Date
Simon L.
0852b00cc8 borg: exclude lost+found directory from backup
Signed-off-by: Simon L. <szaimen@e.mail.de>
2025-03-30 17:53:42 +02:00
Simon L.
13afcd944a borg: allow to exclude datadir and preview folder from backup via .noaiobackup file
Signed-off-by: Simon L. <szaimen@e.mail.de>
2025-02-04 19:52:55 +01:00
Simon L.
c238e815fa fix chellcheck
Signed-off-by: Simon L. <szaimen@e.mail.de>
2025-01-22 11:04:52 +01:00
Simon L.
5bdfa2466d borgbackup: improve testing backup upon instance restore
Signed-off-by: Simon L. <szaimen@e.mail.de>
2024-11-13 19:00:33 +01:00
Tim Diels
af3f00c3cc Allow to exclude previews from restore in the remote case too
Signed-off-by: Tim Diels <tim@diels.me>
2024-11-12 12:16:19 +01:00
Simon L.
47e0ac7b4d allow to exclude previews from restore upon instance restore
Signed-off-by: Simon L. <szaimen@e.mail.de>
2024-11-12 12:16:19 +01:00
Simon L.
ccf445a5d1 fix the commit
Signed-off-by: Simon L. <szaimen@e.mail.de>
2024-11-08 14:56:56 +01:00
Simon L.
019664afc1 borgbackup: make logs a bit cleaner if local archive is used
Signed-off-by: Simon L. <szaimen@e.mail.de>
2024-11-08 14:29:36 +01:00
Tim Diels
3eeda1ea91
Add remote borg backup support (#4804)
Signed-off-by: Tim Diels <tim@diels.me>
Signed-off-by: Simon L. <szaimen@e.mail.de>
Co-authored-by: Simon L. <szaimen@e.mail.de>
2024-11-07 22:19:56 +01:00
Simon L.
5204ea633f borgbackup: also check for .ncdata
Signed-off-by: Simon L. <szaimen@e.mail.de>
2024-09-12 16:37:59 +02:00
Simon L
0be0c00a2c borgbackup - add check for .ocdata file for datadir
Signed-off-by: Simon L <szaimen@e.mail.de>
2024-01-09 13:17:24 +01:00
Simon L
918afa1a94 allow to back up empty additional volumes
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-10-30 10:57:59 +01:00
Simon L
1dfab726c4 adjust wording what to do if backup creation fails
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-08-29 12:02:46 +02:00
Simon L
e03e440653
Use en-dash
Signed-off-by: Simon L <szaimen@e.mail.de>

Signed-off-by: Simon L. <szaimen@e.mail.de>
2023-08-28 08:43:01 +02:00
sjjh
9b9f72dcb8
Update backupscript.sh: slight rewording for consistency
Added some full stops, changed some wording, changed capitalisation, ...in some "echo"-statements  to improve consistency for user outputs.

Signed-off-by: sjjh <2787214+sjjh@users.noreply.github.com>
2023-08-27 21:37:14 +02:00
Simon L
66ce6cb03f try to fix backup restore
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-06-19 14:25:51 +02:00
Simon L
9a207eab29 borg - add progress to initial Backup
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-06-07 10:27:32 +02:00
Simon L
bd550313bd print out borg_prune_opts
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-05-30 16:25:24 +02:00
Simon L
ef43d19a27
Merge pull request #2428 from nextcloud/enh/noid/borg-retention-policy
allow to adjust borgs retention policy
2023-05-30 11:28:36 +02:00
Simon L
65a9fe4c95 allow to adjust borgs retention policy
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-05-26 11:38:25 +02:00
Simon L
9f19026885 allow to include volumes in backup and restore
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-05-19 13:28:17 +02:00
Simon L
9035f47611 backup script - a few enhancements and safeguards
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-05-09 00:54:15 +02:00
Simon L
4ffed7e23c move the advice to the correct line
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-04-22 11:26:17 +02:00
Simon L
3e2a64e6d4 borg - add advices how to proceed if things get wrong
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-04-18 13:22:10 +02:00
Simon L
4df6d2c971 Borg - revert to default checkpoint-interval
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-04-14 14:59:02 +02:00
Simon L
4f5062080b borg script - disable globbing
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-03-07 23:15:15 +01:00
Simon L
2a01e9683b exclude nextcloud and audit log in backup due to GPDR reasons
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-03-07 09:22:02 +01:00
Simon L
6787d322cc also restore configuration.json even if the former restore failed
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-02-13 17:00:20 +01:00
ManOki
4c691debf5
add docker cp command to prevent host file paths like /_data/ (#1773) 2023-01-17 18:22:37 +01:00
Simon L
8b86294936 borg - substitute prefix with glob-archives
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-01-12 23:56:41 +01:00
Simon L
1605431827 substitute borg --progress by borg -v
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-01-04 17:10:21 +01:00
Simon L
d8f24b8862 try to fix the borg check
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-01-04 16:49:47 +01:00
Simon L
6b91fb7ca2 allow to repair the integrity of the backup archive
Signed-off-by: Simon L <szaimen@e.mail.de>
2023-01-04 16:17:04 +01:00
Simon L
f06ce34472 borg - add progress back and add some additional output
Signed-off-by: Simon L <szaimen@e.mail.de>
2022-12-29 10:06:50 +01:00
Simon L
756511f16a This does not work
Signed-off-by: Simon L <szaimen@e.mail.de>
2022-12-17 16:46:24 +01:00
Simon L
4ab3520d10 another one
Signed-off-by: Simon L <szaimen@e.mail.de>
2022-12-17 16:38:58 +01:00
Simon L
de01850279 another attempt
Signed-off-by: Simon L <szaimen@e.mail.de>
2022-12-17 16:20:58 +01:00
Simon L
70b87ed9f8 try to fix it
Signed-off-by: Simon L <szaimen@e.mail.de>
2022-12-17 16:14:11 +01:00
Simon L
e389a17a74 try to fix the elasticsearch inclusion
Signed-off-by: Simon L <szaimen@e.mail.de>
2022-12-17 16:03:03 +01:00
Simon L
9b3ad32764 fix restoring of elasticsearch volume
Signed-off-by: Simon L <szaimen@e.mail.de>
2022-12-15 15:09:39 +01:00
Simon L
79946a876c remove the redis database once a backup gets restored
Signed-off-by: Simon L <szaimen@e.mail.de>
2022-12-15 12:10:55 +01:00
Simon L
c6e45ef378 add exception for elasticsearch and re-order the exceptions
Signed-off-by: Simon L <szaimen@e.mail.de>
2022-12-13 15:06:47 +01:00
Simon L
85999c297c also back up the fulltextsearch volume
Signed-off-by: Simon L <szaimen@e.mail.de>
2022-12-12 18:16:24 +01:00
Simon L
a3ed26063c add hint regarding default borg.config path
Signed-off-by: Simon L <szaimen@e.mail.de>
2022-12-02 21:37:48 +01:00
Simon L
6b6500c29d just exclude the whole dir on restore
Signed-off-by: Simon L <szaimen@e.mail.de>
2022-11-21 19:03:17 +01:00
Simon L
4a1539b473 dont restore ocsp folder
Signed-off-by: Simon L <szaimen@e.mail.de>
2022-11-21 18:26:36 +01:00
Simon L
41507c05fa
Merge pull request #1274 from nextcloud/enh/1272/session-deduplication
rework session deduplication
2022-10-27 12:33:01 +02:00
szaimen
5c25656460 install borg from backports in the future
Signed-off-by: szaimen <szaimen@e.mail.de>
2022-10-24 19:46:09 +02:00
szaimen
3118ecf385 rework session deduplication
Signed-off-by: szaimen <szaimen@e.mail.de>
2022-10-16 18:12:50 +02:00
Simon L
29f3952713
Merge pull request #1095 from nextcloud/enh/noid/borg-logs
do not show progress for borg operations
2022-09-08 15:44:36 +02:00