-
Hi, As In A Scenario Where I Am Using External HDD as Data Directory For Nextcloud If we can have some option to exclude the data directory from borg backup, the backups will still have everything like settings databases containers etc and will not occupy huge spaces for externally mounted mediums as such those can be mounted again using external mount setting. We can add an option in AIO Backup Settings or Even some workarounds will work, it will be beneficial for anybody who wants to skip the externally mounted directory to be skipped from backups. |
Beta Was this translation helpful? Give feedback.
Replies: 10 comments 19 replies
-
But what if the external HDD dies? |
Beta Was this translation helpful? Give feedback.
-
Any system can crash..
Thats why we had an option to create backup on external HDD.. to create
offline backups..
But for regular backup, like weekly or before system updates .. where
chances of externally mounted directory crashing are least.. we can avoid
lengthy huge backups by giving an option of ignoring externally mounted
data directory or data directory itself.
What will be achieving is faster backups of all containers with all the
settings which can be restored in a click in cases of system crash.
And as such as data directory is externally mounted it will be available
till the time its mounted. As system updates don't touch data directory as
far as am aware..
So, why backup user data directory when its not required?
Giving it as an option before initiating backup so that user can decide
whether to backup data directory as well or skip it..
incase user feels its safe, backed up or already duplicated..
Makes sense ?
…On Sat, 2 Apr, 2022, 05:08 Simon L., ***@***.***> wrote:
But what if the external HDD dies?
—
Reply to this email directly, view it on GitHub
<#428 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWOTAJNQ5QGBNDN3DIEVDZLVC6CHPANCNFSM5R2JUBTQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
No, it doesn't. You will cry if the hdd someday breaks or you get a virus or any other unexpected thing happens when you haven't made a backup that includes your files as well. |
Beta Was this translation helpful? Give feedback.
This comment has been hidden.
This comment has been hidden.
-
Thanks for your reply,
Will try that tagging option..
I understand what you mean, i just didn't wanted the backup app to backup
whole of my data directory everytime before an update.
As i mentioned before, the data directory is few TBs and I can't afford to
have multiple / frequent backups of the same.
I do keep one master backup for sure, just for the sake of reason as you
mentioned above - not crying one day in event of hdd crash etc..
😀
…On Mon, 4 Apr, 2022, 00:21 Simon L., ***@***.***> wrote:
If you really want to exclude your or some data, you can already do so by
using e.g. the external storage app or put a specific file into directories
that shall not be backed up. This file must be conform to
https://bford.info/cachedir/
But as I said, it is not recommended to exclude you data from those
backups. At least as long as you don't have a backup of this data.
—
Reply to this email directly, view it on GitHub
<#428 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AWOTAJP7ISJMQGUKHMCJ5YDVDHSCJANCNFSM5R2JUBTQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Beta Was this translation helpful? Give feedback.
-
Just to add an answer and mark this discussion as answered: We will not add this feature since the backup tool that we use is very efficient in storing multiple backups. |
Beta Was this translation helpful? Give feedback.
-
I have a rsync backup for all my data running so I was also looking for a way to exclude my data dir from backup. I was wondering, how can I effectively restore my Nextcloud AIO instance (only the instance, not the data dir)? would it be enough to copy back the docker volumes and shoot up the master container? |
Beta Was this translation helpful? Give feedback.
-
Since it is possible to backup more directories, I wanted to raise the question if it makes sense also to disallow the data directory it self. The reason I am requesting this again is that I am rethinking my backup strategy and with borg doing all the backup, some common scenarios are hard to cover. One of which is actually that sometimes one directory is messed by one person and I have to restore it from the backup. With borg, I have to restore the whole instance, which takes long time with over 1TB. From my point of view, it would make sense to backup the DB and configs and everything else, but exclude the data directory. If you have to restore one directory, then the admin can restore it by copy back everything and do a scan. If the admin has to restore the whole instance, then the admin has to restore the borg backup and then copy backup all files, and then start everything. This would provide much more flexibility but of course would be for more advanced users. I would contribute to this solution. However, I need some support to understand where to start. |
Beta Was this translation helpful? Give feedback.
-
Sorry to raise this ticket again, but this is crutial for me to exclude NEXTCLOUD DATADIR from borg backups, because this folder takes 2TB (this is a mounted iscsi) and is allready persisted on 2 Synology. Because Synology sucks (no freedom), nextcloud-aio-borgbackup is not compatible with my architecture constraint. My Goal is to backup config + bdd only, then migrate this on a second server witch has allready Nextcloud Datadir clone. I tried to modify backupscript.sh with no luck :
|
Beta Was this translation helpful? Give feedback.
-
Another use case: users may have files, which are huge and there is no need for a backup (like Android ROM images). So it is not about great Borg Backup deduplication feature, it is about no need for backup at all. Before migrating from my own Nexctloud docker instance to Nextcloud AIO, I used borgmatic which was configured to exclude any dirs with It would be nice to see something like that in AIO. EDIT: As nextcloud-aio-borgbackup image uses |
Beta Was this translation helpful? Give feedback.
Just to add an answer and mark this discussion as answered:
We will not add this feature since the backup tool that we use is very efficient in storing multiple backups.