22
39
Fork
You've already forked Nextcloud-Backup-Restore
19

No need to modify code for certain things #25

Merged
DecaTec merged 4 commits from pcanterino/Nextcloud-Backup-Restore:master into master 2021年10月13日 12:38:50 +02:00
Contributor
Copy link

I personally don't like the fact that you have to modify the code of the scripts to backup and restore local external storage and to restore the database without multibyte support.

Although I guess that just removing comment marks is straightforward and the script is mostly used by system administrators, it is a possible source for errors.

I patched the scripts so that they check if the variable nextcloudLocalExternalDataDir exists. If it exists, they do the job.

I also introduced a new config variable dbNoMultibyte in the restore script. If the variable exists and is set to true, the database is created without multibyte support.

Furthermore, I replaced some whitespaces with tabs and fixed the message when restoring local external storage.

I tested this on Ubuntu 20.04.3 Server and on Linux Mint 19.3 (Ubuntu 18.04).

I personally don't like the fact that you have to modify the code of the scripts to backup and restore local external storage and to restore the database without multibyte support. Although I guess that just removing comment marks is straightforward and the script is mostly used by system administrators, it is a possible source for errors. I patched the scripts so that they check if the variable `nextcloudLocalExternalDataDir` exists. If it exists, they do the job. I also introduced a new config variable `dbNoMultibyte` in the restore script. If the variable exists and is set to `true`, the database is created without multibyte support. Furthermore, I replaced some whitespaces with tabs and fixed the message when restoring local external storage. I tested this on Ubuntu 20.04.3 Server and on Linux Mint 19.3 (Ubuntu 18.04).

Good point.
Thanks for you contribution!

Good point. Thanks for you contribution!
Author
Contributor
Copy link

Thanks for accepting my pull request 👍

Thanks for accepting my pull request 👍
Sign in to join this conversation.
No reviewers
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
DecaTec/Nextcloud-Backup-Restore!25
Reference in a new issue
DecaTec/Nextcloud-Backup-Restore
No description provided.
Delete branch "pcanterino/Nextcloud-Backup-Restore:master"

Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?